Subject: bin/27265: netstat -s doesn't count traffic from pppoe0
To: None <>
From: None <>
List: netbsd-bugs
Date: 10/15/2004 17:13:15
>Number:         27265
>Category:       bin
>Synopsis:       netstat -s doesn't count traffic from pppoe0
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 15 17:14:00 UTC 2004
>Originator:     Evaldo Gardenali
>Release:        2.0RC3
NetBSD (invalid hostname) 2.0_RC3 NetBSD 2.0_RC3 (GENERIC) #0: Sat Oct  9 01:38:48 UTC 2004 i386

netstat -s shows many things, including:

        2010897 packets sent
                1663069 data packets (2055119677 bytes)
                169 data packets (68807 bytes) retransmitted
                278990 ack-only packets (390952 delayed)
                0 URG only packets
                0 window probe packets
                67642 window update packets
                1037 control packets
                0 send attempts resulted in self-quench
        1465088 packets received
                902007 acks (for 2055103899 bytes)
                1568 duplicate acks
                0 acks for unsent data
                514200 packets (394472826 bytes) received in-sequence

for some reason, it doesn't count packets from pppoe0. on the other hand, netstat -b -I pppoe0 works fine

 netstat -b -I pppoe0
Name  Mtu   Network       Address               Ibytes     Obytes
pppoe 1492  <Link>                          1011411416   52967289
pppoe 1492  fe80::        fe80::xxx:xxxx:xx 1011411416   52967289
pppoe 1492  x.x.x.x       x.x.x.x           1011411416   52967289

establish a pppoe link
minimize other networking use
use the pppoe link and monitor netstat -s
compare to monitoring netstat -b -I pppoe0