summaryrefslogtreecommitdiff
path: root/src/nm-iface-helper.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2017-09-28 14:40:12 +0200
committerThomas Haller <thaller@redhat.com>2017-10-09 22:06:25 +0200
commit01930c96b853f2fc776a02cd394167b99ab6a8ea (patch)
tree96c7c1755303d9bc522c8c1255bf10c12ab740bd /src/nm-iface-helper.c
parentcc1ee1d286a3de84fcebc33088d12fee21145d8a (diff)
downloadNetworkManager-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.c3
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,