lkml.org 
[lkml]   [1996]   [Mar]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: /proc/net/dev: candidate for reformatting
Date
> > 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


\
 
 \ /
  Last update: 2005-03-22 13:36    [W:0.074 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site