From 88699130d76b8346038b883da35580f780dbd602 Mon Sep 17 00:00:00 2001 From: Andrew Munger Date: Sat, 15 Apr 2006 01:25:55 +0000 Subject: [PATCH] Send in the list of DHCP options we would like to get back, some servers are not as forthcoming as others. This allows those of you running Windows Server 2003 as your DHCP server to get a domainname and default route. This commit is dedicated to Jaix Bly. svn path=/trunk/; revision=21595 --- reactos/base/services/dhcp/util.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/reactos/base/services/dhcp/util.c b/reactos/base/services/dhcp/util.c index 4ba256eb05f..098109535dd 100644 --- a/reactos/base/services/dhcp/util.c +++ b/reactos/base/services/dhcp/util.c @@ -123,6 +123,24 @@ int read_client_conf(void) { config->send_options[DHO_DHCP_CLIENT_IDENTIFIER].len = ifi->hw_address.hlen; + /* Setup the requested option list */ + config->requested_options + [config->requested_option_count++] = DHO_SUBNET_MASK; + config->requested_options + [config->requested_option_count++] = DHO_BROADCAST_ADDRESS; + config->requested_options + [config->requested_option_count++] = DHO_TIME_OFFSET; + config->requested_options + [config->requested_option_count++] = DHO_ROUTERS; + config->requested_options + [config->requested_option_count++] = DHO_DOMAIN_NAME; + config->requested_options + [config->requested_option_count++] = DHO_DOMAIN_NAME_SERVERS; + config->requested_options + [config->requested_option_count++] = DHO_HOST_NAME; + config->requested_options + [config->requested_option_count++] = DHO_NTP_SERVERS; + warn("util.c read_client_conf poorly implemented!"); return 0; }