Re: Enumerate interfaces?

Thomas 'Dent' Mirlacher (dent@cosy.sbg.ac.at)
Fri, 11 Sep 1998 09:34:31 +0200 (CEST)


On Tue, 8 Sep 1998, Avery Pennarun wrote:

> On Tue, Sep 08, 1998 at 11:28:03AM +0100, Glynn Clements wrote:
>
> > > Would someone point me to documentation on how to walk the list of
> > > defined network interfaces? Thanks!
> >
> > The attached example was derived from the appropriate sections of the
> > source code for `ifconfig'.
>
> And it has the same problem as ifconfig: it only lists 'up' interfaces, at
> least in Linux 2.0.x (and last time I experimented, it's true of 2.1.x
> also).

NOT if you use:

ifconfig -a

(list all interfaces, no matter if they're up or down.)

++dent

-- 
Thomas Mirlacher	Student of ComputerScience, University of Salzburg
dent@cosy.sbg.ac.at	http://www.cosy.sbg.ac.at/~dent

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