philipp / rpms / dhcp

Forked from rpms/dhcp 4 years ago
Clone

Blame SOURCES/dhcp-default-requested-options.patch

324fcf
diff -up dhcp-4.3.4/client/clparse.c.requested dhcp-4.3.4/client/clparse.c
324fcf
--- dhcp-4.3.4/client/clparse.c.requested	2016-04-29 12:18:50.157151352 +0200
324fcf
+++ dhcp-4.3.4/client/clparse.c	2016-04-29 12:19:22.235137243 +0200
324fcf
@@ -31,7 +31,7 @@
324fcf
 
324fcf
 struct client_config top_level_config;
324fcf
 
324fcf
-#define NUM_DEFAULT_REQUESTED_OPTS	9
324fcf
+#define NUM_DEFAULT_REQUESTED_OPTS	14
324fcf
 /* There can be 2 extra requested options for DHCPv4-over-DHCPv6. */
324fcf
 struct option *default_requested_options[NUM_DEFAULT_REQUESTED_OPTS + 2 + 1];
324fcf
 
324fcf
@@ -116,6 +116,31 @@ isc_result_t read_client_conf ()
324fcf
 	option_code_hash_lookup(&default_requested_options[8],
324fcf
 				dhcpv6_universe.code_hash, &code, 0, MDL);
324fcf
 
324fcf
+	/* 10 */
324fcf
+	code = DHO_NIS_DOMAIN;
324fcf
+	option_code_hash_lookup(&default_requested_options[9],
324fcf
+				dhcp_universe.code_hash, &code, 0, MDL);
324fcf
+
324fcf
+	/* 11 */
324fcf
+	code = DHO_NIS_SERVERS;
324fcf
+	option_code_hash_lookup(&default_requested_options[10],
324fcf
+				dhcp_universe.code_hash, &code, 0, MDL);
324fcf
+
324fcf
+	/* 12 */
324fcf
+	code = DHO_NTP_SERVERS;
324fcf
+	option_code_hash_lookup(&default_requested_options[11],
324fcf
+				dhcp_universe.code_hash, &code, 0, MDL);
324fcf
+
324fcf
+	/* 13 */
324fcf
+	code = DHO_INTERFACE_MTU;
324fcf
+	option_code_hash_lookup(&default_requested_options[12],
324fcf
+				dhcp_universe.code_hash, &code, 0, MDL);
324fcf
+
324fcf
+	/* 14 */
324fcf
+	code = DHO_DOMAIN_SEARCH;
324fcf
+	option_code_hash_lookup(&default_requested_options[13],
324fcf
+				dhcp_universe.code_hash, &code, 0, MDL);
324fcf
+
324fcf
 	for (code = 0 ; code < NUM_DEFAULT_REQUESTED_OPTS ; code++) {
324fcf
 		if (default_requested_options[code] == NULL)
324fcf
 			log_fatal("Unable to find option definition for "