mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-10 16:20:15 +01:00
dhcp: always explicitly set request/information-request flags for internal DHCPv6 client
It seems clearer to explicitly set this always, and not rely on the defaults.
This commit is contained in:
parent
265a4a07bd
commit
bacd3e1482
1 changed files with 4 additions and 5 deletions
|
|
@ -294,11 +294,10 @@ ip6_start(NMDhcpClient *client, const struct in6_addr *ll_addr, GError **error)
|
|||
|
||||
_LOGT("dhcp-client6: set %p", sd_client);
|
||||
|
||||
if (client_config->v6.info_only) {
|
||||
sd_dhcp6_client_set_address_request(sd_client, 0);
|
||||
if (client_config->v6.needed_prefixes == 0)
|
||||
sd_dhcp6_client_set_information_request(sd_client, 1);
|
||||
}
|
||||
sd_dhcp6_client_set_address_request(sd_client, !client_config->v6.info_only);
|
||||
sd_dhcp6_client_set_information_request(sd_client,
|
||||
client_config->v6.info_only
|
||||
&& client_config->v6.needed_prefixes == 0);
|
||||
|
||||
r = sd_dhcp6_client_set_iaid(sd_client, client_config->v6.iaid);
|
||||
if (r < 0) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue