[pkg-dhcp-devel] Bug#748272: isc-dhcp-client: RFC 3442 Classless Static Routes related typo in dhclient-script

Romain Chantereau romain.chantereau at enovance.com
Thu May 15 15:28:52 UTC 2014


Package: isc-dhcp-client
Version: 4.2.4-7
Severity: important
Tags: patch

Dear Maintainer,

According to RFC 3442, if the DHCP server returns both a Classless Static
Routes option and a Router option, the DHCP client MUST ignore the Router
option. Similarly, if the DHCP server returns both a Classless Static Routes
option and a Static Routes option, the DHCP client MUST ignore the Static
Routes option.

I was on the first case and my dhclient set default gateway according to
routers option and static routes according to CSR: that was not the expected
behaviour.
After some hours of investigations, I found a typo in dhclient-script.
The joined patch fix it.

After applying this patch, router option is no longer applied if CSR are
provided.

Of course I believe this fix could break a lot of config based badly
setup dhcp
server but it is the RFC *MUST* prescription.



-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.14-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages isc-dhcp-client depends on:
ii  debianutils      4.4
ii  iproute          1:3.12.0-1
ii  isc-dhcp-common  4.2.4-7
ii  libc6            2.17-97

isc-dhcp-client recommends no packages.

Versions of packages isc-dhcp-client suggests:
ii  avahi-autoipd  0.6.31-2
ii  resolvconf     1.74

-- no debconf information

-------------- next part --------------
A non-text attachment was scrubbed...
Name: dhclient-script.patch
Type: text/x-diff
Size: 536 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-dhcp-devel/attachments/20140515/426af497/attachment.patch>


More information about the pkg-dhcp-devel mailing list