mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 02:30:08 +01:00
platform: ignore kernel-generated routes
This is necessary to avoid tinkering with IPv4 prefix routes automatically inserted by the kernel for each IPv4 address. https://bugzilla.gnome.org/show_bug.cgi?id=705102
This commit is contained in:
parent
68c3e1153c
commit
b502b6cd58
1 changed files with 2 additions and 0 deletions
|
|
@ -2078,6 +2078,8 @@ ip_route_mark_all (NMPlatform *platform, int family, int ifindex)
|
|||
continue;
|
||||
if (rtnl_route_get_table (rtnlroute) != RT_TABLE_MAIN)
|
||||
continue;
|
||||
if (rtnl_route_get_protocol (rtnlroute) == RTPROT_KERNEL)
|
||||
continue;
|
||||
if (rtnl_route_get_family (rtnlroute) != family)
|
||||
continue;
|
||||
if (rtnl_route_get_nnexthops (rtnlroute) != 1)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue