[BusyBox] ifconfig: ifconfig <dev> and RX/TX bytes issues

Manuel Novoa III mnovoa3 at bellsouth.net
Wed Mar 14 15:33:45 UTC 2001


Giulio,

On Wed, 14 Mar 2001, Giulio Orsero wrote:
> linux-2.0.33/libc5/gcc version 2.7.2.3, latest busybox cvs
> 
> RX and TX bytes to 0 even if  packets are > 0
> 
> $ ./busybox ifconfig eth0
> eth0      Link encap:Ethernet  HWaddr 00:50:04:36:80:2B
>           inet addr:192.168.1.117  Bcast:192.168.1.255  Mask:255.255.255.0
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:32230 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:16662 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:41
>           RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
>           Interrupt:5 Base address:0x250

That's because linux-2.0.33 doesn't provide RX/TX byte numbers in /proc/net/dev.

If this really bothers anyone, it would be easy enough to disable that line of
output when no information is available.

Manuel





More information about the busybox mailing list