diff options
author | d0u9 <d0u9.su@outlook.com> | 2018-04-01 08:48:11 (GMT) |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2018-04-11 11:05:09 (GMT) |
commit | 17f0459c8d1891473c315315c0f5c25f38b24d6b (patch) | |
tree | 158909ef29cf92bfb3302b527f6457e470eab44b /include/netlink | |
parent | 2a3a66977936471b93526adda7faa1ac231f78d7 (diff) | |
download | libnl-17f0459c8d1891473c315315c0f5c25f38b24d6b.zip libnl-17f0459c8d1891473c315315c0f5c25f38b24d6b.tar.gz libnl-17f0459c8d1891473c315315c0f5c25f38b24d6b.tar.bz2 |
route/class: add new api rtnl_class_get_by_parent()
This function searches a class cache previously allocated with
rtnl_class_alloc_cache() and searches for a class matching the interface
index and parent qdisc.
https://github.com/thom311/libnl/pull/185
Diffstat (limited to 'include/netlink')
-rw-r--r-- | include/netlink/route/class.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/netlink/route/class.h b/include/netlink/route/class.h index e73b60a..3833339 100644 --- a/include/netlink/route/class.h +++ b/include/netlink/route/class.h @@ -31,6 +31,9 @@ extern int rtnl_class_alloc_cache(struct nl_sock *, int, extern struct rtnl_class * rtnl_class_get(struct nl_cache *, int, uint32_t); +extern struct rtnl_class * + rtnl_class_get_by_parent(struct nl_cache *, int, uint32_t); + extern struct rtnl_qdisc * rtnl_class_leaf_qdisc(struct rtnl_class *, struct nl_cache *); |