NetworkManager/src/dns
Thomas Haller 5c299454b4 core: rework tracking of gateway/default-route in ip-config
Instead of having 3 properties @gateway, @never_default and @has_gateway
on NMIP4Config/NMIP6Config that determine the default-route, track the
default-route as a regular route.

The gateway setting is the configuration knob for the default-route.
Since an NMIP4Config/NMIP6Config instance only has one gateway property,
it cannot track more then one default-routes (see related bug rh#1445417).
Especially with policy routing, it might be interesting to configure a
default-route in multiple tables.

Also, later it might be interesting to allow adding default-routes as
regular static routes in a connection, so that the user can configure additional
route parameters for the default-route or add default-routes in multiple tables.

With this patch, default-routes now have a rt_source property according to their
origin.

Also, the previous commits of this branch broke handling of the
default-route :) . That should be working now again.
2017-10-10 08:46:47 +02:00
..
nm-dns-dnsmasq.c core: support tracking default-route in NMIP4Config/NMIP6Config 2017-09-08 11:11:21 +02:00
nm-dns-dnsmasq.h build: rename "src/dns-manager" to "src/dns" 2016-11-21 14:07:47 +01:00
nm-dns-manager.c dns: use 127.0.0.53 address in /etc/resolv.conf with systemd-resolved 2017-09-07 15:29:57 +02:00
nm-dns-manager.h dns: add helper method to get DNS priority from NMDnsIPConfigData 2017-06-19 15:12:49 +02:00
nm-dns-plugin.c dns: don't clone DNS configs list for nm_dns_plugin_update() 2017-06-19 15:12:49 +02:00
nm-dns-plugin.h dns: don't clone DNS configs list for nm_dns_plugin_update() 2017-06-19 15:12:49 +02:00
nm-dns-systemd-resolved.c core: rework tracking of gateway/default-route in ip-config 2017-10-10 08:46:47 +02:00
nm-dns-systemd-resolved.h build: rename "src/dns-manager" to "src/dns" 2016-11-21 14:07:47 +01:00
nm-dns-unbound.c dns: don't clone DNS configs list for nm_dns_plugin_update() 2017-06-19 15:12:49 +02:00
nm-dns-unbound.h build: rename "src/dns-manager" to "src/dns" 2016-11-21 14:07:47 +01:00