Re: [ILUG] Making a device come up as wlan0 instead of eth0

From: kevin lyda (kevin+dated+1033675552.c2137e at domain ie.suberic.net)
Date: Sat 28 Sep 2002 - 21:06:03 IST


On Sat, Sep 28, 2002 at 08:31:21PM +0100, Greg Farrel wrote:
> Excellant. That's the sort of info I'm looking for? Would any know more
> about this?

it's a dumb solution. you're either solving the wrong problem or using
the wrong solution. but if you would like to continue going down the
wrong road here's the info you seem to want:

    http://lists.linux-wlan.com/pipermail/linux-wlan-devel/2001-April/000134.html

this ioctl will return an error if the device is either up or if
the name already exists. i would imagine that it's easier to parse
/proc/net/wireless then it will be to keep track of what names you've
allocated, when to run your script and a host of other issues.

note, a grep on the 2.4.18 source tree finds 0 hits for wlan%d, one
hit for wvlan%d and 9 for eth%d (and it's only 9 because most drivers
(including the wireless drivers) call alloc_netdev or init_netdev -
both of which allocate ethN names).

kevin

-- 
kevin at domain ie.suberic.net          "How do we know Saddam has weapons of mass
fork()'ed on 37058400          destruction?  We looked at the receipt."
meatspace place: home                                    --Bill Hicks
http://ie.suberic.net/~kevin


This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:19:08 GMT