kern/65273: Outgoing broadcast packets are not being counted iin
if_data structure.
David J Duchscher
daved at tamu.edu
Tue Apr 6 14:21:27 PDT 2004
>Number: 65273
>Category: kern
>Synopsis: Outgoing broadcast packets are not being counted iin if_data structure.
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Apr 06 14:20:12 PDT 2004
>Closed-Date:
>Last-Modified:
>Originator: David J Duchscher
>Release: FreeBSD 5.2.1-RELEASE-p3 i386
>Organization:
Texas A&M University
>Environment:
System: FreeBSD wolf.tamu.edu 5.2.1-RELEASE-p3 FreeBSD 5.2.1-RELEASE-p3 #2: Tue Apr 6 14:07:51 CDT 2004 root at wolf.tamu.edu:/data/obj/data/src/sys/GENERIC i386
>Description:
Outgoing broadcast packets are not being counted and reflected in the
if_data structure (ifi_omcasts). Incoming broadcast packets are being
counted.
>How-To-Repeat:
>Fix:
--- sys/net/if_var.h.orig Tue Apr 6 16:07:24 2004
+++ sys/net/if_var.h Tue Apr 6 16:07:45 2004
@@ -324,7 +324,7 @@
}
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;
}
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list