6#ifndef NETLINK_QDISC_H_
7#define NETLINK_QDISC_H_
9#include <netlink/netlink.h>
10#include <netlink/cache.h>
11#include <netlink/route/tc.h>
19extern struct rtnl_qdisc *
20 rtnl_qdisc_alloc(
void);
21extern void rtnl_qdisc_put(
struct rtnl_qdisc *);
25extern struct rtnl_qdisc *
28extern struct rtnl_qdisc *
31 int ifindex,
char *kind);
35extern int rtnl_qdisc_add(
struct nl_sock *,
struct rtnl_qdisc *,
int);
39 int,
struct nl_msg **);
42 struct rtnl_qdisc *,
int);
50 void (*cb)(
struct nl_object *,
void *),
51 void *) __attribute__ ((deprecated));
54 void (*cb)(
struct nl_object *,
void *),
55 void *) __attribute__ ((deprecated));
60 __attribute__ ((deprecated));
63 struct rtnl_qdisc *) __attribute__ ((deprecated));
int rtnl_qdisc_alloc_cache(struct nl_sock *, struct nl_cache **)
Allocate a cache and fill it with all configured qdiscs.
int rtnl_qdisc_delete(struct nl_sock *, struct rtnl_qdisc *)
Delete 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_delete_request(struct rtnl_qdisc *, struct nl_msg **)
Build netlink message requesting the deletion of a qdisc.
struct rtnl_qdisc * rtnl_qdisc_get_by_kind(struct nl_cache *cache, int ifindex, char *kind)
Search qdisc by kind.
int rtnl_qdisc_change(struct nl_sock *, struct rtnl_qdisc *, struct rtnl_qdisc *) __attribute__((deprecated))
Change attributes of a qdisc.
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)
struct rtnl_qdisc * rtnl_qdisc_get(struct nl_cache *, int, uint32_t)
Search qdisc by interface index and handle.
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_add(struct nl_sock *, struct rtnl_qdisc *, int)
Add 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)
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.