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


struct rtnl_rulertnl_rule_alloc (void)
void rtnl_rule_put (struct rtnl_rule *)
int rtnl_rule_alloc_cache (struct nl_sock *, int, struct nl_cache **)
 Build a rule cache including all rules currently configured in the kernel. More...
void rtnl_rule_dump (struct rtnl_rule *, FILE *, struct nl_dump_params *)
int rtnl_rule_build_add_request (struct rtnl_rule *, int, struct nl_msg **)
 Build netlink request message to add a new rule. More...
int rtnl_rule_add (struct nl_sock *, struct rtnl_rule *, int)
 Add a new rule. More...
int rtnl_rule_build_delete_request (struct rtnl_rule *, int, struct nl_msg **)
 Build a netlink request message to delete a rule. More...
int rtnl_rule_delete (struct nl_sock *, struct rtnl_rule *, int)
 Delete a rule. More...
void rtnl_rule_set_family (struct rtnl_rule *, int)
int rtnl_rule_get_family (struct rtnl_rule *)
void rtnl_rule_set_prio (struct rtnl_rule *, int)
int rtnl_rule_get_prio (struct rtnl_rule *)
void rtnl_rule_set_mark (struct rtnl_rule *, uint64_t)
uint64_t rtnl_rule_get_mark (struct rtnl_rule *)
void rtnl_rule_set_table (struct rtnl_rule *, int)
int rtnl_rule_get_table (struct rtnl_rule *)
void rtnl_rule_set_dsfield (struct rtnl_rule *, int)
int rtnl_rule_get_dsfield (struct rtnl_rule *)
int rtnl_rule_set_src (struct rtnl_rule *, struct nl_addr *)
struct nl_addrrtnl_rule_get_src (struct rtnl_rule *)
int rtnl_rule_set_dst (struct rtnl_rule *, struct nl_addr *)
struct nl_addrrtnl_rule_get_dst (struct rtnl_rule *)
void rtnl_rule_set_src_len (struct rtnl_rule *, int)
int rtnl_rule_get_src_len (struct rtnl_rule *)
void rtnl_rule_set_dst_len (struct rtnl_rule *, int)
int rtnl_rule_get_dst_len (struct rtnl_rule *)
void rtnl_rule_set_action (struct rtnl_rule *, int)
int rtnl_rule_get_action (struct rtnl_rule *)
int rtnl_rule_set_iif (struct rtnl_rule *, const char *)
char * rtnl_rule_get_iif (struct rtnl_rule *)
void rtnl_rule_set_classid (struct rtnl_rule *, uint32_t)
uint32_t rtnl_rule_get_classid (struct rtnl_rule *)
void rtnl_rule_set_realms (struct rtnl_rule *, uint32_t)
uint32_t rtnl_rule_get_realms (struct rtnl_rule *)

Function Documentation

void rtnl_rule_dump ( struct rtnl_rule ,
FILE *  ,
struct nl_dump_params  
uint32_t rtnl_rule_get_classid ( struct rtnl_rule )
void rtnl_rule_set_classid ( struct rtnl_rule ,