netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
qdisc.h File Reference
#include <netlink/netlink.h>
#include <netlink/cache.h>
#include <netlink/route/tc.h>
Include dependency graph for qdisc.h:
This graph shows which files directly or indirectly include this file:

Functions

struct rtnl_qdiscrtnl_qdisc_alloc (void)
 
void rtnl_qdisc_put (struct rtnl_qdisc *)
 
int rtnl_qdisc_alloc_cache (struct nl_sock *, struct nl_cache **)
 Build a qdisc cache including all qdiscs currently configured in the kernel. More...
 
struct rtnl_qdiscrtnl_qdisc_get (struct nl_cache *, int, uint32_t)
 Look up qdisc by its handle in the provided cache. More...
 
struct rtnl_qdiscrtnl_qdisc_get_by_parent (struct nl_cache *, int, uint32_t)
 Look up qdisc by its parent in the provided cache. More...
 
int rtnl_qdisc_build_add_request (struct rtnl_qdisc *, int, struct nl_msg **)
 Build a netlink message to add a new qdisc. More...
 
int rtnl_qdisc_add (struct nl_sock *, struct rtnl_qdisc *, int)
 Add a new qdisc. More...
 
int rtnl_qdisc_build_change_request (struct rtnl_qdisc *, struct rtnl_qdisc *, struct nl_msg **)
 Build a netlink message to change attributes of a existing qdisc. More...
 
int rtnl_qdisc_change (struct nl_sock *, struct rtnl_qdisc *, struct rtnl_qdisc *)
 Change attributes of a qdisc. More...
 
int rtnl_qdisc_build_delete_request (struct rtnl_qdisc *, struct nl_msg **)
 Build a netlink request message to delete a qdisc. More...
 
int rtnl_qdisc_delete (struct nl_sock *, struct rtnl_qdisc *)
 Delete a qdisc. More...
 
void rtnl_qdisc_set_ifindex (struct rtnl_qdisc *, int)
 
int rtnl_qdisc_get_ifindex (struct rtnl_qdisc *)
 
void rtnl_qdisc_set_handle (struct rtnl_qdisc *, uint32_t)
 
uint32_t rtnl_qdisc_get_handle (struct rtnl_qdisc *)
 
void rtnl_qdisc_set_parent (struct rtnl_qdisc *, uint32_t)
 
uint32_t rtnl_qdisc_get_parent (struct rtnl_qdisc *)
 
void rtnl_qdisc_set_kind (struct rtnl_qdisc *, const char *)
 
char * rtnl_qdisc_get_kind (struct rtnl_qdisc *)
 
uint64_t rtnl_qdisc_get_stat (struct rtnl_qdisc *, enum rtnl_tc_stats_id)
 
void rtnl_qdisc_foreach_child (struct rtnl_qdisc *, struct nl_cache *, void(*cb)(struct nl_object *, void *), void *)
 Call a callback for each child class of a qdisc. More...
 
void rtnl_qdisc_foreach_cls (struct rtnl_qdisc *, struct nl_cache *, void(*cb)(struct nl_object *, void *), void *)
 Call a callback for each filter attached to the qdisc. More...
 
struct nl_msgrtnl_qdisc_get_opts (struct rtnl_qdisc *)
 Return qdisc specific options for use in TCA_OPTIONS. More...
 

Variables

struct nl_object_ops qdisc_obj_ops