Nexthop Allocation/Freeage | |
rtnl_nexthop * | rtnl_route_nh_alloc (void) |
Allocate a routing nexthop. | |
void | rtnl_route_nh_free (struct rtnl_nexthop *nh) |
Free a routing nexthop. | |
Attribute: Weight | |
void | rtnl_route_nh_set_weight (struct rtnl_nexthop *nh, int weight) |
Set weight of routing nexthop. | |
int | rtnl_route_nh_get_weight (struct rtnl_nexthop *nh) |
Get weight of routing nexthop. | |
Attribute: Interface Index | |
void | rtnl_route_nh_set_ifindex (struct rtnl_nexthop *nh, int ifindex) |
Set interface index for outgoing interface of routing nexthop. | |
int | rtnl_route_nh_get_ifindex (struct rtnl_nexthop *nh) |
Get interface index of outgoing index of routing nexthop. | |
Attribute: Gateway Address | |
void | rtnl_route_nh_set_gateway (struct rtnl_nexthop *nh, struct nl_addr *addr) |
Set gateway address of routing nexthop. | |
nl_addr * | rtnl_route_nh_get_gateway (struct rtnl_nexthop *nh) |
Get gateway address of routing nexthop. | |
Attribute: Flags | |
void | rtnl_route_nh_set_flags (struct rtnl_nexthop *nh, unsigned int flags) |
Set flags of routing nexthop. | |
void | rtnl_route_nh_unset_flags (struct rtnl_nexthop *nh, unsigned int flags) |
Unset flags of routing nexthop. | |
unsigned int | rtnl_route_nh_get_flags (struct rtnl_nexthop *nh) |
Get flags of routing nexthop. |
struct rtnl_nexthop* rtnl_route_nh_alloc | ( | void | ) |
void rtnl_route_nh_free | ( | struct rtnl_nexthop * | nh | ) |
Free a routing nexthop.
nh | Routing nexthop to be freed. |
Definition at line 60 of file nexthop.c.
References nl_addr_put().
void rtnl_route_nh_set_weight | ( | struct rtnl_nexthop * | nh, | |
int | weight | |||
) |
int rtnl_route_nh_get_weight | ( | struct rtnl_nexthop * | nh | ) |
void rtnl_route_nh_set_ifindex | ( | struct rtnl_nexthop * | nh, | |
int | ifindex | |||
) |
int rtnl_route_nh_get_ifindex | ( | struct rtnl_nexthop * | nh | ) |
void rtnl_route_nh_set_gateway | ( | struct rtnl_nexthop * | nh, | |
struct nl_addr * | addr | |||
) |
Set gateway address of routing nexthop.
nh | Routing nexthop. | |
addr | New gateway address. |
Definition at line 139 of file nexthop.c.
References nl_addr_get(), and nl_addr_put().
struct nl_addr* rtnl_route_nh_get_gateway | ( | struct rtnl_nexthop * | nh | ) |
void rtnl_route_nh_set_flags | ( | struct rtnl_nexthop * | nh, | |
unsigned int | flags | |||
) |
void rtnl_route_nh_unset_flags | ( | struct rtnl_nexthop * | nh, | |
unsigned int | flags | |||
) |
unsigned int rtnl_route_nh_get_flags | ( | struct rtnl_nexthop * | nh | ) |