From bbd3952e0bb68533b4f09757da37e8c346f3cd3a Mon Sep 17 00:00:00 2001 From: dlg Date: Fri, 17 Aug 2018 01:53:31 +0000 Subject: [PATCH] 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@ --- sys/net/if_vxlan.c | 5 +---- 1 file changed, 1 insertion(+), 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 @@ -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 -- 2.20.1