Package: ifupdown
Version: 0.8.35
Tags: Patch

Hi,

I have a Box that I want to connect to several network which do (or don't) IP
autoconfiguration.
For IPv4, this works fine. Even when there is no IPv4 dhcp server, the
machine continues to boot after a timeout.

For IPv6, when ausing SLAAC autoconfiguration for the address, and trying to
get the rest (resolver, ntp,...) via stateless dhcp, if currently hangs
forever trying to get this information on booted on a network which does not
have a IPv6 dhcp.

Which this patch, the call to dhclient has an option to timeout, so at least
the machine continues to boot.

Thanks for including it.

Bye,

Joerg


--- ifupdown-0.8.35.orig/inet6.defn     2019-01-28 21:14:20.000000000 +0100
+++ ifupdown-0.8.35/inet6.defn  2019-12-23 10:46:45.894975624 +0100
@@ -31,7 +31,7 @@
     /lib/ifupdown/wait-for-ll6.sh if (var_true("dhcp", ifd) && 
execable("/lib/ifupdown/wait-for-ll6.sh"))
     /sbin/dhclient -6 -v -P -pf /run/dhclient6.%iface%.pid -lf 
/var/lib/dhcp/dhclient6.%iface%.leases -I -df 
/var/lib/dhcp/dhclient.%iface%.leases %iface% \
         if (var_true("dhcp", ifd) && execable("/sbin/dhclient") && 
var_true("request_prefix", ifd))
-    /sbin/dhclient -6 -v -S -pf /run/dhclient6.%iface%.pid -lf 
/var/lib/dhcp/dhclient6.%iface%.leases -I -df 
/var/lib/dhcp/dhclient.%iface%.leases %iface% \
+    /sbin/dhclient -6 -1 -v -S -pf /run/dhclient6.%iface%.pid -lf 
/var/lib/dhcp/dhclient6.%iface%.leases -I -df 
/var/lib/dhcp/dhclient.%iface%.leases %iface% \
         elsif (var_true("dhcp", ifd) && execable("/sbin/dhclient"))
     echo 'No DHCPv6 client software found!' >&2; false \
         elsif (var_true("dhcp", ifd))

Attachment: signature.asc
Description: PGP signature

Reply via email to