summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Cappuccio <chris@cvs.openbsd.org>2000-08-15 22:21:18 +0000
committerChris Cappuccio <chris@cvs.openbsd.org>2000-08-15 22:21:18 +0000
commit0f1f18322e7e7ac3dd63711107a2269c07feda36 (patch)
tree11297c7cd625bb1da2763c2ea03bc61331f432e7
parent13ebf1a6b5b57e7faaee637c7a0a425bc41db435 (diff)
Increase if_obytes and if_omcasts in the output routine,
as it replaces ether_output and ether_output does this... (peter.jeremy@alcatel.com.au FreeBSD PR 20611)
-rw-r--r--sys/net/if_vlan.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c
index f7e151e93ad..68aa1ab1338 100644
--- a/sys/net/if_vlan.c
+++ b/sys/net/if_vlan.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_vlan.c,v 1.4 2000/05/15 19:15:00 chris Exp $ */
+/* $OpenBSD: if_vlan.c,v 1.5 2000/08/15 22:21:17 chris Exp $ */
/*
* Copyright 1998 Massachusetts Institute of Technology
*
@@ -263,6 +263,9 @@ vlan_start(struct ifnet *ifp)
m_freem(m);
continue;
}
+ p->if_obytes += m->m_pkthdr.len;
+ if (m->m_flags & M_MCAST)
+ p->if_omcasts++;
IF_ENQUEUE(&p->if_snd, m);
if ((p->if_flags & IFF_OACTIVE) == 0) {
p->if_start(p);