diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2016-05-16 09:36:09 +0200 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2016-05-16 12:06:55 +0200 |
commit | 926ba925ec52f7bf7176627005de15a13a1bde24 (patch) | |
tree | 87a627acba4f84ed77246a7455c592cf3e886eaa /src/nm-ip6-config.c | |
parent | b871106e25857328393a11b5fc319f6e151c0b52 (diff) | |
download | NetworkManager-926ba925ec52f7bf7176627005de15a13a1bde24.tar.gz |
core: fix creation of NMSettingIPConfig routes
Since commit 4c2410bc92e8 ("platform: extend NMIPConfigSource to
preserve the rtm_protocol field") the rt_source field of a
NMPlatformIP{4,6}Route contains the RTPROT value read from
kernel. Update checks on route source, otherwise existing routes are
not picked up when a generated connection is created, breaking the
connection matching.
Fixes: 4c2410bc92e8f5b30c826bed8392ecc05a7e8fe2
Diffstat (limited to 'src/nm-ip6-config.c')
-rw-r--r-- | src/nm-ip6-config.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nm-ip6-config.c b/src/nm-ip6-config.c index e525c10287..062b8c6616 100644 --- a/src/nm-ip6-config.c +++ b/src/nm-ip6-config.c @@ -28,6 +28,7 @@ #include "nm-utils.h" #include "nm-platform.h" +#include "nm-platform-utils.h" #include "nm-route-manager.h" #include "nm-core-internal.h" #include "NetworkManagerUtils.h" @@ -621,7 +622,7 @@ nm_ip6_config_create_setting (const NMIP6Config *config) continue; /* Ignore routes provided by external sources */ - if (route->rt_source != NM_IP_CONFIG_SOURCE_USER) + if (route->rt_source != nmp_utils_ip_config_source_round_trip_rtprot (NM_IP_CONFIG_SOURCE_USER)) continue; s_route = nm_ip_route_new_binary (AF_INET6, |