mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-08 11:19:16 +02:00
dns: add comment explaining the purpose of any_removed
(cherry picked from commit4d1ecd8d6d) (cherry picked from commit01b4040a7a) (cherry picked from commitad8a6a59af)
This commit is contained in:
parent
cd855580f7
commit
79c08e8d59
1 changed files with 7 additions and 1 deletions
|
|
@ -1966,8 +1966,14 @@ nm_dns_manager_set_ip_config(NMDnsManager *self,
|
||||||
|
|
||||||
if (!ip_data) {
|
if (!ip_data) {
|
||||||
ip_data = _dns_config_ip_data_new(data, addr_family, source_tag, l3cd, ip_config_type);
|
ip_data = _dns_config_ip_data_new(data, addr_family, source_tag, l3cd, ip_config_type);
|
||||||
if (!any_removed)
|
if (!any_removed) {
|
||||||
|
/* `any_removed` tracks whether we deleted any ip_data. If that happened,
|
||||||
|
* we already compared the old and new l3cds and set `changed` accordingly.
|
||||||
|
* Here we only need to set `changed` if we are adding a new ip_data without
|
||||||
|
* removing the old one.
|
||||||
|
*/
|
||||||
changed = TRUE;
|
changed = TRUE;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
ip_data->ip_config_type = ip_config_type;
|
ip_data->ip_config_type = ip_config_type;
|
||||||
changed = TRUE;
|
changed = TRUE;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue