mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-02 15:28:00 +02:00
ip6: fix rtnl_route_alloc_cache() call
NL_AUTO_PROVIDE is not a valid flag for this call and it's coincidental with ROUTE_CACHE_CONTENT, which is certainly not what we want. NETLINK_ROUTE is a netlink family, not an address family. It is coincidental with AF_UNSPEC which is what we actually want.
This commit is contained in:
parent
fc41ae3ac6
commit
195a09d7c0
1 changed files with 1 additions and 1 deletions
|
|
@ -1620,7 +1620,7 @@ nm_ip6_manager_init (NMIP6Manager *manager)
|
|||
g_assert (priv->nlh);
|
||||
rtnl_addr_alloc_cache (priv->nlh, &priv->addr_cache);
|
||||
g_assert (priv->addr_cache);
|
||||
rtnl_route_alloc_cache (priv->nlh, NETLINK_ROUTE, NL_AUTO_PROVIDE, &priv->route_cache);
|
||||
rtnl_route_alloc_cache (priv->nlh, AF_UNSPEC, 0, &priv->route_cache);
|
||||
g_assert (priv->route_cache);
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue