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>
28 extern struct rtnl_qdisc * rtnl_qdisc_alloc(
void);
29 extern void rtnl_qdisc_put(
struct rtnl_qdisc *);
56 extern void rtnl_qdisc_set_ifindex(
struct rtnl_qdisc *,
int);
57 extern int rtnl_qdisc_get_ifindex(
struct rtnl_qdisc *);
58 extern void rtnl_qdisc_set_handle(
struct rtnl_qdisc *, uint32_t);
59 extern uint32_t rtnl_qdisc_get_handle(
struct rtnl_qdisc *);
60 extern void rtnl_qdisc_set_parent(
struct rtnl_qdisc *, uint32_t);
61 extern uint32_t rtnl_qdisc_get_parent(
struct rtnl_qdisc *);
62 extern void rtnl_qdisc_set_kind(
struct rtnl_qdisc *,
const char *);
63 extern char * rtnl_qdisc_get_kind(
struct rtnl_qdisc *);
64 extern uint64_t rtnl_qdisc_get_stat(
struct rtnl_qdisc *,
70 void (*cb)(
struct nl_object *,
76 void (*cb)(
struct nl_object *,