/[packages]/cauldron/dhcp/current/SOURCES/dhcp-4.2.0-default-requested-options.patch
ViewVC logotype

Contents of /cauldron/dhcp/current/SOURCES/dhcp-4.2.0-default-requested-options.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 996537 - (show annotations) (download)
Tue Mar 29 23:07:58 2016 UTC (4 years ago) by luigiwalser
File size: 1555 byte(s)
- 4.3.4
- rediff patches 101, 104, and 7

1 diff -up dhcp-4.2.0/client/clparse.c.requested dhcp-4.2.0/client/clparse.c
2 --- dhcp-4.2.0/client/clparse.c.requested 2010-07-21 13:29:05.000000000 +0200
3 +++ dhcp-4.2.0/client/clparse.c 2010-07-21 13:50:29.000000000 +0200
4 @@ -37,7 +37,7 @@
5
6 struct client_config top_level_config;
7
8 -#define NUM_DEFAULT_REQUESTED_OPTS 9
9 +#define NUM_DEFAULT_REQUESTED_OPTS 14
10 /* There can be 2 extra requested options for DHCPv4-over-DHCPv6. */
11 struct option *default_requested_options[NUM_DEFAULT_REQUESTED_OPTS + 2 + 1];
12
13 @@ -111,6 +111,31 @@ isc_result_t read_client_conf ()
14 option_code_hash_lookup(&default_requested_options[8],
15 dhcpv6_universe.code_hash, &code, 0, MDL);
16
17 + /* 10 */
18 + code = DHO_NIS_DOMAIN;
19 + option_code_hash_lookup(&default_requested_options[9],
20 + dhcp_universe.code_hash, &code, 0, MDL);
21 +
22 + /* 11 */
23 + code = DHO_NIS_SERVERS;
24 + option_code_hash_lookup(&default_requested_options[10],
25 + dhcp_universe.code_hash, &code, 0, MDL);
26 +
27 + /* 12 */
28 + code = DHO_NTP_SERVERS;
29 + option_code_hash_lookup(&default_requested_options[11],
30 + dhcp_universe.code_hash, &code, 0, MDL);
31 +
32 + /* 13 */
33 + code = DHO_INTERFACE_MTU;
34 + option_code_hash_lookup(&default_requested_options[12],
35 + dhcp_universe.code_hash, &code, 0, MDL);
36 +
37 + /* 14 */
38 + code = DHO_DOMAIN_SEARCH;
39 + option_code_hash_lookup(&default_requested_options[13],
40 + dhcp_universe.code_hash, &code, 0, MDL);
41 +
42 for (code = 0 ; code < NUM_DEFAULT_REQUESTED_OPTS ; code++) {
43 if (default_requested_options[code] == NULL)
44 log_fatal("Unable to find option definition for "

  ViewVC Help
Powered by ViewVC 1.1.26