Modules | |
Nexthop | |
Variables | |
struct nl_object_ops | route_obj_ops |
Allocation/Freeing | |
struct rtnl_route * | rtnl_route_alloc (void) |
void | rtnl_route_get (struct rtnl_route *route) |
void | rtnl_route_put (struct rtnl_route *route) |
Attributes | |
void | rtnl_route_set_table (struct rtnl_route *route, int table) |
int | rtnl_route_get_table (struct rtnl_route *route) |
void | rtnl_route_set_scope (struct rtnl_route *route, int scope) |
int | rtnl_route_get_scope (struct rtnl_route *route) |
void | rtnl_route_set_tos (struct rtnl_route *route, int tos) |
int | rtnl_route_get_tos (struct rtnl_route *route) |
void | rtnl_route_set_realms (struct rtnl_route *route, realm_t realms) |
realm_t | rtnl_route_get_realms (struct rtnl_route *route) |
void | rtnl_route_set_protocol (struct rtnl_route *route, int proto) |
int | rtnl_route_get_protocol (struct rtnl_route *route) |
void | rtnl_route_set_prio (struct rtnl_route *route, int prio) |
int | rtnl_route_get_prio (struct rtnl_route *route) |
void | rtnl_route_set_family (struct rtnl_route *route, int family) |
int | rtnl_route_get_family (struct rtnl_route *route) |
int | rtnl_route_set_dst (struct rtnl_route *route, struct nl_addr *addr) |
struct nl_addr * | rtnl_route_get_dst (struct rtnl_route *route) |
int | rtnl_route_get_dst_len (struct rtnl_route *route) |
int | rtnl_route_set_src (struct rtnl_route *route, struct nl_addr *addr) |
struct nl_addr * | rtnl_route_get_src (struct rtnl_route *route) |
int | rtnl_route_get_src_len (struct rtnl_route *route) |
int | rtnl_route_set_gateway (struct rtnl_route *route, struct nl_addr *addr) |
struct nl_addr * | rtnl_route_get_gateway (struct rtnl_route *route) |
void | rtnl_route_set_type (struct rtnl_route *route, int type) |
int | rtnl_route_get_type (struct rtnl_route *route) |
void | rtnl_route_set_flags (struct rtnl_route *route, unsigned int flags) |
void | rtnl_route_unset_flags (struct rtnl_route *route, unsigned int flags) |
unsigned int | rtnl_route_get_flags (struct rtnl_route *route) |
int | rtnl_route_set_metric (struct rtnl_route *route, int metric, uint32_t value) |
int | rtnl_route_unset_metric (struct rtnl_route *route, int metric) |
unsigned int | rtnl_route_get_metric (struct rtnl_route *route, int metric) |
int | rtnl_route_set_pref_src (struct rtnl_route *route, struct nl_addr *addr) |
struct nl_addr * | rtnl_route_get_pref_src (struct rtnl_route *route) |
void | rtnl_route_set_oif (struct rtnl_route *route, int ifindex) |
int | rtnl_route_get_oif (struct rtnl_route *route) |
void | rtnl_route_set_iif (struct rtnl_route *route, const char *name) |
char * | rtnl_route_get_iif (struct rtnl_route *route) |
void | rtnl_route_add_nexthop (struct rtnl_route *route, struct rtnl_nexthop *nh) |
void | rtnl_route_remove_nexthop (struct rtnl_nexthop *nh) |
struct nl_list_head * | rtnl_route_get_nexthops (struct rtnl_route *route) |
void | rtnl_route_set_cacheinfo (struct rtnl_route *route, struct rtnl_rtcacheinfo *ci) |
uint32_t | rtnl_route_get_mp_algo (struct rtnl_route *route) |
void | rtnl_route_set_mp_algo (struct rtnl_route *route, uint32_t algo) |
Name Default ------------------------------------------------------------- routing table RT_TABLE_MAIN scope RT_SCOPE_NOWHERE tos 0 realms 0 protocol RTPROT_STATIC prio 0 family AF_UNSPEC type RTN_UNICAST oif RTNL_LINK_NOT_FOUND iif NULL mpalgo IP_MP_ALG_NONE
struct nl_object_ops route_obj_ops |
Initial value:
{ .oo_name = "route/route", .oo_size = sizeof(struct rtnl_route), .oo_constructor = route_constructor, .oo_free_data = route_free_data, .oo_clone = route_clone, .oo_dump[NL_DUMP_BRIEF] = route_dump_brief, .oo_dump[NL_DUMP_FULL] = route_dump_full, .oo_dump[NL_DUMP_STATS] = route_dump_stats, .oo_dump[NL_DUMP_XML] = route_dump_xml, .oo_dump[NL_DUMP_ENV] = route_dump_env, .oo_compare = route_compare, .oo_attrs2str = route_attrs2str, .oo_id_attrs = (ROUTE_ATTR_FAMILY | ROUTE_ATTR_TOS | ROUTE_ATTR_TABLE | ROUTE_ATTR_DST), }
Definition at line 892 of file route_obj.c.