summaryrefslogtreecommitdiff
path: root/lib/route
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2011-05-11 09:33:29 +0200
committerThomas Graf <tgraf@suug.ch>2011-05-11 09:33:29 +0200
commit4cb1666fe19f71c09628615a1c4b6f822b7cd8de (patch)
tree0a5a720b023c29b78ccae901f8fb09e3d77e7ec4 /lib/route
parentf443be6e744ac9be2ad48bd59432d5c2215d4e51 (diff)
downloadlibnl-4cb1666fe19f71c09628615a1c4b6f822b7cd8de.tar.gz
Provide silent variation of nl_cache_require()
Use in addr and tc layer to avoid warnings being printed if no cache is available.
Diffstat (limited to 'lib/route')
-rw-r--r--lib/route/addr.c2
-rw-r--r--lib/route/tc.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/route/addr.c b/lib/route/addr.c
index fa6d76d..4ca6335 100644
--- a/lib/route/addr.c
+++ b/lib/route/addr.c
@@ -294,7 +294,7 @@ static int addr_msg_parser(struct nl_cache_ops *ops, struct sockaddr_nl *who,
addr->ce_mask |= ADDR_ATTR_ANYCAST;
}
- if ((link_cache = nl_cache_mngt_require("route/link"))) {
+ if ((link_cache = __nl_cache_mngt_require("route/link"))) {
struct rtnl_link *link;
if ((link = rtnl_link_get(link_cache, addr->a_ifindex))) {
diff --git a/lib/route/tc.c b/lib/route/tc.c
index 03920aa..da8c75f 100644
--- a/lib/route/tc.c
+++ b/lib/route/tc.c
@@ -176,7 +176,7 @@ compat_xstats:
return err;
}
- if ((link_cache = nl_cache_mngt_require("route/link"))) {
+ if ((link_cache = __nl_cache_mngt_require("route/link"))) {
struct rtnl_link *link;
if ((link = rtnl_link_get(link_cache, tc->tc_ifindex))) {