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:
Pavel Šimerda 2013-03-05 02:19:05 +01:00
parent fc41ae3ac6
commit 195a09d7c0

View file

@ -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);
}