12 #ifndef NETLINK_QDISC_H_
13 #define NETLINK_QDISC_H_
15 #include <netlink/netlink.h>
16 #include <netlink/cache.h>
17 #include <netlink/route/tc.h>
25 extern struct rtnl_qdisc *
26 rtnl_qdisc_alloc(
void);
27 extern void rtnl_qdisc_put(
struct rtnl_qdisc *);
31 extern struct rtnl_qdisc *
34 extern struct rtnl_qdisc *
39 extern int rtnl_qdisc_add(
struct nl_sock *,
struct rtnl_qdisc *,
int);
43 int,
struct nl_msg **);
46 struct rtnl_qdisc *,
int);
54 void (*cb)(
struct nl_object *,
void *),
55 void *) __attribute__ ((deprecated));
58 void (*cb)(struct nl_object *,
void *),
59 void *) __attribute__ ((deprecated));
64 __attribute__ ((deprecated));
67 struct rtnl_qdisc *) __attribute__ ((deprecated));
struct rtnl_qdisc * rtnl_qdisc_get_by_parent(struct nl_cache *, int, uint32_t)
Search qdisc by interface index and parent.
void rtnl_qdisc_foreach_cls(struct rtnl_qdisc *, struct nl_cache *, void(*cb)(struct nl_object *, void *), void *) __attribute__((deprecated))
Call a callback for each filter attached to the qdisc (deprecated)
int rtnl_qdisc_change(struct nl_sock *, struct rtnl_qdisc *, struct rtnl_qdisc *) __attribute__((deprecated))
Change attributes of a qdisc.
int rtnl_qdisc_add(struct nl_sock *, struct rtnl_qdisc *, int)
Add qdisc.
int rtnl_qdisc_alloc_cache(struct nl_sock *, struct nl_cache **)
Allocate a cache and fill it with all configured qdiscs.
int rtnl_qdisc_build_add_request(struct rtnl_qdisc *, int, struct nl_msg **)
Build a netlink message requesting the addition of a qdisc.
int rtnl_qdisc_update(struct nl_sock *, struct rtnl_qdisc *, struct rtnl_qdisc *, int)
Update qdisc.
int rtnl_qdisc_build_change_request(struct rtnl_qdisc *, struct rtnl_qdisc *, struct nl_msg **) __attribute__((deprecated))
Build a netlink message requesting the update of a qdisc.
int rtnl_qdisc_build_update_request(struct rtnl_qdisc *, struct rtnl_qdisc *, int, struct nl_msg **)
Build netlink message requesting the update of a qdisc.
struct rtnl_qdisc * rtnl_qdisc_get(struct nl_cache *, int, uint32_t)
Search qdisc by interface index and handle.
int rtnl_qdisc_build_delete_request(struct rtnl_qdisc *, struct nl_msg **)
Build netlink message requesting the deletion of a qdisc.
int rtnl_qdisc_delete(struct nl_sock *, struct rtnl_qdisc *)
Delete qdisc.
void rtnl_qdisc_foreach_child(struct rtnl_qdisc *, struct nl_cache *, void(*cb)(struct nl_object *, void *), void *) __attribute__((deprecated))
Call a callback for each child class of a qdisc (deprecated)