Package: net-tools
Version: 1.60-10
Severity: normal

Problem about formatting in output the result of command "netstat -i".
The counter about packets in/out making overflow when exceed the
number of "9999999".

In fact, when the counter of "RX" and "TX" exceed the number of
9999999 the output mix the metric (called on stdout "Met") and the
counter, getting out the  exact counter, and so the statistics.

The output of "netstat -i":
------
-- older
[EMAIL PROTECTED]:~/APPO/net-tools-1.60/lib# /bin/netstat.1.41 -i
Kernel Interface table
Iface   MTU Met   RX-OK RX-ERR RX-DRP RX-OVR   TX-OK TX-ERR TX-DRP TX-OVR Flg
eth0   1500   063451902      0      0      061779281     88      0      0 BMRU
lo    16436   016459688      0      0      016459688      0      0      0 LRU
[EMAIL PROTECTED]:~/APPO/net-tools-1.60/lib#

-- newer
[EMAIL PROTECTED]:~/APPO/net-tools-1.60/lib# /bin/netstat -i
Kernel Interface table
Iface   MTU Met           RX-OK RX-ERR RX-DRP RX-OVR           TX-OK
TX-ERR TX-DRP TX-OVR Flg
eth0   1500   0        63452192      0      0      0        61779530
  88      0      0 BMRU
lo    16436   0        16459784      0      0      0        16459784
   0      0      0 LRU
[EMAIL PROTECTED]:~/APPO/net-tools-1.60/lib#
------
 I applied a code patch. I can send the diff packages if needed.

The operating system is: Linux 2.4.30.

Cesare

Reply via email to