libnl 3.9.0

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)
 
void nh_set_encap (struct rtnl_nexthop *nh, struct rtnl_nh_encap *rtnh_encap)
 

Nexthop Flags Translations

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

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_addr * rtnl_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)
 
int rtnl_route_nh_set_newdst (struct rtnl_nexthop *nh, struct nl_addr *addr)
 
struct nl_addr * rtnl_route_nh_get_newdst (struct rtnl_nexthop *nh)
 
int rtnl_route_nh_set_via (struct rtnl_nexthop *nh, struct nl_addr *addr)
 
struct nl_addr * rtnl_route_nh_get_via (struct rtnl_nexthop *nh)
 

Detailed Description

Function Documentation

◆ rtnl_route_nh_alloc()

struct rtnl_nexthop * rtnl_route_nh_alloc ( void  )

Definition at line 39 of file nexthop.c.

◆ rtnl_route_nh_clone()

struct rtnl_nexthop * rtnl_route_nh_clone ( struct rtnl_nexthop src)

Definition at line 52 of file nexthop.c.

◆ rtnl_route_nh_free()

void rtnl_route_nh_free ( struct rtnl_nexthop nh)

Definition at line 96 of file nexthop.c.

◆ rtnl_route_nh_compare()

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

Definition at line 112 of file nexthop.c.

◆ rtnl_route_nh_dump()

void rtnl_route_nh_dump ( struct rtnl_nexthop nh,
struct nl_dump_params dp 
)

Definition at line 229 of file nexthop.c.

◆ nh_set_encap()

void nh_set_encap ( struct rtnl_nexthop nh,
struct rtnl_nh_encap rtnh_encap 
)

Definition at line 247 of file nexthop.c.

◆ rtnl_route_nh_set_weight()

void rtnl_route_nh_set_weight ( struct rtnl_nexthop nh,
uint8_t  weight 
)

Definition at line 270 of file nexthop.c.

◆ rtnl_route_nh_get_weight()

uint8_t rtnl_route_nh_get_weight ( struct rtnl_nexthop nh)

Definition at line 276 of file nexthop.c.

◆ rtnl_route_nh_set_ifindex()

void rtnl_route_nh_set_ifindex ( struct rtnl_nexthop nh,
int  ifindex 
)

Definition at line 281 of file nexthop.c.

◆ rtnl_route_nh_get_ifindex()

int rtnl_route_nh_get_ifindex ( struct rtnl_nexthop nh)

Definition at line 287 of file nexthop.c.

◆ rtnl_route_nh_set_gateway()

void rtnl_route_nh_set_gateway ( struct rtnl_nexthop nh,
struct nl_addr *  addr 
)

Definition at line 293 of file nexthop.c.

◆ rtnl_route_nh_get_gateway()

struct nl_addr * rtnl_route_nh_get_gateway ( struct rtnl_nexthop nh)

Definition at line 309 of file nexthop.c.

◆ rtnl_route_nh_set_flags()

void rtnl_route_nh_set_flags ( struct rtnl_nexthop nh,
unsigned int  flags 
)

Definition at line 314 of file nexthop.c.

◆ rtnl_route_nh_unset_flags()

void rtnl_route_nh_unset_flags ( struct rtnl_nexthop nh,
unsigned int  flags 
)

Definition at line 321 of file nexthop.c.

◆ rtnl_route_nh_get_flags()

unsigned int rtnl_route_nh_get_flags ( struct rtnl_nexthop nh)

Definition at line 328 of file nexthop.c.

◆ rtnl_route_nh_set_realms()

void rtnl_route_nh_set_realms ( struct rtnl_nexthop nh,
uint32_t  realms 
)

Definition at line 333 of file nexthop.c.

◆ rtnl_route_nh_get_realms()

uint32_t rtnl_route_nh_get_realms ( struct rtnl_nexthop nh)

Definition at line 339 of file nexthop.c.

◆ rtnl_route_nh_set_newdst()

int rtnl_route_nh_set_newdst ( struct rtnl_nexthop nh,
struct nl_addr *  addr 
)

Definition at line 344 of file nexthop.c.

◆ rtnl_route_nh_get_newdst()

struct nl_addr * rtnl_route_nh_get_newdst ( struct rtnl_nexthop nh)

Definition at line 362 of file nexthop.c.

◆ rtnl_route_nh_set_via()

int rtnl_route_nh_set_via ( struct rtnl_nexthop nh,
struct nl_addr *  addr 
)

Definition at line 367 of file nexthop.c.

◆ rtnl_route_nh_get_via()

struct nl_addr * rtnl_route_nh_get_via ( struct rtnl_nexthop nh)

Definition at line 385 of file nexthop.c.

◆ rtnl_route_nh_flags2str()

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

Definition at line 403 of file nexthop.c.

◆ rtnl_route_nh_str2flags()

int rtnl_route_nh_str2flags ( const char *  name)

Definition at line 408 of file nexthop.c.