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

Functions

struct rtnl_clsrtnl_cls_alloc (void)
 
void rtnl_cls_put (struct rtnl_cls *)
 
int rtnl_cls_alloc_cache (struct nl_sock *, int, uint32_t, struct nl_cache **)
 Build a classifier cache including all classifiers attached to the specified class/qdisc on eht specified interface. More...
 
int rtnl_cls_build_add_request (struct rtnl_cls *, int, struct nl_msg **)
 Build a netlink message to add a new classifier. More...
 
int rtnl_cls_add (struct nl_sock *, struct rtnl_cls *, int)
 Add a new classifier. More...
 
int rtnl_cls_build_change_request (struct rtnl_cls *, int, struct nl_msg **)
 Build a netlink message to change classifier attributes. More...
 
int rtnl_cls_build_delete_request (struct rtnl_cls *, int, struct nl_msg **)
 Build a netlink request message to delete a classifier. More...
 
int rtnl_cls_delete (struct nl_sock *, struct rtnl_cls *, int)
 Delete a classifier. More...
 
void rtnl_cls_set_ifindex (struct rtnl_cls *, int)
 
int rtnl_cls_get_ifindex (struct rtnl_cls *)
 
void rtnl_cls_set_handle (struct rtnl_cls *, uint32_t)
 
void rtnl_cls_set_parent (struct rtnl_cls *, uint32_t)
 
uint32_t rtnl_cls_get_parent (struct rtnl_cls *)
 
int rtnl_cls_set_kind (struct rtnl_cls *, const char *)
 
struct rtnl_cls_opsrtnl_cls_get_ops (struct rtnl_cls *)
 
void rtnl_cls_set_prio (struct rtnl_cls *, uint16_t)
 
uint16_t rtnl_cls_get_prio (struct rtnl_cls *)
 
void rtnl_cls_set_protocol (struct rtnl_cls *, uint16_t)
 
uint16_t rtnl_cls_get_protocol (struct rtnl_cls *)
 
void * rtnl_cls_data (struct rtnl_cls *)
 

Variables

struct nl_object_ops cls_obj_ops