[pkg-dhcp-devel] configuring down/0.0.0.0 interfaces.

Sergey Naumov sknaumov at gmail.com
Sat May 7 18:23:18 UTC 2011


Hello.

dhcp4 client does not process down interfaces or interfaces with 0.0.0.0
address if they were not specified explicitly in command line, but only in
dhclient.conf.

As far as I know in dhcpv3 there was not SIOCGIFADDR ioctl in
discover_interfaces().
In dhcpv4 there is call to next_iface4() where interface's address is
acquired. But down interface or interface with 0.0.0.0 address will not be
processed because of EADDRNOTAVAIL, so they are excluded from list of
existent interfaces. I think behavior depends on linux kernel version,
because in squeeze it does not work for down/0.0.0.0 interfaces, but in my
busybox-based system with linux-2.6.35.3 it works for down interface if it's
address was not equal to 0.0.0.0 before switching down.

Can I manually fill address structure with values appropriate for 0.0.0.0
address after EADDRNOTAVAIL (instead excluding interface at all) to overcome
this problem? Will it be correct workaround?

Thanks in advance,
Sergey Naumov.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-dhcp-devel/attachments/20110507/5082fc95/attachment.htm>


More information about the pkg-dhcp-devel mailing list