diff options
author | Thomas Haller <thaller@redhat.com> | 2017-09-28 14:40:12 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2017-10-09 22:06:25 +0200 |
commit | 01930c96b853f2fc776a02cd394167b99ab6a8ea (patch) | |
tree | 96c7c1755303d9bc522c8c1255bf10c12ab740bd /src/nm-iface-helper.c | |
parent | cc1ee1d286a3de84fcebc33088d12fee21145d8a (diff) | |
download | NetworkManager-01930c96b853f2fc776a02cd394167b99ab6a8ea.tar.gz |
core: use ipv4.route-table setting for other IPv4 routes
Including device-routes, default-route, DHCPv4, IPv4LL.
Diffstat (limited to 'src/nm-iface-helper.c')
-rw-r--r-- | src/nm-iface-helper.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nm-iface-helper.c b/src/nm-iface-helper.c index 7f32ef6dc7..66bebbbc6f 100644 --- a/src/nm-iface-helper.c +++ b/src/nm-iface-helper.c @@ -31,6 +31,7 @@ #include <sys/resource.h> #include <sys/stat.h> #include <signal.h> +#include <linux/rtnetlink.h> #include "main-utils.h" #include "NetworkManagerUtils.h" @@ -125,6 +126,7 @@ dhcp4_state_changed (NMDhcpClient *client, nm_ip4_config_merge (existing, ip4_config, NM_IP_CONFIG_MERGE_DEFAULT); nm_ip4_config_add_device_routes (existing, + RT_TABLE_MAIN, global_opt.priority_v4, &ip4_dev_route_blacklist); if (!nm_ip4_config_commit (existing, @@ -454,6 +456,7 @@ main (int argc, char *argv[]) gl.ifindex, hwaddr, global_opt.uuid, + RT_TABLE_MAIN, global_opt.priority_v4, !!global_opt.dhcp4_hostname, global_opt.dhcp4_hostname, |