diff options
author | 2017-01-22 10:17:37 +0000 | |
---|---|---|
committer | 2017-01-22 10:17:37 +0000 | |
commit | 88a08f2af426247cf5e32d11f8df17f5717812a1 (patch) | |
tree | 55b694cef98ba8f92034f91f4eed28aafa059f2a /sys/net/if_vxlan.c | |
parent | sync (diff) | |
download | wireguard-openbsd-88a08f2af426247cf5e32d11f8df17f5717812a1.tar.xz wireguard-openbsd-88a08f2af426247cf5e32d11f8df17f5717812a1.zip |
move counting if_opackets next to counting if_obytes in if_enqueue.
this means packets are consistently counted in one place, unlike the
many and various ways that drivers thought they should do it.
ok mpi@ deraadt@
Diffstat (limited to 'sys/net/if_vxlan.c')
-rw-r--r-- | sys/net/if_vxlan.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/net/if_vxlan.c b/sys/net/if_vxlan.c index bab97040203..4d8620af63b 100644 --- a/sys/net/if_vxlan.c +++ b/sys/net/if_vxlan.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_vxlan.c,v 1.56 2017/01/04 12:49:49 mikeb Exp $ */ +/* $OpenBSD: if_vxlan.c,v 1.57 2017/01/22 10:17:39 dlg Exp $ */ /* * Copyright (c) 2013 Reyk Floeter <reyk@openbsd.org> @@ -310,8 +310,6 @@ vxlanstart(struct ifnet *ifp) if (m == NULL) return; - ifp->if_opackets++; - #if NBPFILTER > 0 if (ifp->if_bpf) bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_OUT); |