mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 12:26:09 +00:00
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:
parent
88a9cc78ba
commit
88699130d7
1 changed files with 18 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue