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>
20extern struct flnl_result * flnl_result_alloc(
void);
21extern void flnl_result_put(
struct flnl_result *);
29 struct flnl_request *,
32extern int flnl_result_get_table_id(
struct flnl_result *res);
33extern int flnl_result_get_prefixlen(
struct flnl_result *res);
34extern int flnl_result_get_nexthop_sel(
struct flnl_result *res);
35extern int flnl_result_get_type(
struct flnl_result *res);
36extern int flnl_result_get_scope(
struct flnl_result *res);
37extern int flnl_result_get_error(
struct flnl_result *res);
struct nl_cache * flnl_result_alloc_cache(void)
Allocate lookup result cache.
int flnl_lookup_build_request(struct flnl_request *, int, struct nl_msg **)
Builds a netlink request message to do a lookup.
int flnl_lookup(struct nl_sock *, struct flnl_request *, struct nl_cache *)
Perform FIB Lookup.