netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
nexthop.h File Reference
#include <netlink/netlink.h>
#include <netlink/addr.h>
Include dependency graph for nexthop.h:
This graph shows which files directly or indirectly include this file:

Enumerations

enum  {
  NH_DUMP_FROM_ONELINE = -2,
  NH_DUMP_FROM_DETAILS = -1,
  NH_DUMP_FROM_ENV = 0
}
 

Functions

struct rtnl_nexthoprtnl_route_nh_alloc (void)
 
struct rtnl_nexthoprtnl_route_nh_clone (struct rtnl_nexthop *)
 
void rtnl_route_nh_free (struct rtnl_nexthop *)
 
int rtnl_route_nh_compare (struct rtnl_nexthop *, struct rtnl_nexthop *, uint32_t, int)
 
void rtnl_route_nh_dump (struct rtnl_nexthop *, struct nl_dump_params *)
 
void rtnl_route_nh_set_weight (struct rtnl_nexthop *, uint8_t)
 
uint8_t rtnl_route_nh_get_weight (struct rtnl_nexthop *)
 
void rtnl_route_nh_set_ifindex (struct rtnl_nexthop *, int)
 
int rtnl_route_nh_get_ifindex (struct rtnl_nexthop *)
 
void rtnl_route_nh_set_gateway (struct rtnl_nexthop *, struct nl_addr *)
 
struct nl_addrrtnl_route_nh_get_gateway (struct rtnl_nexthop *)
 
void rtnl_route_nh_set_flags (struct rtnl_nexthop *, unsigned int)
 
void rtnl_route_nh_unset_flags (struct rtnl_nexthop *, unsigned int)
 
unsigned int rtnl_route_nh_get_flags (struct rtnl_nexthop *)
 
void rtnl_route_nh_set_realms (struct rtnl_nexthop *, uint32_t)
 
uint32_t rtnl_route_nh_get_realms (struct rtnl_nexthop *)
 
char * rtnl_route_nh_flags2str (int, char *, size_t)
 
int rtnl_route_nh_str2flags (const char *)
 

Enumeration Type Documentation

anonymous enum
Enumerator
NH_DUMP_FROM_ONELINE 
NH_DUMP_FROM_DETAILS 
NH_DUMP_FROM_ENV