diff options
author | Shawn Routhier <sar@isc.org> | 2014-05-08 11:07:19 -0700 |
---|---|---|
committer | Shawn Routhier <sar@isc.org> | 2014-05-08 11:07:19 -0700 |
commit | b39f82b343b8763246cf76323e9eaa0888e0fc8b (patch) | |
tree | f46dad9da2fc5c22badc80f26942346d588a95f3 | |
parent | 54e3f55b2106cb01f1be8a101a550f7af2d37c43 (diff) | |
download | isc-dhcp-b39f82b343b8763246cf76323e9eaa0888e0fc8b.tar.gz |
[v4_2] Add #define for length of prefix we send to v6 client script
-rw-r--r-- | RELNOTES | 5 | ||||
-rw-r--r-- | client/dhc6.c | 5 | ||||
-rw-r--r-- | includes/site.h | 11 |
3 files changed, 17 insertions, 4 deletions
@@ -114,6 +114,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.2.6rc1 - None diff --git a/client/dhc6.c b/client/dhc6.c index a86c1f46..58eb9acf 100644 --- a/client/dhc6.c +++ b/client/dhc6.c @@ -3914,11 +3914,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)); } diff --git a/includes/site.h b/includes/site.h index 3de180c1..fac1fd07 100644 --- a/includes/site.h +++ b/includes/site.h @@ -283,3 +283,14 @@ /* #define LOG_V6_ADDRESSES */ +/* 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 + + |