Logo Search packages:      
Sourcecode: libnl2 version File versions  Download package

Routing Rules
[Routing Family]


Attribute Modification

static int __assign_addr (struct rtnl_rule *rule, struct nl_addr **pos, struct nl_addr *new, uint8_t *len, int flag)
int rtnl_rule_get_action (struct rtnl_rule *rule)
int rtnl_rule_get_dsfield (struct rtnl_rule *rule)
struct nl_addr * rtnl_rule_get_dst (struct rtnl_rule *rule)
int rtnl_rule_get_dst_len (struct rtnl_rule *rule)
int rtnl_rule_get_family (struct rtnl_rule *rule)
char * rtnl_rule_get_iif (struct rtnl_rule *rule)
uint64_t rtnl_rule_get_mark (struct rtnl_rule *rule)
int rtnl_rule_get_prio (struct rtnl_rule *rule)
uint32_t rtnl_rule_get_realms (struct rtnl_rule *rule)
struct nl_addr * rtnl_rule_get_src (struct rtnl_rule *rule)
int rtnl_rule_get_src_len (struct rtnl_rule *rule)
int rtnl_rule_get_table (struct rtnl_rule *rule)
void rtnl_rule_set_action (struct rtnl_rule *rule, int type)
void rtnl_rule_set_dsfield (struct rtnl_rule *rule, int dsfield)
int rtnl_rule_set_dst (struct rtnl_rule *rule, struct nl_addr *dst)
void rtnl_rule_set_dst_len (struct rtnl_rule *rule, int len)
void rtnl_rule_set_family (struct rtnl_rule *rule, int family)
int rtnl_rule_set_iif (struct rtnl_rule *rule, const char *dev)
void rtnl_rule_set_mark (struct rtnl_rule *rule, uint64_t mark)
void rtnl_rule_set_prio (struct rtnl_rule *rule, int prio)
void rtnl_rule_set_realms (struct rtnl_rule *rule, uint32_t realms)
int rtnl_rule_set_src (struct rtnl_rule *rule, struct nl_addr *src)
void rtnl_rule_set_src_len (struct rtnl_rule *rule, int len)
void rtnl_rule_set_table (struct rtnl_rule *rule, int table)

Rule Addition

static int build_rule_msg (struct rtnl_rule *tmpl, int cmd, int flags, struct nl_msg **result)
int rtnl_rule_add (struct nl_sock *sk, struct rtnl_rule *tmpl, int flags)
int rtnl_rule_build_add_request (struct rtnl_rule *tmpl, int flags, struct nl_msg **result)

Allocation/Freeing

struct rtnl_rule * rtnl_rule_alloc (void)
void rtnl_rule_put (struct rtnl_rule *rule)

Cache Management

int rtnl_rule_alloc_cache (struct nl_sock *sock, int family, struct nl_cache **result)

Rule Deletion

int rtnl_rule_build_delete_request (struct rtnl_rule *rule, int flags, struct nl_msg **result)
int rtnl_rule_delete (struct nl_sock *sk, struct rtnl_rule *rule, int flags)

Functions

static char * rule_attrs2str (int attrs, char *buf, size_t len)
static int rule_clone (struct nl_object *_dst, struct nl_object *_src)
static int rule_compare (struct nl_object *_a, struct nl_object *_b, uint32_t attrs, int flags)
static void rule_dump_details (struct nl_object *obj, struct nl_dump_params *p)
static void rule_dump_env (struct nl_object *obj, struct nl_dump_params *p)
static void rule_dump_line (struct nl_object *o, struct nl_dump_params *p)
static void rule_dump_stats (struct nl_object *obj, struct nl_dump_params *p)
static void __exit rule_exit (void)
static void rule_free_data (struct nl_object *c)
static void __init rule_init (void)
static int rule_msg_parser (struct nl_cache_ops *ops, struct sockaddr_nl *who, struct nlmsghdr *n, struct nl_parser_param *pp)
static int rule_request_update (struct nl_cache *c, struct nl_sock *h)

Variables

static struct nl_cache_ops rtnl_rule_ops
static struct trans_tbl rule_attrs []
static struct nl_object_ops rule_obj_ops
static struct nla_policy rule_policy [RTA_MAX+1]


Generated by  Doxygen 1.6.0   Back to index