summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2018-08-17 01:53:32 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2018-08-17 01:53:32 +0000
commit62270944ebdd2a3d83c63fdbf10a4a3024d7e135 (patch)
treeadac8613dbd03d7889155cda8aa8c2e041cfc786 /sys/net
parent12786e24157cc009ad032c2749a5f045ee5236b2 (diff)
the stack already counts bytes and packets, so don't do it again here.
makes output stats look plausible. reported by jason tubnor ok deraadt@
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_vxlan.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/net/if_vxlan.c b/sys/net/if_vxlan.c
index 16d468e31ce..e7506bf9e94 100644
--- a/sys/net/if_vxlan.c
+++ b/sys/net/if_vxlan.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_vxlan.c,v 1.67 2018/02/20 01:20:37 dlg Exp $ */
+/* $OpenBSD: if_vxlan.c,v 1.68 2018/08/17 01:53:31 dlg Exp $ */
/*
* Copyright (c) 2013 Reyk Floeter <reyk@openbsd.org>
@@ -929,9 +929,6 @@ vxlan_output(struct ifnet *ifp, struct mbuf *m)
bridge_tunneluntag(m);
#endif
- ifp->if_opackets++;
- ifp->if_obytes += m->m_pkthdr.len;
-
m->m_pkthdr.ph_rtableid = sc->sc_rdomain;
#if NPF > 0