diff options
-rw-r--r-- | sys/net/if_pppx.c | 5 | ||||
-rw-r--r-- | sys/net/pipex.c | 10 |
2 files changed, 2 insertions, 13 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); } } diff --git a/sys/net/pipex.c b/sys/net/pipex.c index 823c414098b..2e92867171b 100644 --- a/sys/net/pipex.c +++ b/sys/net/pipex.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pipex.c,v 1.123 2020/08/04 09:32:05 mvs Exp $ */ +/* $OpenBSD: pipex.c,v 1.124 2020/08/12 08:41:39 mvs Exp $ */ /*- * Copyright (c) 2009 Internet Initiative Japan Inc. @@ -839,14 +839,6 @@ Static void pipex_ip_output(struct mbuf *m0, struct pipex_session *session) { int is_idle; - struct ifnet *ifp; - - if ((ifp = if_get(session->ifindex)) != NULL) { - /* output succeed here as a interface */ - ifp->if_opackets++; - ifp->if_obytes+=m0->m_pkthdr.len; - } - if_put(ifp); if (session->is_multicast == 0) { /* |