6#ifndef NETLINK_CLASS_H_
7#define NETLINK_CLASS_H_
9#include <netlink/netlink.h>
10#include <netlink/route/tc.h>
11#include <netlink/route/qdisc.h>
19extern struct rtnl_class *
20 rtnl_class_alloc(
void);
21extern void rtnl_class_put(
struct rtnl_class *);
25extern struct rtnl_class *
28extern struct rtnl_class *
31extern struct rtnl_qdisc *
48 void (*cb)(
struct nl_object *,
51 __attribute__((deprecated));
54 void (*cb)(
struct nl_object *,
57 __attribute__((deprecated));
struct rtnl_qdisc * rtnl_class_leaf_qdisc(struct rtnl_class *, struct nl_cache *)
Lookup the leaf qdisc of a traffic class.
int rtnl_class_add(struct nl_sock *, struct rtnl_class *, int)
Add/Update traffic class.
int rtnl_class_build_delete_request(struct rtnl_class *, struct nl_msg **)
Build netlink message requesting the deletion of a traffic class.
struct rtnl_class * rtnl_class_get_by_parent(struct nl_cache *, int, uint32_t)
Search class by interface index and parent.
int rtnl_class_build_add_request(struct rtnl_class *, int, struct nl_msg **)
Build a netlink message requesting the addition of a traffic class.
struct rtnl_class * rtnl_class_get(struct nl_cache *, int, uint32_t)
Search traffic class by interface index and handle.
void rtnl_class_foreach_cls(struct rtnl_class *, struct nl_cache *, void(*cb)(struct nl_object *, void *), void *) __attribute__((deprecated))
Call a callback for each classifier attached to the class.
int rtnl_class_delete(struct nl_sock *, struct rtnl_class *)
Delete traffic class.
int rtnl_class_alloc_cache(struct nl_sock *, int, struct nl_cache **)
Allocate a cache and fill it with all configured traffic classes.
void rtnl_class_foreach_child(struct rtnl_class *, struct nl_cache *, void(*cb)(struct nl_object *, void *), void *) __attribute__((deprecated))
Call a callback for each child of a class.