[pkg-dhcp-devel] Bug#759761: isc-dhcp-client-udeb: kfreebsd: fails to set netmask

Steven Chamberlain steven at pyro.eu.org
Sat Aug 30 01:44:44 UTC 2014


Package: isc-dhcp-client-udeb
Version: 4.3.1-1
Tags: patch
User: debian-bsd at lists.debian.org
Usertags: kfreebsd

Hi,

On kfreebsd, the udeb for ISC DHCP client fails to set a netmask,
if one was given in the DHCP lease.  This means some hosts on the
local network may be unreachable, perhaps nameservers or something
essential for reaching the Internet.

The patch is very simple:

--- isc-dhcp-4.3.1/debian/dhclient-script.kfreebsd.udeb.orig	2014-08-14 00:34:18.000000000 +0100
+++ isc-dhcp-4.3.1/debian/dhclient-script.kfreebsd.udeb	2014-08-30 01:10:42.116515955 +0100
@@ -82,7 +82,7 @@
            [ "$old_ip_address" != "$new_ip_address" ] ||
            [ "$reason" = "BOUND" ] || [ "$reason" = "REBOOT" ]; then
 
-            ifconfig $interface inet $new_ip_address $new_subnet_arg \
+            ifconfig $interface inet $new_ip_address$new_mask \
                 ${new_broadcast_address:+broadcast $new_broadcast_address} $medium $mtu_arg
             route add $new_ip_address 127.1 $metric_arg >/dev/null 2>&1 || true
             for router in $new_routers; do

Where $new_mask is /prefixlen, calculated earlier in the script, or
otherwise it is an empty string.

I've tested this within kfreebsd-amd64 d-i as a local udeb.

Thanks!

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: kfreebsd-amd64 (x86_64)

Kernel: kFreeBSD 9.0-2-amd64-xenhvm-ipsec
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash



More information about the pkg-dhcp-devel mailing list