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
This commit is contained in:
Andrew Munger 2006-04-15 01:25:55 +00:00
parent 88a9cc78ba
commit 88699130d7

View file

@ -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;
}