aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTK MUN <tk.mun@samsung.com>2011-02-23 18:51:22 +0900
committerSimon Wilson <simonwilson@google.com>2011-03-09 18:03:26 -0800
commit6a10bd1262fd1eb97d3a4ab89507901f9631f32a (patch)
tree870aa2f9fd317afa6046079770e2f5c3e6ada769
parent07e6bad27beabac5f4ed795fbbc7c8b564b14495 (diff)
downloadexternal_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.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/dhcpcd.c b/dhcpcd.c
index ff95a83..92ba92e 100644
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -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);