mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 05:18:23 +02:00
ip6: ignore cached/cloned routes when retrieving IPv6 config (lp:1038541) (bgo #671767)
Should also ignore them when building up the initial IPv6 config.
This commit is contained in:
parent
3ca3120e4a
commit
46e0af2942
1 changed files with 6 additions and 0 deletions
|
|
@ -1531,6 +1531,12 @@ nm_ip6_manager_get_ip6_config (NMIP6Manager *manager, int ifindex)
|
|||
if (rtnl_route_get_family (rtnlroute) != AF_INET6)
|
||||
continue;
|
||||
|
||||
/* And ignore cache/cloned routes as they aren't part of the interface's
|
||||
* permanent routing configuration.
|
||||
*/
|
||||
if (rtnl_route_get_flags (rtnlroute) & RTM_F_CLONED)
|
||||
continue;
|
||||
|
||||
nldest = rtnl_route_get_dst (rtnlroute);
|
||||
if (!nldest || nl_addr_get_family (nldest) != AF_INET6)
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue