diff options
author | TK MUN <tk.mun@samsung.com> | 2011-02-23 18:51:22 +0900 |
---|---|---|
committer | Simon Wilson <simonwilson@google.com> | 2011-03-09 18:03:26 -0800 |
commit | 6a10bd1262fd1eb97d3a4ab89507901f9631f32a (patch) | |
tree | 870aa2f9fd317afa6046079770e2f5c3e6ada769 | |
parent | 07e6bad27beabac5f4ed795fbbc7c8b564b14495 (diff) | |
download | external_dhcpcd-6a10bd1262fd1eb97d3a4ab89507901f9631f32a.zip external_dhcpcd-6a10bd1262fd1eb97d3a4ab89507901f9631f32a.tar.gz external_dhcpcd-6a10bd1262fd1eb97d3a4ab89507901f9631f32a.tar.bz2 |
wimax : Change DHCP option for explicit DNS information
Explicitly include DNS in the list of parameters requested in the DHCP request.
Change-Id: If98c8d641e44c73818550df082f298cab440f4ab
Signed-off-by: TK MUN <tk.mun@samsung.com>
-rw-r--r-- | dhcpcd.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -664,11 +664,14 @@ main(int argc, char **argv) VENDORCLASSID_MAX_LEN, "%s %s", PACKAGE, VERSION); -#ifdef CMDLINE_COMPAT - options->options |= DHCPCD_CLIENTID; + /* Explicitly include DNS in the list of parameters requested in the DNS request. + * Without this some DHCP servers may skip the DNS entries in the DHCP replies.*/ add_option_mask(options->requestmask, DHO_DNSSERVER); add_option_mask(options->requestmask, DHO_DNSDOMAIN); add_option_mask(options->requestmask, DHO_DNSSEARCH); + +#ifdef CMDLINE_COMPAT + options->options |= DHCPCD_CLIENTID; add_option_mask(options->requestmask, DHO_NISSERVER); add_option_mask(options->requestmask, DHO_NISDOMAIN); add_option_mask(options->requestmask, DHO_NTPSERVER); |