Re: 2.6.18-rc4-mm[1,2,3] -- Network card not getting assigned an"eth" device name

From: David Miller
Date: Mon Aug 28 2006 - 16:24:27 EST


From: Andrew Morton <akpm@xxxxxxxx>
Date: Mon, 28 Aug 2006 12:03:28 -0700

> grepping for `ioctl' gives:
>
> ioctl(9, SIOCGIWNAME, 0xbfe38d8c) = -1 EINVAL (Invalid argument)
> ioctl(9, SIOCETHTOOL, 0xbfe38d2c) = 0
> ioctl(11, SIOCGIFHWADDR, {ifr_name="eth0", ???}) = -1 ENODEV (No such device)
> ioctl(11, SIOCGIFFLAGS, {ifr_name="eth0", ???}) = -1 ENODEV (No such device)
>
> Perhaps you could generate the strace output for 2.6.18-rc5, grep that for
> ioctl, look for differences? That initial SIOCGIWNAME failure is fishy.

That might help, but SIOCGIWNAME just gets a string that
says what wireless mode the device is in, not the device
name. Althought NetworkManager might use this for something
interesting.

All of the interesting config calls are probably happening
via netlink, which doesn't get decoded by strace.

But changes via netlink can get traced by using "ip" in monitor mode,
try "ip monitor all" as root during such a NetworkManager run.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/