netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Collaboration diagram for Nexthop:

Functions

int rtnl_route_nh_compare (struct rtnl_nexthop *a, struct rtnl_nexthop *b, uint32_t attrs, int loose)
 
void rtnl_route_nh_dump (struct rtnl_nexthop *nh, struct nl_dump_params *dp)
 

Allocation/Freeing

struct rtnl_nexthoprtnl_route_nh_alloc (void)
 
struct rtnl_nexthoprtnl_route_nh_clone (struct rtnl_nexthop *src)
 
void rtnl_route_nh_free (struct rtnl_nexthop *nh)
 

Attributes

void rtnl_route_nh_set_weight (struct rtnl_nexthop *nh, uint8_t weight)
 
uint8_t rtnl_route_nh_get_weight (struct rtnl_nexthop *nh)
 
void rtnl_route_nh_set_ifindex (struct rtnl_nexthop *nh, int ifindex)
 
int rtnl_route_nh_get_ifindex (struct rtnl_nexthop *nh)
 
void rtnl_route_nh_set_gateway (struct rtnl_nexthop *nh, struct nl_addr *addr)
 
struct nl_addrrtnl_route_nh_get_gateway (struct rtnl_nexthop *nh)
 
void rtnl_route_nh_set_flags (struct rtnl_nexthop *nh, unsigned int flags)
 
void rtnl_route_nh_unset_flags (struct rtnl_nexthop *nh, unsigned int flags)
 
unsigned int rtnl_route_nh_get_flags (struct rtnl_nexthop *nh)
 
void rtnl_route_nh_set_realms (struct rtnl_nexthop *nh, uint32_t realms)
 
uint32_t rtnl_route_nh_get_realms (struct rtnl_nexthop *nh)
 

Nexthop Flags Translations

char * rtnl_route_nh_flags2str (int flags, char *buf, size_t len)
 
int rtnl_route_nh_str2flags (const char *name)
 

Detailed Description

Function Documentation

struct rtnl_nexthop* rtnl_route_nh_alloc ( void  )

References nl_init_list_head, NULL, and rtnl_nexthop::rtnh_list.

Referenced by nl_cli_route_parse_nexthop(), rtnl_route_nh_clone(), and rtnl_route_parse().

Here is the caller graph for this function:

int rtnl_route_nh_compare ( struct rtnl_nexthop a,
struct rtnl_nexthop b,
uint32_t  attrs,
int  loose 
)

References FLAGS, NH_DIFF, nl_addr_cmp(), rtnl_nexthop::rtnh_flag_mask, rtnl_nexthop::rtnh_flags, rtnl_nexthop::rtnh_gateway, rtnl_nexthop::rtnh_ifindex, rtnl_nexthop::rtnh_realms, and rtnl_nexthop::rtnh_weight.

Referenced by rtnl_route_parse().

Here is the call graph for this function:

Here is the caller graph for this function:

char* rtnl_route_nh_flags2str ( int  flags,
char *  buf,
size_t  len 
)

References __flags2str(), and ARRAY_SIZE.

Here is the call graph for this function:

void rtnl_route_nh_free ( struct rtnl_nexthop nh)

References nl_addr_put(), and rtnl_nexthop::rtnh_gateway.

Referenced by rtnl_route_parse().

Here is the call graph for this function:

Here is the caller graph for this function:

unsigned int rtnl_route_nh_get_flags ( struct rtnl_nexthop nh)
struct nl_addr* rtnl_route_nh_get_gateway ( struct rtnl_nexthop nh)
int rtnl_route_nh_get_ifindex ( struct rtnl_nexthop nh)
uint32_t rtnl_route_nh_get_realms ( struct rtnl_nexthop nh)
uint8_t rtnl_route_nh_get_weight ( struct rtnl_nexthop nh)
void rtnl_route_nh_set_flags ( struct rtnl_nexthop nh,
unsigned int  flags 
)
void rtnl_route_nh_set_gateway ( struct rtnl_nexthop nh,
struct nl_addr addr 
)

References rtnl_nexthop::ce_mask, nl_addr_get(), nl_addr_put(), NULL, and rtnl_nexthop::rtnh_gateway.

Referenced by nl_cli_route_parse_nexthop(), and rtnl_route_parse().

Here is the call graph for this function:

Here is the caller graph for this function:

void rtnl_route_nh_set_ifindex ( struct rtnl_nexthop nh,
int  ifindex 
)

References rtnl_nexthop::ce_mask, and rtnl_nexthop::rtnh_ifindex.

Referenced by nl_cli_route_parse_nexthop(), and rtnl_route_parse().

Here is the caller graph for this function:

void rtnl_route_nh_set_realms ( struct rtnl_nexthop nh,
uint32_t  realms 
)

References rtnl_nexthop::ce_mask, and rtnl_nexthop::rtnh_realms.

Referenced by rtnl_route_parse().

Here is the caller graph for this function:

void rtnl_route_nh_set_weight ( struct rtnl_nexthop nh,
uint8_t  weight 
)

References rtnl_nexthop::ce_mask, and rtnl_nexthop::rtnh_weight.

Referenced by nl_cli_route_parse_nexthop().

Here is the caller graph for this function:

int rtnl_route_nh_str2flags ( const char *  name)

References __str2flags(), and ARRAY_SIZE.

Here is the call graph for this function:

void rtnl_route_nh_unset_flags ( struct rtnl_nexthop nh,
unsigned int  flags 
)