Report information
The Basics
Id:
23252
Status:
resolved
Estimated:
2 hours (120 minutes)
Worked:
5 hours (300 minutes)
Users:
tmark: 5 hours (300 minutes)
Priority:
Low/Low
Queue:

BugTracker
Version Fixed:
4.4.0
Version Found:
(no value)
Versions Affected:
(no value)
Versions Planned:
4.4.0
Priority:
P2 Normal
Severity:
S2 Normal
CVSS Score:
(no value)
CVE ID:
(no value)
Component:
(no value)
Area:
feature

Dates
Created:Tue, 15 Feb 2011 18:43:10 -0500
Updated:Fri, 05 Jan 2018 07:10:23 -0500
Closed:Fri, 05 Jan 2018 07:10:23 -0500



This bug tracker is no longer active.

Please go to our Gitlab to submit issues (both feature requests and bug reports) for active projects maintained by Internet Systems Consortium (ISC).

Due to security and confidentiality requirements, full access is limited to the primary maintainers.

Subject: rfc compliant dhcpv6 prefix length
Date: Wed, 16 Feb 2011 00:42:53 +0100
To: dhcp-suggest@isc.org
From: Hannes Frederic Sowa <hannes@stressinduktion.org>
Hello! Some time ago (last year) we had a thread on linux-net about handling prefix lengths in dhcpv6. David Hankins idea [1] was to use a custom prefix-length option in the VSIO space. I like this idea a lot, especially because you can deploy networks without being dependent on router advertisments. In the case where such an option is missing from a dhcp-offer one could fall back to the following solution (I also posted it as a reply [2]): Scan the routingtable via libnl or rtnetlink and apply the prefix-length of the route with the longest-matching prefix marked with RTF_ADDRCONF | RTF_PREFIX_RT (this is of couse a linux-only solution, solaris and freebsd should have proper apis to query prefix-length information from router advertisments). I haven't tried it if the flags are correclty exported to userspace. But if you are interested in such a fall-back solution I would be happy to test this case at the weekend in my testbed. Btw: I have seen setups where they currently use dibbler-dhcp to advertise /96-prefixes, as the "upstream" has only received a /64 itself. So non-/64 length prefixes will be an issue in near future, I think (I know it is so wrong). Greetings from Germany, Hannes [1] http://article.gmane.org/gmane.linux.network.general/14099 [2] http://article.gmane.org/gmane.linux.network.general/14572
 We have now committed a patch to allow the prefix
length to be set at compile time.  By default this is
set to 64 to avoid changes to currently running systems
but it can be changed to 128 or any other value by
editing the includes/site.h file.

I'm leaving this ticket open as we may choose to enhance how
the prefix length is determined in the future.



On Fri Nov 10 16:14:45 2017, tmark wrote: > Changed the default in site.h to 128 and added command line argument, > "--address-prefix-len". > > Ready for review. => code OK but we should insist more this is an incompatible (with previous ISC DHCP) change. And there is no reason to not backport it too.
Hello Hannes: In response to your issue we have made some changes which will be included in our upcoming feature release, ISC DHCP 4.4.0, which is due out Q1/2018. First, we have changed the value of DHCLIENT_DEFAULT_PREFIX_LEN from 64 to 128. This macro, in includes/site.h, determines the default value which is passed into the client script. The value of 128 is more in line with the views expressed by the IETF. Secondly, we have added a command line parameter to dhclient: ---address-prefix-len. This allows you to specify a value of your choice at runtime should you need a value other than 128. We felt these changes were the most appropriate approach and hope you find them useful. We like to thank our contributors by citing them in our release notes. If you would like to recognized in this fashion, please respond with how you wish to be identified. Sincerely, Thomas Markwalder ISC Software Engineering
This change is not backward compatible and RELNOTES should be updated to warn DHCPv6 client users to take attention to that.