]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
[master] Add #define for length of prefix we send to v6 client script
authorShawn Routhier <sar@isc.org>
Thu, 8 May 2014 17:58:45 +0000 (10:58 -0700)
committerShawn Routhier <sar@isc.org>
Thu, 8 May 2014 17:58:45 +0000 (10:58 -0700)
RELNOTES
client/dhc6.c
includes/site.h

index 62cab0e36a34f3df5edd6b4129db6b72a83287ea..eb4c2770d74f806f74a98a2ca8b1ad8303e0051a 100644 (file)
--- a/RELNOTES
+++ b/RELNOTES
@@ -139,6 +139,11 @@ by Eric Young (eay@cryptsoft.com).
   Thanks to Marius Tomaschewski for the suggestion and proto-patch.
   [ISC-Bugs #29713]
 
+- Add a #define to specify the prefix length used when a client attempts
+  to configure an address.  This can be modified by editing includes/site.h.
+  By default it is set to 64.  While 128 might be a better choice it would
+  also be a change for currently running systems, so we have left it at 64.
+
                        Changes since 4.3.0rc1
 
 - None
index 3954b43e54b27b9699943adb9e46988b1825bb52..c724b5816658a342a8a4616cb6536dad0fbf72a8 100644 (file)
@@ -3851,11 +3851,8 @@ dhc6_marshall_values(const char *prefix, struct client_state *client,
                                      piaddr(addr->address),
                                      (unsigned) addr->plen);
                } else {
-                       /* Current practice is that all subnets are /64's, but
-                        * some suspect this may not be permanent.
-                        */
                        client_envadd(client, prefix, "ip6_prefixlen",
-                                     "%d", 64);
+                                     "%d", DHCLIENT_DEFAULT_PREFIX_LEN);
                        client_envadd(client, prefix, "ip6_address",
                                      "%s", piaddr(addr->address));
                }
index 34aba0c07adeaa89aeff6db6626b63ca11b83b60..6ba5a8a76d0ac9fcc20f71ea3ab9f2287303d8a4 100644 (file)
    entail updating all the records at once, probably at start
    up. */
 #define DDNS_UPDATE_SLOW_TRANSITION
-   
+
+/* Define the default prefix length passed from the client to
+   the script when modifying an IPv6 IA_NA or IA_TA address.
+   The two most useful values are 128 which is what the current
+   specifications call for or 64 which is what has been used in
+   the past.  For most OSes 128 will indicate that the address
+   is a host address and doesn't include any on-link information.
+   64 indicates that the first 64 bits are the subnet or on-link
+   prefix. */
+#define DHCLIENT_DEFAULT_PREFIX_LEN 64
+
 /* Include definitions for various options.  In general these
    should be left as is, but if you have already defined one
    of these and prefer your definition you can comment the