NetworkManager/src/core/dns
Beniamino Galvani db4c55c8d3 dns: sort the ip-data list when a new element is added
In nm_dns_manager_set_ip_config() we try to avoid calling update_dns()
unless something changes, because updating DNS is expensive and can
trigger other actions such as a new hostname resolution.

When we add a new ip_data, even if the new element is equivalent to
the old one that was removed, we need to sort the list again.

Fixes: ce0a36d20f ('dns: better track l3cd changes')
https://bugzilla.redhat.com/show_bug.cgi?id=2098574
(cherry picked from commit 3cc7801779)
2022-10-14 10:46:31 +02:00
..
nm-dns-dnsmasq.c dns/dnsmasq: implement update-pending flag in NMDnsDnsmasq plugin 2022-04-15 09:04:30 +02:00
nm-dns-dnsmasq.h dns: add function to retrieve the systemd-resolved plugin instance 2021-06-11 21:59:11 +02:00
nm-dns-manager.c dns: sort the ip-data list when a new element is added 2022-10-14 10:46:31 +02:00
nm-dns-manager.h dns: add update-pending property to NMDnsManager 2022-04-15 09:04:29 +02:00
nm-dns-plugin.c dns: add "update-pending" state to NMDnsPlugin 2022-04-15 09:04:29 +02:00
nm-dns-plugin.h dns: add "update-pending" state to NMDnsPlugin 2022-04-15 09:04:29 +02:00
nm-dns-systemd-resolved.c dns: detect more quickly when systemd-resolved can't be D-Bus activated 2022-05-25 16:03:12 +02:00
nm-dns-systemd-resolved.h format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00