Re: NetLoad applet problems



Martin Baulig wrote:
> On Sun, 15 Nov 1998, Stephen Robert Norris wrote:
> > On 2.0.33 at least, /proc/net/dev contains a count of packets, not bytes...
> > That's why I didn't use it. My plan (before real life took up 110% of my time)
> > was to use accounting if it was there, and packet counting if not...

> Well, byte counting was added to /proc/net/dev on 2.1.xx (don't know where
> exactly, on 2.1.114 it's there).

> In LibGTop I'm now doing the following:
[...]

You can get a lot of this stuff from ifconfig -a if a faster method,
such as ioctls, isn't available.  ifconfig is pretty much on every
platform, so that's a good cross-platform fallback.  The format of
ifconfig usually differs between platform, but you can test for that
in configure.

	Jeff





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]