[pkg-dhcp-devel] Bug#875566: isc-dhcp-client: Hurd dhclient-script: Set initial address to 0.0.0.0/8
Joan Lledó
joanlluislledo at gmail.com
Tue Sep 12 09:26:11 UTC 2017
Package: isc-dhcp-client
Version: 4.3.5-3
Severity: normal
Tags: patch
Dear Maintainer,
The Hurd has a new translator to provide a TCP/IP stack using LwIP.
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.
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.
The attached patch solves this issue by setting the address to 0.0.0.0/8,
which is valid for both pfinet and lwip translators.
-- System Information:
Debian Release: stretch/sid
APT prefers unreleased
APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: hurd-i386 (i686-AT386)
Kernel: GNU-Mach 1.8+git20170102-486/Hurd-0.9
Locale: LANG=ca_ES.UTF-8, LC_CTYPE=ca_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
Versions of packages isc-dhcp-client depends on:
ii debianutils 4.8.1
ii libc0.3 2.24-9
ii libdns-export162 1:9.10.3.dfsg.P4-10.1+b1
ii libisc-export160 1:9.10.3.dfsg.P4-10.1+b1
Versions of packages isc-dhcp-client recommends:
ii isc-dhcp-common 4.3.5-3
Versions of packages isc-dhcp-client suggests:
pn avahi-autoipd <none>
pn isc-dhcp-client-ddns <none>
pn resolvconf <none>
-- no debconf information
-------------- next part --------------
>From d9307a68a8a9f1a55d72822c38982eba58db3e65 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Joan=20Lled=C3=B3?= <jlledom at member.fsf.org>
Date: Tue, 12 Sep 2017 11:07:47 +0200
Subject: [PATCH] Hurd dhclient-script: Set initial address to 0.0.0.0/8
---
debian/dhclient-script.hurd | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/debian/dhclient-script.hurd b/debian/dhclient-script.hurd
index d03bf9c..dd4b59f 100644
--- a/debian/dhclient-script.hurd
+++ b/debian/dhclient-script.hurd
@@ -181,7 +181,7 @@ case "$reason" in
# ensure interface is up
# TODO: handle multiple interface case.
- fsysopts /servers/socket/2 -i ${interface}
+ fsysopts /servers/socket/2 -i ${interface} -a 0.0.0.0 -m 255.0.0.0
if [ -n "$alias_ip_address" ]; then
# flush alias IP from interface
--
2.14.0
More information about the pkg-dhcp-devel
mailing list