From b502b6cd582a146e2bd4a95c4bfb8ca54150bceb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20=C5=A0imerda?= Date: Tue, 30 Jul 2013 00:24:58 +0200 Subject: [PATCH] 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 --- src/platform/nm-linux-platform.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/platform/nm-linux-platform.c b/src/platform/nm-linux-platform.c index 01bd8cbb65..7c341038f4 100644 --- a/src/platform/nm-linux-platform.c +++ b/src/platform/nm-linux-platform.c @@ -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)