libnl 3.7.0

IP-based Virtual LAN link module. More...

IPVLAN Object

struct rtnl_linkrtnl_link_ipvlan_alloc (void)
 Allocate link object of type IPVLAN. More...
 
int rtnl_link_is_ipvlan (struct rtnl_link *link)
 Check if link is a IPVLAN link. More...
 
int rtnl_link_ipvlan_set_mode (struct rtnl_link *link, uint16_t mode)
 Set IPVLAN MODE. More...
 
int rtnl_link_ipvlan_get_mode (struct rtnl_link *link, uint16_t *out_mode)
 Get IPVLAN Mode. More...
 

Mode Translation

char * rtnl_link_ipvlan_mode2str (int mode, char *buf, size_t len)
 
int rtnl_link_ipvlan_str2mode (const char *name)
 

Detailed Description

IP-based Virtual LAN link module.

Link Type Name: "ipvlan"

IPVLAN Documentation (Netlink Routing Development Guide)

Function Documentation

◆ rtnl_link_ipvlan_alloc()

struct rtnl_link * rtnl_link_ipvlan_alloc ( void  )

Allocate link object of type IPVLAN.

Returns
Allocated link object or NULL.

Definition at line 172 of file ipvlan.c.

References rtnl_link_alloc(), rtnl_link_put(), and rtnl_link_set_type().

+ Here is the call graph for this function:

◆ rtnl_link_is_ipvlan()

int rtnl_link_is_ipvlan ( struct rtnl_link link)

Check if link is a IPVLAN link.

Parameters
linkLink object
Returns
True if link is a IPVLAN link, otherwise false is returned.

Definition at line 193 of file ipvlan.c.

◆ rtnl_link_ipvlan_set_mode()

int rtnl_link_ipvlan_set_mode ( struct rtnl_link link,
uint16_t  mode 
)

Set IPVLAN MODE.

Parameters
linkLink object
modeIPVLAN mode
Returns
0 on success or a negative error code

Definition at line 205 of file ipvlan.c.

◆ rtnl_link_ipvlan_get_mode()

int rtnl_link_ipvlan_get_mode ( struct rtnl_link link,
uint16_t *  out_mode 
)

Get IPVLAN Mode.

Parameters
linkLink object
out_modeon success, return the mode
Returns
0 on success or a negative error code.

Definition at line 224 of file ipvlan.c.

◆ rtnl_link_ipvlan_mode2str()

char * rtnl_link_ipvlan_mode2str ( int  mode,
char *  buf,
size_t  len 
)

Definition at line 248 of file ipvlan.c.

◆ rtnl_link_ipvlan_str2mode()

int rtnl_link_ipvlan_str2mode ( const char *  name)

Definition at line 253 of file ipvlan.c.