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

Routing Rules
[Routing Netlink]


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)
uint64_t rtnl_rule_get_fwmark (struct rtnl_rule *rule)
char * rtnl_rule_get_iif (struct rtnl_rule *rule)
int rtnl_rule_get_prio (struct rtnl_rule *rule)
realm_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)
void rtnl_rule_set_fwmark (struct rtnl_rule *rule, uint64_t fwmark)
int rtnl_rule_set_iif (struct rtnl_rule *rule, const char *dev)
void rtnl_rule_set_prio (struct rtnl_rule *rule, int prio)
void rtnl_rule_set_realms (struct rtnl_rule *rule, realm_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 struct nl_msg * build_rule_msg (struct rtnl_rule *tmpl, int cmd, int flags)
int rtnl_rule_add (struct nl_handle *handle, struct rtnl_rule *tmpl, int flags)
struct nl_msg * rtnl_rule_build_add_request (struct rtnl_rule *tmpl, int flags)

Routing Rule Object Allocation/Freeage

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

Routing Rule Cache Management

struct nl_cache * rtnl_rule_alloc_cache (struct nl_handle *handle)
struct nl_cache * rtnl_rule_alloc_cache_by_family (struct nl_handle *handle, int family)

Rule Deletion

struct nl_msg * rtnl_rule_build_delete_request (struct rtnl_rule *rule, int flags)
int rtnl_rule_delete (struct nl_handle *handle, struct rtnl_rule *rule, int flags)

Functions

static int rule_dump_brief (struct nl_object *o, struct nl_dump_params *p)
static int rule_dump_full (struct nl_object *obj, struct nl_dump_params *p)
static int rule_dump_stats (struct nl_object *obj, struct nl_dump_params *p)
static int rule_dump_xml (struct nl_object *obj, struct nl_dump_params *p)
static void __exit rule_exit (void)
static int rule_filter (struct nl_object *obj, struct nl_object *filter)
static void rule_free_data (struct nl_object *c)
static void __init rule_init (void)
static int rule_msg_parser (struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
static int rule_request_update (struct nl_cache *c, struct nl_handle *h)

Variables

static struct nl_cache_ops rtnl_rule_ops
static struct nla_policy rule_policy [RTA_MAX+1]


Generated by  Doxygen 1.6.0   Back to index