Modules | |
Request | |
Allocation/Freeing | |
struct flnl_result * | flnl_result_alloc (void) |
void | flnl_result_put (struct flnl_result *res) |
Cache Management | |
struct nl_cache * | flnl_result_alloc_cache (void) |
Allocate lookup result cache. | |
Lookup | |
struct nl_msg * | flnl_lookup_build_request (struct flnl_request *req, int flags) |
Builds a netlink request message to do a lookup. | |
int | flnl_lookup (struct nl_handle *handle, struct flnl_request *req, struct nl_cache *cache) |
Perform FIB Lookup. | |
Attribute Access | |
int | flnl_result_get_table_id (struct flnl_result *res) |
int | flnl_result_get_prefixlen (struct flnl_result *res) |
int | flnl_result_get_nexthop_sel (struct flnl_result *res) |
int | flnl_result_get_type (struct flnl_result *res) |
int | flnl_result_get_scope (struct flnl_result *res) |
int | flnl_result_get_error (struct flnl_result *res) |
struct nl_cache* flnl_result_alloc_cache | ( | void | ) | [read] |
Allocates a new lookup result cache and initializes it properly.
Definition at line 183 of file lookup.c.
References nl_cache_alloc().
struct nl_msg* flnl_lookup_build_request | ( | struct flnl_request * | req, | |
int | flags | |||
) | [read] |
req | Requested match. | |
flags | additional netlink message flags |
rtnl_link_set_*
functions.
Definition at line 212 of file lookup.c.
References nl_addr_get_binary_addr(), nlmsg_alloc_simple(), nlmsg_append(), and nlmsg_free().
Referenced by flnl_lookup().
int flnl_lookup | ( | struct nl_handle * | handle, | |
struct flnl_request * | req, | |||
struct nl_cache * | cache | |||
) |
handle | Netlink handle. | |
req | Lookup request object. | |
cache | Cache for result. |
Definition at line 263 of file lookup.c.
References flnl_lookup_build_request(), nl_cache_pickup(), nl_send_auto_complete(), and nlmsg_free().