Author: amunger
Date: Sat Apr 15 05:25:55 2006
New Revision: 21595
URL:
http://svn.reactos.ru/svn/reactos?rev=21595&view=rev
Log:
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.
Modified:
trunk/reactos/base/services/dhcp/util.c
Modified: trunk/reactos/base/services/dhcp/util.c
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/base/services/dhcp/util.c?r…
==============================================================================
--- trunk/reactos/base/services/dhcp/util.c (original)
+++ trunk/reactos/base/services/dhcp/util.c Sat Apr 15 05:25:55 2006
@@ -123,6 +123,24 @@
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;
}