summaryrefslogtreecommitdiff
path: root/sys/net/if_vlan.c
diff options
context:
space:
mode:
authorMasao Uebayashi <uebayasi@cvs.openbsd.org>2015-10-05 15:52:47 +0000
committerMasao Uebayashi <uebayasi@cvs.openbsd.org>2015-10-05 15:52:47 +0000
commit77eeeaf15f6520d129d0dca81a5936ae87fe10ee (patch)
treede1eb870adb33d701cb094b5e325351eb812f984 /sys/net/if_vlan.c
parentcd287422e9df8b867ffa48fb596aeb7b939c0607 (diff)
Don't count IF_DROP()'ed packets as if_oerrors too.
mpi@ plans to clean-up IF_DROP()'s, but fix consistent use of it for now. OK dlg@
Diffstat (limited to 'sys/net/if_vlan.c')
-rw-r--r--sys/net/if_vlan.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c
index 393fd07e778..48aff35c646 100644
--- a/sys/net/if_vlan.c
+++ b/sys/net/if_vlan.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_vlan.c,v 1.143 2015/09/29 10:11:40 deraadt Exp $ */
+/* $OpenBSD: if_vlan.c,v 1.144 2015/10/05 15:52:46 uebayasi Exp $ */
/*
* Copyright 1998 Massachusetts Institute of Technology
@@ -249,7 +249,6 @@ vlan_start(struct ifnet *ifp)
if ((p->if_flags & (IFF_UP|IFF_RUNNING)) !=
(IFF_UP|IFF_RUNNING)) {
IF_DROP(&p->if_snd);
- ifp->if_oerrors++;
m_freem(m);
continue;
}