the stack already counts bytes and packets, so don't do it again here.
authordlg <dlg@openbsd.org>
Fri, 17 Aug 2018 01:53:31 +0000 (01:53 +0000)
committerdlg <dlg@openbsd.org>
Fri, 17 Aug 2018 01:53:31 +0000 (01:53 +0000)
makes output stats look plausible.

reported by jason tubnor
ok deraadt@

sys/net/if_vxlan.c

index 16d468e..e7506bf 100644 (file)
@@ -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