Subject: ifconfig -v output byte counter "stuck"
To: None <tech-net@netbsd.org>
From: Nino Dehne <ndehne@gmail.com>
List: tech-net
Date: 06/22/2005 05:12:02
Hi,

I noticed something strange in -current as well as netbsd-3. I have a
device sip0 which runs without any address and serves as a parent for
two vlan(4) devices.

ifconfig -v sip0 currently looks like this:

sip0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        address: [...]
        media: Ethernet autoselect (100baseTX full-duplex)
        status: active
        input: 12199 packets, 1425525 bytes, 67 multicasts
        output: 17987 packets, 422 bytes, 5 multicasts
        inet6 fe80::[...] prefixlen 64 scopeid 0x1

Notice the odd output counter which seems to correctly reflect the number
of packets transferred but whose byte count is stuck at 422.

My guess is that the counter behaves normally at boot time until the
vlan(4)s are put on top of it. I can't verify that guess right now.

If I ifconfig -z the device the byte counter is stuck at 0. However, the
3 other counters behave normally. The box has sip1 and sip2 which also
run without addresses and serve as parents for pppoe(4). For those all
counters behave normal.

BTW, Obytes in netstat -bI sip0 is likewise wrong.

Does this ring a bell for anyone?

Thanks,

ND