kern/135091: [bce] if_bce inbound traffic bytes counter is
incorrect in 7.2-RELEASE
hshh
hunreal at gmail.com
Sun May 31 03:00:04 UTC 2009
>Number: 135091
>Category: kern
>Synopsis: [bce] if_bce inbound traffic bytes counter is incorrect in 7.2-RELEASE
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun May 31 03:00:04 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: hshh
>Release: 7.2-RELEASE
>Organization:
hshh.org
>Environment:
FreeBSD x.hshh.org 7.2-RELEASE FreeBSD 7.2-RELEASE #2: Fri May 8 15:18:48 CST 2009 root at x.hshh.org:/usr/obj/usr/src/sys/x amd64
>Description:
The box is Dell 1950PE or 2950PE with Broadcom 5708C.
bce0 at pci0:9:0:0: class=0x020000 card=0x01b31028 chip=0x164c14e4 rev=0x12 hdr=0x00
vendor = 'Broadcom Corporation'
device = '5708C Broadcom NetXtreme II Gigabit Ethernet Adapter'
class = network
subclass = ethernet
When I use ``netstat 1'' or ``systat -if 1'', I found the inbound bytes counter is incorrect. Here is sample, and also I attached tcpdump log.
[root at x] ~# netstat 1
input (Total) output
packets errs bytes packets errs bytes colls
1 0 2026 1 0 218 0
4 0 8104 1 0 170 0
1 0 2026 1 0 170 0
1 0 2026 1 0 170 0
[root at x] ~# tcpdump -vvn
tcpdump: listening on bce0, link-type EN10MB (Ethernet), capture size 96 bytes
10:38:24.855321 IP (tos 0x0, ttl 127, id 1506, offset 0, flags [DF], proto TCP (6), length 40) 172.17.2.9.1232 > 172.18.0.200.22: ., cksum 0x7c81 (correct), 1:1(0) ack 132 win 63848
You see, only length 40 bytes in, but netstat show me 2026 bytes.
>How-To-Repeat:
Install FreeBSD 7.2-RELEASE AMD64 in Broadcom 5708C box, and try to use ``netstat 1'' or ``systat -if 1''.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list