diff options
author | Thomas Markwalder <tmark@isc.org> | 2018-01-26 09:39:27 -0500 |
---|---|---|
committer | Thomas Markwalder <tmark@isc.org> | 2018-01-26 09:39:27 -0500 |
commit | 8c4f45fe27d899a742fddf4a4d3172a17e30b348 (patch) | |
tree | 172bad67d3ebd11861d73a3e7d2711f956378967 | |
parent | b94669fa89ba991b51c3a8f37cad3033d5d9fb36 (diff) | |
download | isc-dhcp-8c4f45fe27d899a742fddf4a4d3172a17e30b348.tar.gz |
[47062] Compile in DHCP4 options for RFC 4578,5071, and 5859
-rw-r--r-- | common/tables.c | 17 | ||||
-rw-r--r-- | includes/site.h | 5 |
2 files changed, 13 insertions, 9 deletions
diff --git a/common/tables.c b/common/tables.c index b3d5ae66..bf672cd8 100644 --- a/common/tables.c +++ b/common/tables.c @@ -3,7 +3,7 @@ Tables of information... */ /* - * Copyright (c) 2004-2017 by Internet Systems Consortium, Inc. ("ISC") + * Copyright (c) 2004-2018 by Internet Systems Consortium, Inc. ("ISC") * Copyright (c) 1995-2003 by Internet Software Consortium * * This Source Code Form is subject to the terms of the Mozilla Public @@ -191,7 +191,7 @@ static struct option dhcp_options[] = { { "client-last-transaction-time", "L", &dhcp_universe, 91, 1 }, { "associated-ip", "Ia", &dhcp_universe, 92, 1 }, -#if 0 +#if defined(RFC4578_OPTIONS) /* Defined by RFC 4578 */ { "pxe-system-type", "S", &dhcp_universe, 93, 1 }, { "pxe-interface-id", "BBB", &dhcp_universe, 94, 1 }, @@ -250,8 +250,7 @@ static struct option dhcp_options[] = { #if defined(RFC6731_OPTIONS) { "rdnss-selection", "BIID", &dhcp_universe, 146, 1 }, #endif -#if 0 - /* Not defined by RFC yet */ +#if defined(RFC5859_OPTIONS) { "tftp-server-address", "Ia", &dhcp_universe, 150, 1 }, #endif #if defined(RFC7618_OPTIONS) @@ -260,9 +259,11 @@ static struct option dhcp_options[] = { #if defined(RFC7710_OPTIONS) { "v4-captive-portal", "t", &dhcp_universe, 160, 1 }, #endif -#if 0 - /* PXELINUX options: defined by RFC 5071 */ +#if defined(RFC5071_OPTIONS) +#if 0 + /* Option 208 has been officially deprecated. Do NOT define it */ { "pxelinux-magic", "BBBB", &dhcp_universe, 208, 1 }, +#endif { "loader-configfile", "t", &dhcp_universe, 209, 1 }, { "loader-pathprefix", "t", &dhcp_universe, 210, 1 }, { "loader-reboottime", "L", &dhcp_universe, 211, 1 }, @@ -365,10 +366,10 @@ static struct option dhcpv6_options[] = { { "relay-msg", "X", &dhcpv6_universe, 9, 1 }, /* Option code 10 is curiously unassigned. */ - /* + /* * In draft-ietf-dhc-dhcpv6-25 there were two OPTION_CLIENT_MSG and * OPTION_SERVER_MSG options. They were eventually unified as - * OPTION_RELAY_MSG, hence no option with value of 10. + * OPTION_RELAY_MSG, hence no option with value of 10. */ #if 0 /* XXX: missing suitable atoms for the auth option. We may want diff --git a/includes/site.h b/includes/site.h index d9c1494b..2ef69e41 100644 --- a/includes/site.h +++ b/includes/site.h @@ -345,17 +345,20 @@ /* 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 + of these and prefer your definition you can comment the RFC define out to avoid conflicts */ #define RFC2563_OPTIONS #define RFC2937_OPTIONS #define RFC4776_OPTIONS +#define RFC4578_OPTIONS #define RFC4833_OPTIONS #define RFC4994_OPTIONS +#define RFC5071_OPTIONS #define RFC5192_OPTIONS #define RFC5223_OPTIONS #define RFC5417_OPTIONS #define RFC5460_OPTIONS +#define RFC5859_OPTIONS #define RFC5969_OPTIONS #define RFC5970_OPTIONS #define RFC5986_OPTIONS |