Messages in this thread | | | From | Alan Cox <> | Subject | Re: /proc/net/dev: candidate for reformatting | Date | Fri, 22 Mar 1996 10:17:54 +0000 (GMT) |
| |
> > pc1542:/proc/net# cat dev > > Inter-| Receive | Transmit > > face |packets errs drop fifo frame|packets errs drop fifo colls carrier > > lo: 3041 0 0 0 0 3041 0 0 0 0 0 > > eth0:16010389 0 421559 0 71224 110093 0 0 0 2578 0 > > pc1542:/proc/net# > >
Why don't you use the tools for the job.
> > This is from /proc/net/udp: > > 67: 00000000:0043 00000000:0000 07 00000000:00000000 00:F09045D1 00000000 0 0 > > 111: 00000000:006F 00000000:0000 07 00000000:00000000 00:F09045D1 00000000 0 0 > > > > Note the shift because of one more digit for the slot. This applies > > to tcp and raw as well. > > This is why _all_ numbers in /proc should be 0-padded hex.
This is why you should run netstat and user tools.
Alan
| |