libnl
3.2.24-rc1
|
Modules | |
Route Object | |
Utilities | |
Routing Utility Functions. | |
Macros | |
#define | ROUTE_CACHE_CONTENT 1 |
When passed to rtnl_route_alloc_cache() the cache will correspond to the contents of the routing cache instead of the actual routes. | |
Cache Management | |
int | rtnl_route_alloc_cache (struct nl_sock *sk, int family, int flags, struct nl_cache **result) |
Build a route cache holding all routes currently configured in the kernel. More... | |
int rtnl_route_alloc_cache | ( | struct nl_sock * | sk, |
int | family, | ||
int | flags, | ||
struct nl_cache ** | result | ||
) |
Build a route cache holding all routes currently configured in the kernel.
sk | Netlink socket. |
family | Address family of routes to cover or AF_UNSPEC |
flags | Flags |
result | Result pointer |
Allocates a new cache, initializes it properly and updates it to contain all routes currently configured in the kernel.
Valid flags:
Definition at line 80 of file route.c.
References nl_cache_alloc(), and nl_cache_refill().