From 0f1f18322e7e7ac3dd63711107a2269c07feda36 Mon Sep 17 00:00:00 2001 From: Chris Cappuccio Date: Tue, 15 Aug 2000 22:21:18 +0000 Subject: 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) --- sys/net/if_vlan.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3