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

Routing
[Routing Netlink]


Routing Table Identifier Translations

static struct trans_tbl route_tables []
int rtnl_route_str2table (const char *name)
char * rtnl_route_table2str (int table, char *buf, size_t size)

Route Object Allocation/Freeage

struct rtnl_route * rtnl_route_alloc (void)
void rtnl_route_free (struct rtnl_route *route)
void rtnl_route_put (struct rtnl_route *route)

Route Cache Management

struct nl_cache * rtnl_route_alloc_cache (struct nl_handle *handle)

Attribute Modifications

struct nl_addr * rtnl_route_get_dst (struct rtnl_route *route)
int rtnl_route_get_dst_len (struct rtnl_route *route)
int rtnl_route_get_family (struct rtnl_route *route)
unsigned int rtnl_route_get_flags (struct rtnl_route *route)
struct nl_addr * rtnl_route_get_gateway (struct rtnl_route *route)
char * rtnl_route_get_iif (struct rtnl_route *route)
unsigned int rtnl_route_get_metric (struct rtnl_route *route, int metric)
int rtnl_route_get_oif (struct rtnl_route *route)
struct nl_addr * rtnl_route_get_pref_src (struct rtnl_route *route)
int rtnl_route_get_prio (struct rtnl_route *route)
int rtnl_route_get_protocol (struct rtnl_route *route)
realm_t rtnl_route_get_realms (struct rtnl_route *route)
int rtnl_route_get_scope (struct rtnl_route *route)
struct nl_addr * rtnl_route_get_src (struct rtnl_route *route)
int rtnl_route_get_src_len (struct rtnl_route *route)
int rtnl_route_get_table (struct rtnl_route *route)
int rtnl_route_get_tos (struct rtnl_route *route)
int rtnl_route_get_type (struct rtnl_route *route)
int rtnl_route_set_dst (struct rtnl_route *route, struct nl_addr *addr)
void rtnl_route_set_dst_len (struct rtnl_route *route, int prefix)
void rtnl_route_set_family (struct rtnl_route *route, int family)
void rtnl_route_set_flags (struct rtnl_route *route, unsigned int flags)
int rtnl_route_set_gateway (struct rtnl_route *route, struct nl_addr *addr)
void rtnl_route_set_iif (struct rtnl_route *route, const char *name)
int rtnl_route_set_metric (struct rtnl_route *route, int metric, uint32_t value)
void rtnl_route_set_oif (struct rtnl_route *route, int ifindex)
int rtnl_route_set_pref_src (struct rtnl_route *route, struct nl_addr *addr)
void rtnl_route_set_prio (struct rtnl_route *route, int prio)
void rtnl_route_set_protocol (struct rtnl_route *route, int proto)
void rtnl_route_set_realms (struct rtnl_route *route, realm_t realms)
void rtnl_route_set_scope (struct rtnl_route *route, int scope)
int rtnl_route_set_src (struct rtnl_route *route, struct nl_addr *addr)
void rtnl_route_set_src_len (struct rtnl_route *route, int prefix)
void rtnl_route_set_table (struct rtnl_route *route, int table)
void rtnl_route_set_tos (struct rtnl_route *route, int tos)
void rtnl_route_set_type (struct rtnl_route *route, int type)
void rtnl_route_unset_flags (struct rtnl_route *route, unsigned int flags)
int rtnl_route_unset_metric (struct rtnl_route *route, int metric)

Functions

static int route_dump_brief (struct nl_object *a, struct nl_dump_params *p)
static int route_dump_full (struct nl_object *a, struct nl_dump_params *p)
static int route_dump_stats (struct nl_object *obj, struct nl_dump_params *p)
static int route_dump_xml (struct nl_object *obj, struct nl_dump_params *p)
static void __exit route_exit (void)
static int route_filter (struct nl_object *obj, struct nl_object *filter)
static void route_free_data (struct nl_object *c)
static void __init route_init (void)
static int route_msg_parser (struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
static int route_request_update (struct nl_cache *c, struct nl_handle *h)

Variables

static struct nla_policy route_policy [RTA_MAX+1]
static struct nl_cache_ops rtnl_route_ops


Generated by  Doxygen 1.6.0   Back to index