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