#include <netlink-local.h>
#include <netlink-tc.h>
#include <netlink/netlink.h>
#include <netlink/utils.h>
#include <netlink/route/link.h>
#include <netlink/route/tc.h>
#include <netlink/route/qdisc.h>
#include <netlink/route/class.h>
#include <netlink/route/classifier.h>
#include <netlink/route/qdisc-modules.h>
Functions | |
QDisc Addition | |
int | rtnl_qdisc_build_add_request (struct rtnl_qdisc *qdisc, int flags, struct nl_msg **result) |
Build a netlink message to add a new qdisc. More... | |
int | rtnl_qdisc_add (struct nl_sock *sk, struct rtnl_qdisc *qdisc, int flags) |
Add a new qdisc. More... | |
QDisc Modification | |
int | rtnl_qdisc_build_change_request (struct rtnl_qdisc *qdisc, struct rtnl_qdisc *new, struct nl_msg **result) |
Build a netlink message to change attributes of a existing qdisc. More... | |
int | rtnl_qdisc_change (struct nl_sock *sk, struct rtnl_qdisc *qdisc, struct rtnl_qdisc *new) |
Change attributes of a qdisc. More... | |
QDisc Deletion | |
int | rtnl_qdisc_build_delete_request (struct rtnl_qdisc *qdisc, struct nl_msg **result) |
Build a netlink request message to delete a qdisc. More... | |
int | rtnl_qdisc_delete (struct nl_sock *sk, struct rtnl_qdisc *qdisc) |
Delete a qdisc. More... | |
Qdisc Cache Management | |
int | rtnl_qdisc_alloc_cache (struct nl_sock *sk, struct nl_cache **result) |
Build a qdisc cache including all qdiscs currently configured in the kernel. More... | |
struct rtnl_qdisc * | rtnl_qdisc_get_by_parent (struct nl_cache *cache, int ifindex, uint32_t parent) |
Look up qdisc by its parent in the provided cache. More... | |
struct rtnl_qdisc * | rtnl_qdisc_get (struct nl_cache *cache, int ifindex, uint32_t handle) |
Look up qdisc by its handle in the provided cache. More... | |