Commit bdf6f4d1 authored by Beniamino Galvani's avatar Beniamino Galvani
Browse files

core: update DNS only when something relevant changes

The DNS configuration needs to be updated only when relevant changes
happen it the l3cd: either changes in DNS information or in routes
(since routes are used to create the reverse DNS entries, and the
default route influences DNS priorities).
parent 53cc59cb
......@@ -2123,6 +2123,13 @@ device_l3cd_changed(NMDevice *device,
nm_assert(!l3cd_new || NM_IS_L3_CONFIG_DATA(l3cd_new));
nm_assert(!l3cd_old || NM_IS_L3_CONFIG_DATA(l3cd_old));
if (nm_l3_config_data_cmp_full(l3cd_old,
== 0)
nm_dns_manager_begin_updates(priv->dns_manager, __func__);
/* We catch already all the IP events registering on the device state changes but
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment