libnl 3.10.0
|
Topics | |
Nexthop | |
Functions | |
int | rtnl_route_parse (struct nlmsghdr *nlh, struct rtnl_route **result) |
int | rtnl_route_build_msg (struct nl_msg *msg, struct rtnl_route *route) |
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, uint32_t table) |
uint32_t | rtnl_route_get_table (struct rtnl_route *route) |
void | rtnl_route_set_scope (struct rtnl_route *route, uint8_t scope) |
uint8_t | rtnl_route_get_scope (struct rtnl_route *route) |
void | rtnl_route_set_tos (struct rtnl_route *route, uint8_t tos) |
uint8_t | rtnl_route_get_tos (struct rtnl_route *route) |
void | rtnl_route_set_protocol (struct rtnl_route *route, uint8_t protocol) |
uint8_t | rtnl_route_get_protocol (struct rtnl_route *route) |
void | rtnl_route_set_priority (struct rtnl_route *route, uint32_t prio) |
uint32_t | rtnl_route_get_priority (struct rtnl_route *route) |
int | rtnl_route_set_family (struct rtnl_route *route, uint8_t family) |
uint8_t | 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_set_src (struct rtnl_route *route, struct nl_addr *addr) |
struct nl_addr * | rtnl_route_get_src (struct rtnl_route *route) |
int | rtnl_route_set_type (struct rtnl_route *route, uint8_t type) |
uint8_t | rtnl_route_get_type (struct rtnl_route *route) |
void | rtnl_route_set_flags (struct rtnl_route *route, uint32_t flags) |
void | rtnl_route_unset_flags (struct rtnl_route *route, uint32_t flags) |
uint32_t | 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) |
int | rtnl_route_get_metric (struct rtnl_route *route, int metric, uint32_t *value) |
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_iif (struct rtnl_route *route, int ifindex) |
int | 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_route *route, struct rtnl_nexthop *nh) |
struct nl_list_head * | rtnl_route_get_nexthops (struct rtnl_route *route) |
int | rtnl_route_get_nnexthops (struct rtnl_route *route) |
void | rtnl_route_foreach_nexthop (struct rtnl_route *r, void(*cb)(struct rtnl_nexthop *, void *), void *arg) |
struct rtnl_nexthop * | rtnl_route_nexthop_n (struct rtnl_route *r, int n) |
void | rtnl_route_set_ttl_propagate (struct rtnl_route *route, uint8_t ttl_prop) |
int | rtnl_route_get_ttl_propagate (struct rtnl_route *route) |
void | rtnl_route_set_nhid (struct rtnl_route *route, uint32_t nhid) |
uint32_t | rtnl_route_get_nhid (struct rtnl_route *route) |
Utilities | |
int | rtnl_route_guess_scope (struct rtnl_route *route) |
Guess scope of a route object. | |
struct rtnl_route * rtnl_route_alloc | ( | void | ) |
Definition at line 644 of file route_obj.c.
void rtnl_route_get | ( | struct rtnl_route * | route | ) |
Definition at line 649 of file route_obj.c.
void rtnl_route_put | ( | struct rtnl_route * | route | ) |
Definition at line 654 of file route_obj.c.
void rtnl_route_set_table | ( | struct rtnl_route * | route, |
uint32_t | table ) |
Definition at line 666 of file route_obj.c.
uint32_t rtnl_route_get_table | ( | struct rtnl_route * | route | ) |
Definition at line 672 of file route_obj.c.
void rtnl_route_set_scope | ( | struct rtnl_route * | route, |
uint8_t | scope ) |
Definition at line 677 of file route_obj.c.
uint8_t rtnl_route_get_scope | ( | struct rtnl_route * | route | ) |
Definition at line 683 of file route_obj.c.
void rtnl_route_set_tos | ( | struct rtnl_route * | route, |
uint8_t | tos ) |
Definition at line 688 of file route_obj.c.
uint8_t rtnl_route_get_tos | ( | struct rtnl_route * | route | ) |
Definition at line 694 of file route_obj.c.
void rtnl_route_set_protocol | ( | struct rtnl_route * | route, |
uint8_t | protocol ) |
Definition at line 699 of file route_obj.c.
uint8_t rtnl_route_get_protocol | ( | struct rtnl_route * | route | ) |
Definition at line 705 of file route_obj.c.
void rtnl_route_set_priority | ( | struct rtnl_route * | route, |
uint32_t | prio ) |
Definition at line 710 of file route_obj.c.
uint32_t rtnl_route_get_priority | ( | struct rtnl_route * | route | ) |
Definition at line 716 of file route_obj.c.
int rtnl_route_set_family | ( | struct rtnl_route * | route, |
uint8_t | family ) |
Definition at line 721 of file route_obj.c.
uint8_t rtnl_route_get_family | ( | struct rtnl_route * | route | ) |
Definition at line 736 of file route_obj.c.
int rtnl_route_set_dst | ( | struct rtnl_route * | route, |
struct nl_addr * | addr ) |
Definition at line 741 of file route_obj.c.
struct nl_addr * rtnl_route_get_dst | ( | struct rtnl_route * | route | ) |
Definition at line 760 of file route_obj.c.
int rtnl_route_set_src | ( | struct rtnl_route * | route, |
struct nl_addr * | addr ) |
Definition at line 765 of file route_obj.c.
struct nl_addr * rtnl_route_get_src | ( | struct rtnl_route * | route | ) |
Definition at line 786 of file route_obj.c.
int rtnl_route_set_type | ( | struct rtnl_route * | route, |
uint8_t | type ) |
Definition at line 791 of file route_obj.c.
uint8_t rtnl_route_get_type | ( | struct rtnl_route * | route | ) |
Definition at line 802 of file route_obj.c.
void rtnl_route_set_flags | ( | struct rtnl_route * | route, |
uint32_t | flags ) |
Definition at line 807 of file route_obj.c.
void rtnl_route_unset_flags | ( | struct rtnl_route * | route, |
uint32_t | flags ) |
Definition at line 814 of file route_obj.c.
uint32_t rtnl_route_get_flags | ( | struct rtnl_route * | route | ) |
Definition at line 821 of file route_obj.c.
int rtnl_route_set_metric | ( | struct rtnl_route * | route, |
int | metric, | ||
uint32_t | value ) |
Definition at line 826 of file route_obj.c.
int rtnl_route_unset_metric | ( | struct rtnl_route * | route, |
int | metric ) |
Definition at line 843 of file route_obj.c.
int rtnl_route_get_metric | ( | struct rtnl_route * | route, |
int | metric, | ||
uint32_t * | value ) |
Definition at line 856 of file route_obj.c.
int rtnl_route_set_pref_src | ( | struct rtnl_route * | route, |
struct nl_addr * | addr ) |
Definition at line 870 of file route_obj.c.
struct nl_addr * rtnl_route_get_pref_src | ( | struct rtnl_route * | route | ) |
Definition at line 888 of file route_obj.c.
void rtnl_route_set_iif | ( | struct rtnl_route * | route, |
int | ifindex ) |
Definition at line 893 of file route_obj.c.
int rtnl_route_get_iif | ( | struct rtnl_route * | route | ) |
Definition at line 899 of file route_obj.c.
void rtnl_route_add_nexthop | ( | struct rtnl_route * | route, |
struct rtnl_nexthop * | nh ) |
Definition at line 904 of file route_obj.c.
void rtnl_route_remove_nexthop | ( | struct rtnl_route * | route, |
struct rtnl_nexthop * | nh ) |
Definition at line 911 of file route_obj.c.
struct nl_list_head * rtnl_route_get_nexthops | ( | struct rtnl_route * | route | ) |
Definition at line 919 of file route_obj.c.
int rtnl_route_get_nnexthops | ( | struct rtnl_route * | route | ) |
Definition at line 927 of file route_obj.c.
void rtnl_route_foreach_nexthop | ( | struct rtnl_route * | r, |
void(*)(struct rtnl_nexthop *, void *) | cb, | ||
void * | arg ) |
Definition at line 935 of file route_obj.c.
struct rtnl_nexthop * rtnl_route_nexthop_n | ( | struct rtnl_route * | r, |
int | n ) |
Definition at line 948 of file route_obj.c.
void rtnl_route_set_ttl_propagate | ( | struct rtnl_route * | route, |
uint8_t | ttl_prop ) |
Definition at line 965 of file route_obj.c.
int rtnl_route_get_ttl_propagate | ( | struct rtnl_route * | route | ) |
Definition at line 971 of file route_obj.c.
void rtnl_route_set_nhid | ( | struct rtnl_route * | route, |
uint32_t | nhid ) |
Definition at line 980 of file route_obj.c.
uint32_t rtnl_route_get_nhid | ( | struct rtnl_route * | route | ) |
Definition at line 990 of file route_obj.c.
int rtnl_route_guess_scope | ( | struct rtnl_route * | route | ) |
Guess scope of a route object.
route | Route object. |
Guesses the scope of a route object, based on the following rules:
Definition at line 1015 of file route_obj.c.
int rtnl_route_parse | ( | struct nlmsghdr * | nlh, |
struct rtnl_route ** | result ) |
Definition at line 1167 of file route_obj.c.
int rtnl_route_build_msg | ( | struct nl_msg * | msg, |
struct rtnl_route * | route ) |
Definition at line 1402 of file route_obj.c.