netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
route.c File Reference
#include <netlink-local.h>
#include <netlink/netlink.h>
#include <netlink/cache.h>
#include <netlink/utils.h>
#include <netlink/data.h>
#include <netlink/route/rtnl.h>
#include <netlink/route/route.h>
#include <netlink/route/link.h>
Include dependency graph for route.c:

Functions

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...
 
Route Addition
int rtnl_route_build_add_request (struct rtnl_route *tmpl, int flags, struct nl_msg **result)
 
int rtnl_route_add (struct nl_sock *sk, struct rtnl_route *route, int flags)
 
int rtnl_route_build_del_request (struct rtnl_route *tmpl, int flags, struct nl_msg **result)
 
int rtnl_route_delete (struct nl_sock *sk, struct rtnl_route *route, int flags)