NetworkManager/src/core/dns
Beniamino Galvani 3cc7801779 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
2022-10-13 17:25:21 +02:00
..
nm-dns-dnsmasq.c glib-aux: rename IP address related helpers from "nm-inet-utils.h" 2022-08-25 19:05:51 +02:00
nm-dns-dnsmasq.h dns: kill pending dnsmasq process when mode is not 'dnsmasq' 2022-08-25 12:31:48 -04:00
nm-dns-manager.c dns: sort the ip-data list when a new element is added 2022-10-13 17:25:21 +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 all: use nm_g_array_{index,first,last,index_p}() instead of g_array_index() 2022-09-15 12:39:07 +02:00
nm-dns-systemd-resolved.h format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00