Blame SOURCES/0005-Change-default-requested-options.patch

df4638
From a2a3554ff9e05d1a8e2c8aa843f1b6a33fce87e3 Mon Sep 17 00:00:00 2001
df4638
From: Pavel Zhukov <pzhukov@redhat.com>
df4638
Date: Thu, 21 Feb 2019 10:24:24 +0100
df4638
Subject: [PATCH 05/26] Change default requested options
df4638
Cc: pzhukov@redhat.com
df4638
df4638
Add NIS domain, NIS servers, NTP servers, interface-mtu and domain-search
df4638
to the list of default requested DHCP options
df4638
---
df4638
 client/clparse.c | 27 ++++++++++++++++++++++++++-
df4638
 1 file changed, 26 insertions(+), 1 deletion(-)
df4638
df4638
diff --git a/client/clparse.c b/client/clparse.c
df4638
index 7212e3a..39b95a0 100644
df4638
--- a/client/clparse.c
df4638
+++ b/client/clparse.c
df4638
@@ -31,7 +31,7 @@
df4638
 
df4638
 struct client_config top_level_config;
df4638
 
df4638
-#define NUM_DEFAULT_REQUESTED_OPTS	9
df4638
+#define NUM_DEFAULT_REQUESTED_OPTS	14
df4638
 /* There can be 2 extra requested options for DHCPv4-over-DHCPv6. */
df4638
 struct option *default_requested_options[NUM_DEFAULT_REQUESTED_OPTS + 2 + 1];
df4638
 
df4638
@@ -116,6 +116,31 @@ isc_result_t read_client_conf ()
df4638
 	option_code_hash_lookup(&default_requested_options[8],
df4638
 				dhcpv6_universe.code_hash, &code, 0, MDL);
df4638
 
df4638
+	/* 10 */
df4638
+	code = DHO_NIS_DOMAIN;
df4638
+	option_code_hash_lookup(&default_requested_options[9],
df4638
+				dhcp_universe.code_hash, &code, 0, MDL);
df4638
+
df4638
+	/* 11 */
df4638
+	code = DHO_NIS_SERVERS;
df4638
+	option_code_hash_lookup(&default_requested_options[10],
df4638
+				dhcp_universe.code_hash, &code, 0, MDL);
df4638
+
df4638
+	/* 12 */
df4638
+	code = DHO_NTP_SERVERS;
df4638
+	option_code_hash_lookup(&default_requested_options[11],
df4638
+				dhcp_universe.code_hash, &code, 0, MDL);
df4638
+
df4638
+	/* 13 */
df4638
+	code = DHO_INTERFACE_MTU;
df4638
+	option_code_hash_lookup(&default_requested_options[12],
df4638
+				dhcp_universe.code_hash, &code, 0, MDL);
df4638
+
df4638
+	/* 14 */
df4638
+	code = DHO_DOMAIN_SEARCH;
df4638
+	option_code_hash_lookup(&default_requested_options[13],
df4638
+				dhcp_universe.code_hash, &code, 0, MDL);
df4638
+
df4638
 	for (code = 0 ; code < NUM_DEFAULT_REQUESTED_OPTS ; code++) {
df4638
 		if (default_requested_options[code] == NULL)
df4638
 			log_fatal("Unable to find option definition for "
df4638
-- 
df4638
2.14.5
df4638