| To: | Joshua Kwan <joshk@xxxxxxxxxxxxxxx>, netdev@xxxxxxxxxxx |
|---|---|
| Subject: | Re: consistent ioctl for getting all net interfaces? |
| From: | Olaf Hering <olh@xxxxxxx> |
| Date: | Sun, 30 May 2004 22:25:08 +0200 |
| Cc: | linux-kernel@xxxxxxxxxxxxxxx |
| In-reply-to: | <pan.2004.05.23.04.28.28.143054@triplehelix.org> |
| References: | <pan.2004.05.23.04.28.28.143054@triplehelix.org> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Mutt und vi sind doch schneller als Notes |
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@xxxxxxxxxxx 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 |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [patch] Re: Gigabit Kconfig problems with yesterday's update, Jeff Garzik |
|---|---|
| Next by Date: | [PATCH 1/17 linux-2.6.7-rc2] prism54: delete cvs tags, Margit Schubert-While |
| Previous by Thread: | [PATCH 17/17 linux-2.6.7-rc2] prism54: White space and indentation, Margit Schubert-While |
| Next by Thread: | [PATCH 1/17 linux-2.6.7-rc2] prism54: delete cvs tags, Margit Schubert-While |
| Indexes: | [Date] [Thread] [Top] [All Lists] |