summaryrefslogtreecommitdiffstats
path: root/src/utils.c
diff options
context:
space:
mode:
authorThomas Graf <tgr@lsx.localdomain>2008-05-05 15:09:25 (GMT)
committerThomas Graf <tgr@lsx.localdomain>2008-05-05 15:09:25 (GMT)
commit85808860b6174aecc901c34c90968911ad013280 (patch)
tree50b656a80afe3daa422c94ece74552fae74c5b03 /src/utils.c
parent861901c55bd9e2f84e7c8de0da5ea6179867907d (diff)
downloadlibnl-85808860b6174aecc901c34c90968911ad013280.zip
libnl-85808860b6174aecc901c34c90968911ad013280.tar.gz
libnl-85808860b6174aecc901c34c90968911ad013280.tar.bz2
Route cache support
This changesets adds the possibility to fill a nl_cache with the contents of the route cache. It also adds the possibility to limit route caches to certain address families.
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils.c b/src/utils.c
index 9c34172..8961219 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -141,11 +141,11 @@ struct nl_cache *nltool_alloc_neightbl_cache(struct nl_handle *nlh)
return cache;
}
-struct nl_cache *nltool_alloc_route_cache(struct nl_handle *nlh)
+struct nl_cache *nltool_alloc_route_cache(struct nl_handle *nlh, int flags)
{
struct nl_cache *cache;
- cache = rtnl_route_alloc_cache(nlh);
+ cache = rtnl_route_alloc_cache(nlh, AF_UNSPEC, flags);
if (!cache)
fatal(nl_get_errno(), "Unable to retrieve route cache: %s\n",
nl_geterror());