NetworkManager/src/dnsmasq
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
..
tests dnsmasq: fix generating shared IPv4 address range 2017-05-29 11:10:36 +02:00
nm-dnsmasq-manager.c core: rework tracking of gateway/default-route in ip-config 2017-10-10 08:46:47 +02:00
nm-dnsmasq-manager.h build: rename "src/dnsmasq-manager" to "src/dnsmasq" 2016-11-21 14:07:47 +01:00
nm-dnsmasq-utils.c all: use _nm_utils_ip4_*() utils functions 2017-09-05 18:44:04 +02:00
nm-dnsmasq-utils.h build: don't add subdirectories to include search path but require qualified include 2016-11-21 14:26:37 +01:00