mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-29 08:00:18 +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.
(cherry picked from commit bacd3e1482)
This commit is contained in:
parent
7f0d9a9091
commit
6ad3694fc5
1 changed files with 4 additions and 5 deletions
|
|
@ -966,11 +966,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