libnl  3.2.24-rc1

Virtual eXtensible Local Area Network link module. More...

VXLAN Object

struct rtnl_linkrtnl_link_vxlan_alloc (void)
 Allocate link object of type VXLAN. More...
 
int rtnl_link_is_vxlan (struct rtnl_link *link)
 Check if link is a VXLAN link. More...
 
int rtnl_link_vxlan_set_id (struct rtnl_link *link, uint32_t id)
 Set VXLAN Network Identifier. More...
 
int rtnl_link_vxlan_get_id (struct rtnl_link *link, uint32_t *id)
 Get VXLAN Network Identifier. More...
 
int rtnl_link_vxlan_set_group (struct rtnl_link *link, struct nl_addr *addr)
 Set VXLAN multicast IP address. More...
 
int rtnl_link_vxlan_get_group (struct rtnl_link *link, struct nl_addr **addr)
 Get VXLAN multicast IP address. More...
 
int rtnl_link_vxlan_set_link (struct rtnl_link *link, uint32_t index)
 Set physical device to use for VXLAN. More...
 
int rtnl_link_vxlan_get_link (struct rtnl_link *link, uint32_t *index)
 Get physical device to use for VXLAN. More...
 
int rtnl_link_vxlan_set_local (struct rtnl_link *link, struct nl_addr *addr)
 Set source address to use for VXLAN. More...
 
int rtnl_link_vxlan_get_local (struct rtnl_link *link, struct nl_addr **addr)
 Get source address to use for VXLAN. More...
 
int rtnl_link_vxlan_set_ttl (struct rtnl_link *link, uint8_t ttl)
 Set IP TTL value to use for VXLAN. More...
 
int rtnl_link_vxlan_get_ttl (struct rtnl_link *link)
 Get IP TTL value to use for VXLAN. More...
 
int rtnl_link_vxlan_set_tos (struct rtnl_link *link, uint8_t tos)
 Set IP ToS value to use for VXLAN. More...
 
int rtnl_link_vxlan_get_tos (struct rtnl_link *link)
 Get IP ToS value to use for VXLAN. More...
 
int rtnl_link_vxlan_set_learning (struct rtnl_link *link, uint8_t learning)
 Set VXLAN learning status. More...
 
int rtnl_link_vxlan_get_learning (struct rtnl_link *link)
 Get VXLAN learning status. More...
 
int rtnl_link_vxlan_enable_learning (struct rtnl_link *link)
 Enable VXLAN address learning. More...
 
int rtnl_link_vxlan_disable_learning (struct rtnl_link *link)
 Disable VXLAN address learning. More...
 
int rtnl_link_vxlan_set_ageing (struct rtnl_link *link, uint32_t expiry)
 Set expiration timer value to use for VXLAN. More...
 
int rtnl_link_vxlan_get_ageing (struct rtnl_link *link, uint32_t *expiry)
 Get expiration timer value to use for VXLAN. More...
 
int rtnl_link_vxlan_set_limit (struct rtnl_link *link, uint32_t limit)
 Set maximum number of forwarding database entries to use for VXLAN. More...
 
int rtnl_link_vxlan_get_limit (struct rtnl_link *link, uint32_t *limit)
 Get maximum number of forwarding database entries to use for VXLAN. More...
 
int rtnl_link_vxlan_set_port_range (struct rtnl_link *link, struct ifla_vxlan_port_range *range)
 Set range of UDP port numbers to use for VXLAN. More...
 
int rtnl_link_vxlan_get_port_range (struct rtnl_link *link, struct ifla_vxlan_port_range *range)
 Get range of UDP port numbers to use for VXLAN. More...
 
int rtnl_link_vxlan_set_proxy (struct rtnl_link *link, uint8_t proxy)
 Set ARP proxy status to use for VXLAN. More...
 
int rtnl_link_vxlan_get_proxy (struct rtnl_link *link)
 Get ARP proxy status to use for VXLAN. More...
 
int rtnl_link_vxlan_enable_proxy (struct rtnl_link *link)
 Enable ARP proxy. More...
 
int rtnl_link_vxlan_disable_proxy (struct rtnl_link *link)
 Disable ARP proxy. More...
 
int rtnl_link_vxlan_set_rsc (struct rtnl_link *link, uint8_t rsc)
 Set Route Short Circuit status to use for VXLAN. More...
 
int rtnl_link_vxlan_get_rsc (struct rtnl_link *link)
 Get Route Short Circuit status to use for VXLAN. More...
 
int rtnl_link_vxlan_enable_rsc (struct rtnl_link *link)
 Enable Route Short Circuit. More...
 
int rtnl_link_vxlan_disable_rsc (struct rtnl_link *link)
 Disable Route Short Circuit. More...
 
int rtnl_link_vxlan_set_l2miss (struct rtnl_link *link, uint8_t miss)
 Set netlink LLADDR miss notification status to use for VXLAN. More...
 
int rtnl_link_vxlan_get_l2miss (struct rtnl_link *link)
 Get netlink LLADDR miss notification status to use for VXLAN. More...
 
int rtnl_link_vxlan_enable_l2miss (struct rtnl_link *link)
 Enable netlink LLADDR miss notifications. More...
 
int rtnl_link_vxlan_disable_l2miss (struct rtnl_link *link)
 Disable netlink LLADDR miss notifications. More...
 
int rtnl_link_vxlan_set_l3miss (struct rtnl_link *link, uint8_t miss)
 Set netlink IP ADDR miss notification status to use for VXLAN. More...
 
int rtnl_link_vxlan_get_l3miss (struct rtnl_link *link)
 Get netlink IP ADDR miss notification status to use for VXLAN. More...
 
int rtnl_link_vxlan_enable_l3miss (struct rtnl_link *link)
 Enable netlink IP DDR miss notifications. More...
 
int rtnl_link_vxlan_disable_l3miss (struct rtnl_link *link)
 Disable netlink IP ADDR miss notifications. More...
 

Detailed Description

Virtual eXtensible Local Area Network link module.

Link Type Name: "vxlan"

VXLAN Documentation (Netlink Routing Development Guide)

Function Documentation

struct rtnl_link* rtnl_link_vxlan_alloc ( void  )
read

Allocate link object of type VXLAN.

Returns
Allocated link object or NULL.

Definition at line 430 of file vxlan.c.

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

+ Here is the call graph for this function:

int rtnl_link_is_vxlan ( struct rtnl_link link)

Check if link is a VXLAN link.

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

Definition at line 452 of file vxlan.c.

int rtnl_link_vxlan_set_id ( struct rtnl_link link,
uint32_t  id 
)

Set VXLAN Network Identifier.

Parameters
linkLink object
idVXLAN network identifier (or VXLAN segment identifier)
Returns
0 on success or a negative error code

Definition at line 464 of file vxlan.c.

int rtnl_link_vxlan_get_id ( struct rtnl_link link,
uint32_t *  id 
)

Get VXLAN Network Identifier.

Parameters
linkLink object
idPointer to store network identifier
Returns
0 on success or a negative error code

Definition at line 486 of file vxlan.c.

int rtnl_link_vxlan_set_group ( struct rtnl_link link,
struct nl_addr *  addr 
)

Set VXLAN multicast IP address.

Parameters
linkLink object
addrMulticast IP address to join
Returns
0 on success or a negative error code

Definition at line 510 of file vxlan.c.

References nl_addr_get_binary_addr(), nl_addr_get_family(), and nl_addr_get_len().

+ Here is the call graph for this function:

int rtnl_link_vxlan_get_group ( struct rtnl_link link,
struct nl_addr **  addr 
)

Get VXLAN multicast IP address.

Parameters
linkLink object
addrPointer to store multicast IP address
Returns
0 on success or a negative error code

Definition at line 534 of file vxlan.c.

References nl_addr_build().

+ Here is the call graph for this function:

int rtnl_link_vxlan_set_link ( struct rtnl_link link,
uint32_t  index 
)

Set physical device to use for VXLAN.

Parameters
linkLink object
indexInterface index
Returns
0 on success or a negative error code

Definition at line 558 of file vxlan.c.

int rtnl_link_vxlan_get_link ( struct rtnl_link link,
uint32_t *  index 
)

Get physical device to use for VXLAN.

Parameters
linkLink object
indexPointer to store interface index
Returns
0 on success or a negative error code

Definition at line 577 of file vxlan.c.

int rtnl_link_vxlan_set_local ( struct rtnl_link link,
struct nl_addr *  addr 
)

Set source address to use for VXLAN.

Parameters
linkLink object
addrLocal address
Returns
0 on success or a negative error code

Definition at line 601 of file vxlan.c.

References nl_addr_get_binary_addr(), nl_addr_get_family(), and nl_addr_get_len().

+ Here is the call graph for this function:

int rtnl_link_vxlan_get_local ( struct rtnl_link link,
struct nl_addr **  addr 
)

Get source address to use for VXLAN.

Parameters
linkLink object
addrPointer to store local address
Returns
0 on success or a negative error code

Definition at line 625 of file vxlan.c.

References nl_addr_build().

+ Here is the call graph for this function:

int rtnl_link_vxlan_set_ttl ( struct rtnl_link link,
uint8_t  ttl 
)

Set IP TTL value to use for VXLAN.

Parameters
linkLink object
ttlTTL value
Returns
0 on success or a negative error code

Definition at line 649 of file vxlan.c.

int rtnl_link_vxlan_get_ttl ( struct rtnl_link link)

Get IP TTL value to use for VXLAN.

Parameters
linkLink object
Returns
TTL value on success or a negative error code

Definition at line 667 of file vxlan.c.

int rtnl_link_vxlan_set_tos ( struct rtnl_link link,
uint8_t  tos 
)

Set IP ToS value to use for VXLAN.

Parameters
linkLink object
tosToS value
Returns
0 on success or a negative error code

Definition at line 686 of file vxlan.c.

int rtnl_link_vxlan_get_tos ( struct rtnl_link link)

Get IP ToS value to use for VXLAN.

Parameters
linkLink object
Returns
ToS value on success or a negative error code

Definition at line 704 of file vxlan.c.

int rtnl_link_vxlan_set_learning ( struct rtnl_link link,
uint8_t  learning 
)

Set VXLAN learning status.

Parameters
linkLink object
learningLearning status value
Returns
0 on success or a negative error code

Definition at line 723 of file vxlan.c.

Referenced by rtnl_link_vxlan_disable_learning(), and rtnl_link_vxlan_enable_learning().

+ Here is the caller graph for this function:

int rtnl_link_vxlan_get_learning ( struct rtnl_link link)

Get VXLAN learning status.

Parameters
linkLink object
Returns
Learning status value on success or a negative error code

Definition at line 741 of file vxlan.c.

int rtnl_link_vxlan_enable_learning ( struct rtnl_link link)

Enable VXLAN address learning.

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

Definition at line 759 of file vxlan.c.

References rtnl_link_vxlan_set_learning().

+ Here is the call graph for this function:

int rtnl_link_vxlan_disable_learning ( struct rtnl_link link)

Disable VXLAN address learning.

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

Definition at line 770 of file vxlan.c.

References rtnl_link_vxlan_set_learning().

+ Here is the call graph for this function:

int rtnl_link_vxlan_set_ageing ( struct rtnl_link link,
uint32_t  expiry 
)

Set expiration timer value to use for VXLAN.

Parameters
linkLink object
expiryExpiration timer value
Returns
0 on success or a negative error code

Definition at line 782 of file vxlan.c.

int rtnl_link_vxlan_get_ageing ( struct rtnl_link link,
uint32_t *  expiry 
)

Get expiration timer value to use for VXLAN.

Parameters
linkLink object
expiryPointer to store expiration timer value
Returns
0 on success or a negative error code

Definition at line 801 of file vxlan.c.

int rtnl_link_vxlan_set_limit ( struct rtnl_link link,
uint32_t  limit 
)

Set maximum number of forwarding database entries to use for VXLAN.

Parameters
linkLink object
limitMaximum number
Returns
0 on success or a negative error code

Definition at line 825 of file vxlan.c.

int rtnl_link_vxlan_get_limit ( struct rtnl_link link,
uint32_t *  limit 
)

Get maximum number of forwarding database entries to use for VXLAN.

Parameters
linkLink object
limitPointer to store maximum number
Returns
0 on success or a negative error code

Definition at line 844 of file vxlan.c.

int rtnl_link_vxlan_set_port_range ( struct rtnl_link link,
struct ifla_vxlan_port_range *  range 
)

Set range of UDP port numbers to use for VXLAN.

Parameters
linkLink object
rangePort number range
Returns
0 on success or a negative error code

Definition at line 868 of file vxlan.c.

int rtnl_link_vxlan_get_port_range ( struct rtnl_link link,
struct ifla_vxlan_port_range *  range 
)

Get range of UDP port numbers to use for VXLAN.

Parameters
linkLink object
rangePointer to store port range
Returns
0 on success or a negative error code

Definition at line 891 of file vxlan.c.

int rtnl_link_vxlan_set_proxy ( struct rtnl_link link,
uint8_t  proxy 
)

Set ARP proxy status to use for VXLAN.

Parameters
linkLink object
proxyStatus value
Returns
0 on success or a negative error code

Definition at line 916 of file vxlan.c.

Referenced by rtnl_link_vxlan_disable_proxy(), and rtnl_link_vxlan_enable_proxy().

+ Here is the caller graph for this function:

int rtnl_link_vxlan_get_proxy ( struct rtnl_link link)

Get ARP proxy status to use for VXLAN.

Parameters
linkLink object
Returns
Status value on success or a negative error code

Definition at line 934 of file vxlan.c.

int rtnl_link_vxlan_enable_proxy ( struct rtnl_link link)

Enable ARP proxy.

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

Definition at line 952 of file vxlan.c.

References rtnl_link_vxlan_set_proxy().

+ Here is the call graph for this function:

int rtnl_link_vxlan_disable_proxy ( struct rtnl_link link)

Disable ARP proxy.

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

Definition at line 963 of file vxlan.c.

References rtnl_link_vxlan_set_proxy().

+ Here is the call graph for this function:

int rtnl_link_vxlan_set_rsc ( struct rtnl_link link,
uint8_t  rsc 
)

Set Route Short Circuit status to use for VXLAN.

Parameters
linkLink object
rscStatus value
Returns
0 on success or a negative error code

Definition at line 975 of file vxlan.c.

Referenced by rtnl_link_vxlan_disable_rsc(), and rtnl_link_vxlan_enable_rsc().

+ Here is the caller graph for this function:

int rtnl_link_vxlan_get_rsc ( struct rtnl_link link)

Get Route Short Circuit status to use for VXLAN.

Parameters
linkLink object
Returns
Status value on success or a negative error code

Definition at line 993 of file vxlan.c.

int rtnl_link_vxlan_enable_rsc ( struct rtnl_link link)

Enable Route Short Circuit.

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

Definition at line 1011 of file vxlan.c.

References rtnl_link_vxlan_set_rsc().

+ Here is the call graph for this function:

int rtnl_link_vxlan_disable_rsc ( struct rtnl_link link)

Disable Route Short Circuit.

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

Definition at line 1022 of file vxlan.c.

References rtnl_link_vxlan_set_rsc().

+ Here is the call graph for this function:

int rtnl_link_vxlan_set_l2miss ( struct rtnl_link link,
uint8_t  miss 
)

Set netlink LLADDR miss notification status to use for VXLAN.

Parameters
linkLink object
missStatus value
Returns
0 on success or a negative error code

Definition at line 1034 of file vxlan.c.

Referenced by rtnl_link_vxlan_disable_l2miss(), and rtnl_link_vxlan_enable_l2miss().

+ Here is the caller graph for this function:

int rtnl_link_vxlan_get_l2miss ( struct rtnl_link link)

Get netlink LLADDR miss notification status to use for VXLAN.

Parameters
linkLink object
Returns
Status value on success or a negative error code

Definition at line 1052 of file vxlan.c.

int rtnl_link_vxlan_enable_l2miss ( struct rtnl_link link)

Enable netlink LLADDR miss notifications.

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

Definition at line 1070 of file vxlan.c.

References rtnl_link_vxlan_set_l2miss().

+ Here is the call graph for this function:

int rtnl_link_vxlan_disable_l2miss ( struct rtnl_link link)

Disable netlink LLADDR miss notifications.

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

Definition at line 1081 of file vxlan.c.

References rtnl_link_vxlan_set_l2miss().

+ Here is the call graph for this function:

int rtnl_link_vxlan_set_l3miss ( struct rtnl_link link,
uint8_t  miss 
)

Set netlink IP ADDR miss notification status to use for VXLAN.

Parameters
linkLink object
missStatus value
Returns
0 on success or a negative error code

Definition at line 1093 of file vxlan.c.

Referenced by rtnl_link_vxlan_disable_l3miss(), and rtnl_link_vxlan_enable_l3miss().

+ Here is the caller graph for this function:

int rtnl_link_vxlan_get_l3miss ( struct rtnl_link link)

Get netlink IP ADDR miss notification status to use for VXLAN.

Parameters
linkLink object
Returns
Status value on success or a negative error code

Definition at line 1111 of file vxlan.c.

int rtnl_link_vxlan_enable_l3miss ( struct rtnl_link link)

Enable netlink IP DDR miss notifications.

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

Definition at line 1129 of file vxlan.c.

References rtnl_link_vxlan_set_l3miss().

+ Here is the call graph for this function:

int rtnl_link_vxlan_disable_l3miss ( struct rtnl_link link)

Disable netlink IP ADDR miss notifications.

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

Definition at line 1140 of file vxlan.c.

References rtnl_link_vxlan_set_l3miss().

+ Here is the call graph for this function: