[H-GEN] Re: getting eth0 information
Andrae Muys
amuys at shortech.com.au
Wed Dec 6 00:15:41 EST 2000
[ Humbug *General* list - semi-serious discussions about Humbug and ]
[ Unix-related topics. Please observe the list's charter. ]
[ Worthwhile understanding: http://www.humbug.org.au/netiquette.html ]
Martin Pool wrote:
>
> [ Humbug *General* list - semi-serious discussions about Humbug and ]
> [ Unix-related topics. Please observe the list's charter. ]
> [ Worthwhile understanding: http://www.humbug.org.au/netiquette.html ]
>
> On 6 Dec 2000, Benjamin Robert Carlyle <benc at foxboro.com.au> wrote:
>
> > Martin's ifconfig idea is cute, and I have
> > vauge recollections that ifconfig it's self reads from /proc.
>
> Yes, that's what I meant by mentioning /proc/net/dev. It's a fairly
> nice separation to just have the userspace programs put a friendly
> face on this information.
>
> You might look at GNOME's libgtop, which tries to hide platform
> differences, though at the cost of a somewhat complex API. There are
> probably others. As Ben says you could use SNMP.
>
May I suggest that you avoid libgtop for now. Whilst the library is
stable, the maintainer wishes to redesign the API now, before hordes of
utility programmers start depending on it.
Actually I suppose a better way of putting it is. It's stable, it
works, but you should consider the entire API deprecated.
Especially given that between the ioctl() mentioned by Chris, and the
procfs stuff you should be able to do what you need to do without it.
Andrae.
--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.
More information about the General
mailing list