summaryrefslogtreecommitdiffstats
path: root/sys/net/if_var.h
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2004-04-12 14:59:25 +0000
committerru <ru@FreeBSD.org>2004-04-12 14:59:25 +0000
commit14233a5a33b48cba3a578f53a32ee727e8f622a4 (patch)
treedd5f229607b782372155b54f6c7b9b65191ba270 /sys/net/if_var.h
parentc15884f5912a316af7451d60f08c144f513c1c4d (diff)
downloadFreeBSD-src-14233a5a33b48cba3a578f53a32ee727e8f622a4.zip
FreeBSD-src-14233a5a33b48cba3a578f53a32ee727e8f622a4.tar.gz
Count outgoing link-level broadcast packets in if_omcasts.
I'm not sure this is completely correct but at least this is consistent with the accounting of incoming broadcasts. PR: kern/65273 Submitted by: David J Duchscher <daved@tamu.edu>
Diffstat (limited to 'sys/net/if_var.h')
-rw-r--r--sys/net/if_var.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/if_var.h b/sys/net/if_var.h
index 886b396..83abad6 100644
--- a/sys/net/if_var.h
+++ b/sys/net/if_var.h
@@ -313,7 +313,7 @@ if_handoff(struct ifqueue *ifq, struct mbuf *m, struct ifnet *ifp, int adjust)
}
if (ifp != NULL) {
ifp->if_obytes += m->m_pkthdr.len + adjust;
- if (m->m_flags & M_MCAST)
+ if (m->m_flags & (M_BCAST|M_MCAST))
ifp->if_omcasts++;
active = ifp->if_flags & IFF_OACTIVE;
}
OpenPOWER on IntegriCloud