philipp / rpms / dhcp

Forked from rpms/dhcp 4 years ago
Clone

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

45d60a
diff -up dhcp-4.2.0/client/clparse.c.requested dhcp-4.2.0/client/clparse.c
45d60a
--- dhcp-4.2.0/client/clparse.c.requested	2010-07-21 13:29:05.000000000 +0200
45d60a
+++ dhcp-4.2.0/client/clparse.c	2010-07-21 13:50:29.000000000 +0200
45d60a
@@ -37,7 +37,7 @@
45d60a
 
45d60a
 struct client_config top_level_config;
45d60a
 
45d60a
-#define NUM_DEFAULT_REQUESTED_OPTS	9
45d60a
+#define NUM_DEFAULT_REQUESTED_OPTS	14
45d60a
 struct option *default_requested_options[NUM_DEFAULT_REQUESTED_OPTS + 1];
45d60a
 
45d60a
 static void parse_client_default_duid(struct parse *cfile);
45d60a
@@ -111,6 +111,31 @@ isc_result_t read_client_conf ()
45d60a
 	option_code_hash_lookup(&default_requested_options[8],
45d60a
 				dhcpv6_universe.code_hash, &code, 0, MDL);
45d60a
 
45d60a
+	/* 10 */
45d60a
+	code = DHO_NIS_DOMAIN;
45d60a
+	option_code_hash_lookup(&default_requested_options[9],
45d60a
+				dhcp_universe.code_hash, &code, 0, MDL);
45d60a
+
45d60a
+	/* 11 */
45d60a
+	code = DHO_NIS_SERVERS;
45d60a
+	option_code_hash_lookup(&default_requested_options[10],
45d60a
+				dhcp_universe.code_hash, &code, 0, MDL);
45d60a
+
45d60a
+	/* 12 */
45d60a
+	code = DHO_NTP_SERVERS;
45d60a
+	option_code_hash_lookup(&default_requested_options[11],
45d60a
+				dhcp_universe.code_hash, &code, 0, MDL);
45d60a
+
45d60a
+	/* 13 */
45d60a
+	code = DHO_INTERFACE_MTU;
45d60a
+	option_code_hash_lookup(&default_requested_options[12],
45d60a
+				dhcp_universe.code_hash, &code, 0, MDL);
45d60a
+
45d60a
+	/* 14 */
45d60a
+	code = DHO_DOMAIN_SEARCH;
45d60a
+	option_code_hash_lookup(&default_requested_options[13],
45d60a
+				dhcp_universe.code_hash, &code, 0, MDL);
45d60a
+
45d60a
 	for (code = 0 ; code < NUM_DEFAULT_REQUESTED_OPTS ; code++) {
45d60a
 		if (default_requested_options[code] == NULL)
45d60a
 			log_fatal("Unable to find option definition for "