Package: network-manager / 0.9.4.0-10

15-ignore-cached-cloned-routes-ipv6-config.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From 3ca3120e4a01ea4a86fd052311c977e7ec136365 Mon Sep 17 00:00:00 2001
From: Ben Jencks <ben@bjencks.net>
Date: Thu, 30 Aug 2012 18:55:36 +0000
Subject: ip6: ignore cached/cloned route notifications from the kernel (lp:1038541) (bgo #671767)

The kernel periodically adds routes for specific operations, including
when pinging any host.  These are temporary routes and aren't part of
the interface's permanent routing configuration, so we should ignore
them.
---
Index: network-manager/src/ip6-manager/nm-ip6-manager.c
===================================================================
--- network-manager.orig/src/ip6-manager/nm-ip6-manager.c	2012-08-31 09:19:54.000000000 +0200
+++ network-manager/src/ip6-manager/nm-ip6-manager.c	2012-08-31 09:56:24.000000000 +0200
@@ -602,6 +602,14 @@
 		return NULL;
 	}
 
+	/* Cached/cloned routes are created by the kernel for specific operations
+	 * and aren't part of the interface's permanent routing configuration.
+	 */
+	if (rtnl_route_get_flags (rtnlroute) & RTM_F_CLONED) {
+		rtnl_route_put (rtnlroute);
+		return NULL;
+	}
+
 	device = nm_ip6_manager_get_device (manager, rtnl_route_get_oif (rtnlroute));
 	if (!device) {
 		nm_log_dbg (LOGD_IP6, "ignoring message for unknown device");