summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancis Dupont <fdupont@isc.org>2020-10-12 13:50:46 +0200
committerFrancis Dupont <fdupont@isc.org>2020-10-12 13:50:46 +0200
commit25f124c820d692bbac0290a2114fe23ae1ad972b (patch)
tree68e8364dd5b18b525ad4124e66c6a83ba14db8e8
parent6c7e61578b1b449272dbb40dd8b98d03dad8a57a (diff)
downloadisc-dhcp-25f124c820d692bbac0290a2114fe23ae1ad972b.tar.gz
Added option definition
-rw-r--r--common/tables.c3
-rw-r--r--includes/dhcp.h1
-rw-r--r--includes/site.h1
-rw-r--r--keama/options.c1
4 files changed, 6 insertions, 0 deletions
diff --git a/common/tables.c b/common/tables.c
index 50d9cf10..0d735004 100644
--- a/common/tables.c
+++ b/common/tables.c
@@ -209,6 +209,9 @@ static struct option dhcp_options[] = {
{ "pcode", "t", &dhcp_universe, 100, 1 },
{ "tcode", "t", &dhcp_universe, 101, 1 },
#endif
+#if defined(RFC8925_OPTIONS)
+ { "v6-only-preferred", "L", &dhcp_universe, 108, 1 },
+#endif
{ "netinfo-server-address", "Ia", &dhcp_universe, 112, 1 },
{ "netinfo-server-tag", "t", &dhcp_universe, 113, 1 },
{ "default-url", "t", &dhcp_universe, 114, 1 },
diff --git a/includes/dhcp.h b/includes/dhcp.h
index 0a74137e..84316924 100644
--- a/includes/dhcp.h
+++ b/includes/dhcp.h
@@ -156,6 +156,7 @@ struct dhcp_packet {
#define DHO_AUTHENTICATE 90 /* RFC3118, was 210 */
#define DHO_CLIENT_LAST_TRANSACTION_TIME 91
#define DHO_ASSOCIATED_IP 92
+#define DHO_V6_ONLY_PREFERRED 108 /* RFC8925 */
#define DHO_SUBNET_SELECTION 118 /* RFC3011! */
#define DHO_DOMAIN_SEARCH 119 /* RFC3397 */
#define DHO_VIVCO_SUBOPTIONS 124
diff --git a/includes/site.h b/includes/site.h
index 2ef69e41..533e762b 100644
--- a/includes/site.h
+++ b/includes/site.h
@@ -374,3 +374,4 @@
#define RFC7341_OPTIONS
#define RFC7618_OPTIONS
#define RFC7710_OPTIONS
+#define RFC8925_OPTIONS
diff --git a/keama/options.c b/keama/options.c
index 3f714108..7d1e66ea 100644
--- a/keama/options.c
+++ b/keama/options.c
@@ -170,6 +170,7 @@ struct option_def options4[] = {
{ "geoconf-civic", "X", "dhcp", 99, 2},
{ "pcode", "t", "dhcp", 100, 2},
{ "tcode", "t", "dhcp", 101, 2},
+ { "v6-only-preferred", "L", "dhcp", 108, 2},
{ "netinfo-server-address", "Ia", "dhcp", 112, 2},
{ "netinfo-server-tag", "t", "dhcp", 113, 2},
{ "default-url", "t", "dhcp", 114, 2},