]> git.pld-linux.org Git - packages/dhcp.git/blame - dhcp-default-requested-options.patch
- updated to 4.4.3-P1
[packages/dhcp.git] / dhcp-default-requested-options.patch
CommitLineData
15c1a831
MK
1From f994c4d208a8fe88cbf78d4374c8d44793f0598e Mon Sep 17 00:00:00 2001
2From: Pavel Zhukov <pzhukov@redhat.com>
3Date: Thu, 21 Feb 2019 10:24:24 +0100
4Subject: [PATCH 05/28] Change default requested options
5
6Add NIS domain, NIS servers, NTP servers, interface-mtu and domain-search
7to the list of default requested DHCP options
8---
9 client/clparse.c | 27 ++++++++++++++++++++++++++-
10 1 file changed, 26 insertions(+), 1 deletion(-)
11
12diff --git a/client/clparse.c b/client/clparse.c
13index bb63825..e63ea08 100644
14--- a/client/clparse.c
15+++ b/client/clparse.c
19507c9d 16@@ -31,7 +31,7 @@
8c878a4c
ER
17
18 struct client_config top_level_config;
19
20-#define NUM_DEFAULT_REQUESTED_OPTS 9
19507c9d
AM
21+#define NUM_DEFAULT_REQUESTED_OPTS 14
22 /* There can be 2 extra requested options for DHCPv4-over-DHCPv6. */
23 struct option *default_requested_options[NUM_DEFAULT_REQUESTED_OPTS + 2 + 1];
8c878a4c 24
15c1a831 25@@ -119,6 +119,31 @@ isc_result_t read_client_conf ()
8c878a4c
ER
26 option_code_hash_lookup(&default_requested_options[8],
27 dhcpv6_universe.code_hash, &code, 0, MDL);
28
29+ /* 10 */
30+ code = DHO_NIS_DOMAIN;
31+ option_code_hash_lookup(&default_requested_options[9],
32+ dhcp_universe.code_hash, &code, 0, MDL);
33+
34+ /* 11 */
35+ code = DHO_NIS_SERVERS;
36+ option_code_hash_lookup(&default_requested_options[10],
37+ dhcp_universe.code_hash, &code, 0, MDL);
38+
39+ /* 12 */
40+ code = DHO_NTP_SERVERS;
41+ option_code_hash_lookup(&default_requested_options[11],
42+ dhcp_universe.code_hash, &code, 0, MDL);
19507c9d
AM
43+
44+ /* 13 */
45+ code = DHO_INTERFACE_MTU;
46+ option_code_hash_lookup(&default_requested_options[12],
47+ dhcp_universe.code_hash, &code, 0, MDL);
48+
49+ /* 14 */
50+ code = DHO_DOMAIN_SEARCH;
51+ option_code_hash_lookup(&default_requested_options[13],
52+ dhcp_universe.code_hash, &code, 0, MDL);
8c878a4c
ER
53+
54 for (code = 0 ; code < NUM_DEFAULT_REQUESTED_OPTS ; code++) {
55 if (default_requested_options[code] == NULL)
56 log_fatal("Unable to find option definition for "
15c1a831
MK
57--
582.35.1
59
This page took 0.169992 seconds and 4 git commands to generate.