summaryrefslogtreecommitdiffstats
path: root/include/netlink
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2022-03-14 07:24:45 (GMT)
committerThomas Haller <thaller@redhat.com>2022-03-14 07:27:43 (GMT)
commita694c33c07d41e28e937520c0fdde238e28ab5c2 (patch)
tree6321257641d90329f0e5bd01333f1886a4cf5c0d /include/netlink
parent88a51383ab763d1e648a7bae769f105bb99de7d0 (diff)
downloadlibnl-a694c33c07d41e28e937520c0fdde238e28ab5c2.zip
libnl-a694c33c07d41e28e937520c0fdde238e28ab5c2.tar.gz
libnl-a694c33c07d41e28e937520c0fdde238e28ab5c2.tar.bz2
route/cls: rename rtnl_cls_get{,_by_prio}() API to rtnl_cls_find_by{handle,prio}()
The functions return the first matching object (of potentially several). Rename them to "find", so that this is a bit clearer.
Diffstat (limited to 'include/netlink')
-rw-r--r--include/netlink/route/classifier.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/netlink/route/classifier.h b/include/netlink/route/classifier.h
index a3f23d7..d92652b 100644
--- a/include/netlink/route/classifier.h
+++ b/include/netlink/route/classifier.h
@@ -20,10 +20,10 @@ extern void rtnl_cls_put(struct rtnl_cls *);
extern int rtnl_cls_alloc_cache(struct nl_sock *, int, uint32_t,
struct nl_cache **);
-extern struct rtnl_cls *rtnl_cls_get(struct nl_cache *cache, int ifindex,
- uint32_t parent, uint32_t handle);
-extern struct rtnl_cls *rtnl_cls_get_by_prio(struct nl_cache *cache, int ifindex,
- uint32_t parent, uint16_t prio);
+extern struct rtnl_cls *rtnl_cls_find_by_handle(struct nl_cache *cache, int ifindex,
+ uint32_t parent, uint32_t handle);
+extern struct rtnl_cls *rtnl_cls_find_by_prio(struct nl_cache *cache, int ifindex,
+ uint32_t parent, uint16_t prio);
extern void rtnl_cls_cache_set_tc_params(struct nl_cache *, int, uint32_t);