[H-GEN] Re: getting eth0 information

Martin Pool mbp at linuxcare.com.au
Tue Dec 5 23:22:03 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 ]

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.

-- 
Martin

This is a meritocrosy

--
* 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