Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Apr 2004 16:14:51 -0500 (CDT)
From:      David J Duchscher <daved@tamu.edu>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   kern/65273: Outgoing broadcast packets are not being counted iin if_data structure.
Message-ID:  <200404062114.i36LEpaW001082@wolf.tamu.edu>
Resent-Message-ID: <200404062120.i36LKCY9087679@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200404062114.i36LEpaW001082>