Re: Enumerate interfaces?

Mark H. Wood (mwood@IUPUI.Edu)
Tue, 8 Sep 1998 12:10:12 -0500 (EST)


On Tue, 8 Sep 1998, Avery Pennarun wrote:
> If you want a list of _all_ interfaces, you seem to need to parse
> /proc/net/dev. Of course, in 2.1.x, that doesn't include the list of IP
> aliases, which is available with SIOCGIFCONF. So if you really want a
> complete list, you need to combine the results of both methods. Isn't this
> fun?

Indeed. Looks like time for me to get my kernel-hacking feet wet by
writing a sysctl() extension. Meanwhile, thanks for the tip!

-- 
Mark H. Wood, Lead System Programmer   mwood@IUPUI.Edu
Some things are not improved when made "graphical".  Imagine how crude
Kilmer's "Trees" would be if reduced to comic-book form.

- To unsubscribe from this list: send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.rutgers.edu