summaryrefslogtreecommitdiff
path: root/sys/net/if_pppx.c
diff options
context:
space:
mode:
authormvs <mvs@cvs.openbsd.org>2020-08-12 08:41:40 +0000
committermvs <mvs@cvs.openbsd.org>2020-08-12 08:41:40 +0000
commit8b17b1349361252d29f9b8d6fb9aec7aa30d4e08 (patch)
treeaff38f6b665e42f26433b0a4ad01da16f2207329 /sys/net/if_pppx.c
parent4c58285dda3f96098f8749bb7a1ae60428fb3572 (diff)
Remove interface statistics update for outgoing packets. We shouldn't
count them because `if_snd' does this. ok yasuoka@
Diffstat (limited to 'sys/net/if_pppx.c')
-rw-r--r--sys/net/if_pppx.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/net/if_pppx.c b/sys/net/if_pppx.c
index 1b922e68c20..f62b5617408 100644
--- a/sys/net/if_pppx.c
+++ b/sys/net/if_pppx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_pppx.c,v 1.99 2020/08/10 10:55:43 mvs Exp $ */
+/* $OpenBSD: if_pppx.c,v 1.100 2020/08/12 08:41:39 mvs Exp $ */
/*
* Copyright (c) 2010 Claudio Jeker <claudio@openbsd.org>
@@ -882,9 +882,6 @@ pppx_if_start(struct ifnet *ifp)
proto = *mtod(m, int *);
m_adj(m, sizeof(proto));
- ifp->if_obytes += m->m_pkthdr.len;
- ifp->if_opackets++;
-
pipex_ppp_output(m, pxi->pxi_session, proto);
}
}