On Thu, Feb 06, 2003 at 11:05:06PM +0100, Oliver Neukum wrote: > Am Donnerstag, 6. Februar 2003 23:32 schrieb Alan Cox: > > On Thu, 2003-02-06 at 19:21, Oliver Kurth wrote: > > > Hello again, > > > > > > not as important as my last patch, but I think it's useful, especially > > > for hotpluggable devices, that can be plugged in at any order: set the > > > network device name with a module parameter (eth_name). > > > > SIOCSIFNAME handles this generically in the network core > > Very well, therefore I consider this case closed.
Sorry, not yet for me. I can do the SIOCSIFNAME only if the net device is already there. What I want is that I give the kaweth device eg. the name usb0 (next one usb1 and so on), my wireless orinoco eg. wlan0 and so on. At the moment, the names depend on the order I plug them in. If I plug in my orinoco first, it gets eth1, if I plug in the kaweth first, _it_ gets eth1, and the orinoco would get eth2. But I want to know which sort of device I have, so that I can configure them automatically using hotplug and ifupdown (from Debian). Naturally, kaweth and orinoco need different configurations. This cannot be achieved with changing the name when it is already given. With a module parameter I could achieve this with either configuring it in /etc/modules.conf or loading the module(s) on boot with parameters. If this can be done with SIOCSIFNAME, please show me. Greetings, Oliver
msg11384/pgp00000.pgp
Description: PGP signature
