]> git.pld-linux.org Git - packages/dhcp.git/blob - dhcp-default-requested-options.patch
- introduced -client-dirs subpackage that provides:
[packages/dhcp.git] / dhcp-default-requested-options.patch
1 diff -up dhcp-4.0.0/client/clparse.c.dho dhcp-4.0.0/client/clparse.c
2 --- dhcp-4.0.0/client/clparse.c.dho     2007-12-29 06:32:16.000000000 -1000
3 +++ dhcp-4.0.0/client/clparse.c 2007-12-29 06:35:41.000000000 -1000
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     12
10  struct option *default_requested_options[NUM_DEFAULT_REQUESTED_OPTS + 1];
11  
12  static void parse_client_default_duid(struct parse *cfile);
13 @@ -107,6 +107,21 @@ 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         for (code = 0 ; code < NUM_DEFAULT_REQUESTED_OPTS ; code++) {
33                 if (default_requested_options[code] == NULL)
34                         log_fatal("Unable to find option definition for "
This page took 0.027791 seconds and 3 git commands to generate.