Date: Mon, 29 Jun 1998 15:02:53 -0300 (EST) From: Joao Carlos Mendes Luis <jonny@jonny.eng.br> To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: kern/7115: bug in kernel vif byte count Message-ID: <199806291802.PAA12811@roma.coe.ufrj.br>
next in thread | raw e-mail | index | archive | help
>Number: 7115 >Category: kern >Synopsis: vif statistics show wrong byte count >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jun 29 11:10:00 PDT 1998 >Last-Modified: >Originator: Joao Carlos Mendes Luis >Organization: COPPE/UFRJ >Release: FreeBSD 2.2.6-STABLE i386 >Environment: Any multicast routing machine. My environment is 2.2-stable, but the bug seems to exist both in 2.1 and 3.0-current. >Description: Byte count statistics of multicast vifs are invalid. The problem is caused by a wrong endianess in the sum. >How-To-Repeat: >Fix: Apply this patch: --- /sys/netinet/ip_mroute.c Sat Jul 19 17:09:09 1997 +++ ip_mroute.c.new Mon Jun 29 14:23:17 1998 @@ -1394,7 +1394,7 @@ register struct ip *ip = mtod(m, struct ip *); register vifi_t vifi; register struct vif *vifp; - register int plen = ntohs(ip->ip_len); + register int plen = ip->ip_len; /* * Macro to send packet on vif. Since RSVP packets don't get counted on >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199806291802.PAA12811>