mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-09 05:00:36 +01:00
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.
This commit is contained in:
parent
c4bb7f26a8
commit
3ca3120e4a
1 changed files with 8 additions and 0 deletions
|
|
@ -921,6 +921,14 @@ process_route_change (NMIP6Manager *manager, struct nl_msg *msg)
|
|||
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));
|
||||
|
||||
old_size = nl_cache_nitems (priv->route_cache);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue