6 #ifndef NETLINK_FIB_LOOKUP_H_
7 #define NETLINK_FIB_LOOKUP_H_
9 #include <netlink/netlink.h>
10 #include <netlink/cache.h>
11 #include <netlink/addr.h>
12 #include <netlink/fib_lookup/request.h>
20 extern struct flnl_result * flnl_result_alloc(
void);
21 extern void flnl_result_put(
struct flnl_result *);
29 struct flnl_request *,
32 extern int flnl_result_get_table_id(
struct flnl_result *res);
33 extern int flnl_result_get_prefixlen(
struct flnl_result *res);
34 extern int flnl_result_get_nexthop_sel(
struct flnl_result *res);
35 extern int flnl_result_get_type(
struct flnl_result *res);
36 extern int flnl_result_get_scope(
struct flnl_result *res);
37 extern int flnl_result_get_error(
struct flnl_result *res);
int flnl_lookup_build_request(struct flnl_request *, int, struct nl_msg **)
Builds a netlink request message to do a lookup.
struct nl_cache * flnl_result_alloc_cache(void)
Allocate lookup result cache.
int flnl_lookup(struct nl_sock *, struct flnl_request *, struct nl_cache *)
Perform FIB Lookup.