mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-03 14:00:15 +01:00
dhcp/trivial: add comment about nm_dhcp_utils_merge_new_dhcp6_lease()
This commit is contained in:
parent
8d121b17b5
commit
70cbf3dc1e
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)) {
|
||||
_LOGD("lease merged with existing one");
|
||||
l3cd = nm_l3_config_data_seal(l3cd_merged);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue