nic_router: let DHCP client request domain name

The NIC router parses, stores and forwards DNS domain names from DHCP replies.
Yet the routers DHCP client used to not request DNS domain-name information on
DHCP requests. This caused DHCP servers to skip this information on their
replies although it was available. This commit fixes the issue by adding the
DNS domain name code to the request parameter list of requests from the routers
DHCP client.
This commit is contained in:
Martin Stein 2021-08-27 19:29:35 +02:00 committed by Christian Helmuth
parent 4782f9376c
commit 7fdebc6a09

View File

@ -37,6 +37,7 @@ void append_param_req_list(Dhcp_options &dhcp_opts)
data.append_param_req<Dhcp_packet::Server_ipv4>();
data.append_param_req<Dhcp_packet::Ip_lease_time>();
data.append_param_req<Dhcp_packet::Dns_server_ipv4>();
data.append_param_req<Dhcp_packet::Domain_name>();
data.append_param_req<Dhcp_packet::Subnet_mask>();
data.append_param_req<Dhcp_packet::Router_ipv4>();
});