Bug 17338

Summary: netstat shows down counting UDP delivery stats
Product: Base System Reporter: ai <ai>
Component: binAssignee: ru <ru>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 3.4-STABLE   
Hardware: Any   
OS: Any   

Description ai 2000-03-12 14:20:01 UTC
Hi

I'm using this box to route several networks over nine SMC Etherpower II NICs, 
so that several UDP packets pass the box. When I try to see how many UDP
packets have been delivered I see a UDP delivery counter which is counting
down! On all other BSD boxes I have this counter is getting more not less.

Look at that:
# while true ; do netstat -ss -p udp | grep deli ; sleep 1 ; done
        4292032523 delivered
        4292032521 delivered
        4292032519 delivered
        4292032519 delivered
        4292032519 delivered
        4292032510 delivered
        4292032507 delivered
        4292032507 delivered
        4292032501 delivered
        4292032495 delivered
        4292032488 delivered
        4292032485 delivered
        4292032485 delivered

Strange?

Fix: 

I had the same problem on NetApp Fliers with the network packet counter.
They have tool to zero the stats if they overrun the buffer after several
days of high traffic. It would be very usefull to implement such a tool.
How-To-Repeat: while true ; do netstat -ss -p udp | grep deli ; sleep 1 ; done
Comment 1 ru freebsd_committer freebsd_triage 2001-06-23 18:22:52 UTC
State Changed
From-To: open->closed

In 5.0-CURRENT, it's now possible to zero protocol stats with netstat(1). 


Comment 2 ru freebsd_committer freebsd_triage 2001-06-23 18:22:52 UTC
Responsible Changed
From-To: freebsd-bugs->ru

++Responsible[ru];