[klibc] problems with ipconfig command (no static config possible)

Olaf Hering olh at suse.de
Thu Aug 19 19:25:26 PDT 2004

 On Thu, Aug 19, H. Peter Anvin wrote:

> Olaf Hering wrote:
> >
> >2.6 has a broken SIOCGIFCONF ioctl, it does only return interfaces in UP

correction: 2.4 shows the same behaviour. Its unclear what the code
tried to do, maybe ip= in the kernel cmdline triggered an ip up.

> >state. So the eth0 is not seen by ipconfig, and your ip= line contains
> >no interface. As a result, no config happens if the interface data are
> >specified manually.
> >
> >this simple patch uses sysfs to find the available interfaces, it adds
> >only ethernet links.
> >
> I don't think that's a good idea; after all, there *are* other 
> legitimate boot targets (FDDI seems to have its own ARPHDR constant 
> which is weird since it uses IEEE MAC addresses, but there is at least 
> Arcnet and EUI64.)

Sure, just removing the type check should be fine.

USB is for mice, FireWire is for men!


More information about the klibc mailing list