LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Olaf Hering <olh@suse.de>
To: Joshua Kwan <joshk@triplehelix.org>, netdev@oss.sgi.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: consistent ioctl for getting all net interfaces?
Date: Sun, 30 May 2004 22:25:08 +0200 [thread overview]
Message-ID: <20040530202508.GA31468@suse.de> (raw)
In-Reply-To: <pan.2004.05.23.04.28.28.143054@triplehelix.org>
On Sat, May 22, Joshua Kwan wrote:
> Hi,
>
> I'm interested in not having to parse /proc/net/dev to get a list of all
> available (not necessarily even up) interfaces on the system. I
> investigated the ioctl SIOCGIFCONF, but it seems to behave differently on
> 2.4 and 2.6 series kernels, e.g. sometimes it won't return all interfaces.
you should bring that to netdev@oss.sgi.com instead of lkml.
IF the ioctl has really changed, then it would be a bug. I just played
with ipconfig from the klibc distribution, and it returns only
interfaces in UP state. I'm sure that ipconfig binary worked when the
code was written.
If the ioctl is supposed to work how it does in 2.6, there is still
/sys/class/net/*. Thats (probably) more reliable than a text parser.
See `nameif -r 'foo: bar' eth0` as example.
--
USB is for mice, FireWire is for men!
sUse lINUX ag, nÜRNBERG
next prev parent reply other threads:[~2004-05-30 20:27 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-23 4:28 Joshua Kwan
2004-05-23 5:35 ` viro
2004-05-23 5:57 ` Joshua Kwan
2004-05-23 6:05 ` viro
2004-05-23 15:20 ` Tigran Aivazian
2004-05-23 15:25 ` Tigran Aivazian
2004-05-23 15:29 ` Joshua Kwan
2004-05-30 20:25 ` Olaf Hering [this message]
2004-05-23 12:35 Albert Cahalan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040530202508.GA31468@suse.de \
--to=olh@suse.de \
--cc=joshk@triplehelix.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@oss.sgi.com \
--subject='Re: consistent ioctl for getting all net interfaces?' \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).