mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-27 21:00:35 +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 commitbacd3e1482) (cherry picked from commit6ad3694fc5)
This commit is contained in:
parent
d0383937a2
commit
b285231a8e
1 changed files with 4 additions and 5 deletions
|
|
@ -983,11 +983,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