mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-28 00:30:36 +01:00
dhcp/trivial: add comment about nm_dhcp_utils_merge_new_dhcp6_lease()
(cherry picked from commit 70cbf3dc1e)
This commit is contained in:
parent
f82c6d06e5
commit
e042011be4
1 changed files with 3 additions and 0 deletions
|
|
@ -286,6 +286,9 @@ nm_dhcp_client_set_state(NMDhcpClient *self, NMDhcpState new_state, const NML3Co
|
|||
watch_cleanup(self);
|
||||
|
||||
if (!IS_IPv4 && l3cd) {
|
||||
/* nm_dhcp_utils_merge_new_dhcp6_lease() relies on "life_starts" option
|
||||
* for merging, which is only set by dhclient. Internal client never sets that,
|
||||
* but it supports multiple IP addresses per lease. */
|
||||
if (nm_dhcp_utils_merge_new_dhcp6_lease(priv->l3cd, l3cd, &l3cd_merged)) {
|
||||
l3cd = nm_l3_config_data_seal(l3cd_merged);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue