[ros-diffs] [amunger] 21595: 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.

amunger at svn.reactos.org amunger at svn.reactos.org
Sat Apr 15 03:25:55 CEST 2006


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?rev=21595&r1=21594&r2=21595&view=diff
==============================================================================
--- 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;
 }




More information about the Ros-diffs mailing list