mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-01 15:20:11 +01:00
core: ignore external routes when generating connections
This commit is contained in:
parent
d8d6ecf37a
commit
96850933bb
1 changed files with 7 additions and 0 deletions
|
|
@ -28,6 +28,7 @@
|
|||
|
||||
#include "libnm-platform/nm-platform.h"
|
||||
#include "libnm-platform/nm-linux-platform.h"
|
||||
#include "libnm-platform/nm-platform-utils.h"
|
||||
#include "nm-auth-utils.h"
|
||||
#include "libnm-systemd-shared/nm-sd-utils-shared.h"
|
||||
|
||||
|
|
@ -1750,6 +1751,12 @@ nm_utils_platform_capture_ip_setting(NMPlatform *platform,
|
|||
continue;
|
||||
}
|
||||
|
||||
if (route->rx.rt_source
|
||||
!= nmp_utils_ip_config_source_round_trip_rtprot(NM_IP_CONFIG_SOURCE_USER)) {
|
||||
/* Ignore routes provided by external sources */
|
||||
continue;
|
||||
}
|
||||
|
||||
s_route = nm_ip_route_new_binary(addr_family,
|
||||
route->rx.network_ptr,
|
||||
route->rx.plen,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue