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