bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

DHCP client


From: Joan Lledó
Subject: DHCP client
Date: Mon, 11 Sep 2017 12:59:34 +0200

Hello,

In my tests on the lwip translator, I've observed that the DHCP client
sets the interface address to 255.255.255.255 before sending the
DHCPDISCOVER messages. I found the source of this behaviour in the
dhclient-script[1].

The script executes "fsysopts /servers/socket/2 -i ${interface}" in
the PREINIT state, This command in intended to up the interface, but
it sets its address to INADDR_NONE too. That's not a problem for
pfinet, but it's not supported by lwip. That's why I had to apply a
patch to lwip to solve this problem.

To avoid applying the patch, I suggest to replace the PREINIT command for this:
fsysopts /servers/socket/2 -i ${interface} -a

The "-a" option sets the address to 0.0.0.0, which works fine for both
pfinet and lwip.

----------------------------------------
[1] 
https://anonscm.debian.org/cgit/pkg-dhcp/isc-dhcp.git/tree/debian/dhclient-script.hurd?id=0f8146a98dcf5eea5467b2d5974695ac4d94b5ae#n184



reply via email to

[Prev in Thread] Current Thread [Next in Thread]