libnl: /data/src/libnl3/include/netlink/route/link/vxlan.h Source File

libnl 3.7.0

vxlan.h
1 /* SPDX-License-Identifier: LGPL-2.1-only */
2 /*
3 * Copyright (c) 2013 Yasunobu Chiba <yasu@dsl.gr.jp>
4 */
5
6 #ifndef NETLINK_LINK_VXLAN_H_
7 #define NETLINK_LINK_VXLAN_H_
8
9 #include <netlink/netlink.h>
10 #include <netlink/route/link.h>
11
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15
16 struct ifla_vxlan_port_range;
17
18 #define VXLAN_ID_MAX 16777215
19
20 enum {
21 RTNL_LINK_VXLAN_F_GBP = 1 << 0,
22 #define RTNL_LINK_VXLAN_F_GBP RTNL_LINK_VXLAN_F_GBP
23 RTNL_LINK_VXLAN_F_GPE = 1 << 1,
24 #define RTNL_LINK_VXLAN_F_GPE RTNL_LINK_VXLAN_F_GPE
25 RTNL_LINK_VXLAN_F_REMCSUM_NOPARTIAL = 1 << 2,
26 #define RTNL_LINK_VXLAN_F_REMCSUM_NOPARTIAL RTNL_LINK_VXLAN_F_REMCSUM_NOPARTIAL
27 };
28
29 extern struct rtnl_link *rtnl_link_vxlan_alloc(void);
30
31 extern int rtnl_link_is_vxlan(struct rtnl_link *);
32
33 extern int rtnl_link_vxlan_set_id(struct rtnl_link *, uint32_t);
34 extern int rtnl_link_vxlan_get_id(struct rtnl_link *, uint32_t *);
35
36 extern int rtnl_link_vxlan_set_group(struct rtnl_link *, struct nl_addr *);
37 extern int rtnl_link_vxlan_get_group(struct rtnl_link *, struct nl_addr **);
38
39 extern int rtnl_link_vxlan_set_link(struct rtnl_link *, uint32_t);
40 extern int rtnl_link_vxlan_get_link(struct rtnl_link *, uint32_t *);
41
42 extern int rtnl_link_vxlan_set_local(struct rtnl_link *, struct nl_addr *);
43 extern int rtnl_link_vxlan_get_local(struct rtnl_link *, struct nl_addr **);
44
45 extern int rtnl_link_vxlan_set_ttl(struct rtnl_link *, uint8_t);
46 extern int rtnl_link_vxlan_get_ttl(struct rtnl_link *);
47
48 extern int rtnl_link_vxlan_set_tos(struct rtnl_link *, uint8_t);
49 extern int rtnl_link_vxlan_get_tos(struct rtnl_link *);
50
51 extern int rtnl_link_vxlan_set_learning(struct rtnl_link *, uint8_t);
52 extern int rtnl_link_vxlan_get_learning(struct rtnl_link *);
53 extern int rtnl_link_vxlan_enable_learning(struct rtnl_link *);
54 extern int rtnl_link_vxlan_disable_learning(struct rtnl_link *);
55
56 extern int rtnl_link_vxlan_set_ageing(struct rtnl_link *, uint32_t);
57 extern int rtnl_link_vxlan_get_ageing(struct rtnl_link *, uint32_t *);
58
59 extern int rtnl_link_vxlan_set_limit(struct rtnl_link *, uint32_t);
60 extern int rtnl_link_vxlan_get_limit(struct rtnl_link *, uint32_t *);
61
62 extern int rtnl_link_vxlan_set_port_range(struct rtnl_link *,
63 struct ifla_vxlan_port_range *);
64 extern int rtnl_link_vxlan_get_port_range(struct rtnl_link *,
65 struct ifla_vxlan_port_range *);
66
67 extern int rtnl_link_vxlan_set_proxy(struct rtnl_link *, uint8_t);
68 extern int rtnl_link_vxlan_get_proxy(struct rtnl_link *);
69 extern int rtnl_link_vxlan_enable_proxy(struct rtnl_link *);
70 extern int rtnl_link_vxlan_disable_proxy(struct rtnl_link *);
71
72 extern int rtnl_link_vxlan_set_rsc(struct rtnl_link *, uint8_t);
73 extern int rtnl_link_vxlan_get_rsc(struct rtnl_link *);
74 extern int rtnl_link_vxlan_enable_rsc(struct rtnl_link *);
75 extern int rtnl_link_vxlan_disable_rsc(struct rtnl_link *);
76
77 extern int rtnl_link_vxlan_set_l2miss(struct rtnl_link *, uint8_t);
78 extern int rtnl_link_vxlan_get_l2miss(struct rtnl_link *);
79 extern int rtnl_link_vxlan_enable_l2miss(struct rtnl_link *);
80 extern int rtnl_link_vxlan_disable_l2miss(struct rtnl_link *);
81
82 extern int rtnl_link_vxlan_set_l3miss(struct rtnl_link *, uint8_t);
83 extern int rtnl_link_vxlan_get_l3miss(struct rtnl_link *);
84 extern int rtnl_link_vxlan_enable_l3miss(struct rtnl_link *);
85 extern int rtnl_link_vxlan_disable_l3miss(struct rtnl_link *);
86
87 extern int rtnl_link_vxlan_set_port(struct rtnl_link *, uint32_t);
88 extern int rtnl_link_vxlan_get_port(struct rtnl_link *, uint32_t *);
89
90 extern int rtnl_link_vxlan_set_udp_csum(struct rtnl_link *, uint8_t);
91 extern int rtnl_link_vxlan_get_udp_csum(struct rtnl_link *);
92
93 extern int rtnl_link_vxlan_set_udp_zero_csum6_tx(struct rtnl_link *, uint8_t);
94 extern int rtnl_link_vxlan_get_udp_zero_csum6_tx(struct rtnl_link *);
95
96 extern int rtnl_link_vxlan_set_udp_zero_csum6_rx(struct rtnl_link *, uint8_t);
97 extern int rtnl_link_vxlan_get_udp_zero_csum6_rx(struct rtnl_link *);
98
99 extern int rtnl_link_vxlan_set_remcsum_tx(struct rtnl_link *, uint8_t);
100 extern int rtnl_link_vxlan_get_remcsum_tx(struct rtnl_link *);
101
102 extern int rtnl_link_vxlan_set_remcsum_rx(struct rtnl_link *, uint8_t);
103 extern int rtnl_link_vxlan_get_remcsum_rx(struct rtnl_link *);
104
105 extern int rtnl_link_vxlan_set_flags(struct rtnl_link *, uint32_t flags, int enable);
106 extern int rtnl_link_vxlan_get_flags(struct rtnl_link *, uint32_t *out_flags);
107
108 extern int rtnl_link_vxlan_set_collect_metadata(struct rtnl_link *, uint8_t);
109 extern int rtnl_link_vxlan_get_collect_metadata(struct rtnl_link *);
110
111 extern int rtnl_link_vxlan_set_label(struct rtnl_link *, uint32_t);
112 extern int rtnl_link_vxlan_get_label(struct rtnl_link *, uint32_t *);
113
114 #ifdef __cplusplus
115 }
116 #endif
117
118 #endif
rtnl_link_vxlan_get_tos
int rtnl_link_vxlan_get_tos(struct rtnl_link *)
Get IP ToS value to use for VXLAN.
Definition: vxlan.c:977
rtnl_link_vxlan_get_rsc
int rtnl_link_vxlan_get_rsc(struct rtnl_link *)
Get Route Short Circuit status to use for VXLAN.
Definition: vxlan.c:1266
rtnl_link_vxlan_disable_learning
int rtnl_link_vxlan_disable_learning(struct rtnl_link *)
Disable VXLAN address learning.
Definition: vxlan.c:1043
rtnl_link_vxlan_get_port_range
int rtnl_link_vxlan_get_port_range(struct rtnl_link *, struct ifla_vxlan_port_range *)
Get range of UDP port numbers to use for VXLAN.
Definition: vxlan.c:1164
rtnl_link_vxlan_set_udp_zero_csum6_rx
int rtnl_link_vxlan_set_udp_zero_csum6_rx(struct rtnl_link *, uint8_t)
Set skip UDP checksum received over IPv6 status to use for VXLAN.
Definition: vxlan.c:1542
rtnl_link_vxlan_get_ttl
int rtnl_link_vxlan_get_ttl(struct rtnl_link *)
Get IP TTL value to use for VXLAN.
Definition: vxlan.c:940
rtnl_link_vxlan_get_learning
int rtnl_link_vxlan_get_learning(struct rtnl_link *)
Get VXLAN learning status.
Definition: vxlan.c:1014
rtnl_link_vxlan_set_learning
int rtnl_link_vxlan_set_learning(struct rtnl_link *, uint8_t)
Set VXLAN learning status.
Definition: vxlan.c:996
rtnl_link_vxlan_get_label
int rtnl_link_vxlan_get_label(struct rtnl_link *, uint32_t *)
Get flow label to use for VXLAN.
Definition: vxlan.c:1709
rtnl_link_vxlan_set_tos
int rtnl_link_vxlan_set_tos(struct rtnl_link *, uint8_t)
Set IP ToS value to use for VXLAN.
Definition: vxlan.c:959
rtnl_link_vxlan_set_port
int rtnl_link_vxlan_set_port(struct rtnl_link *, uint32_t)
Set UDP destination port to use for VXLAN.
Definition: vxlan.c:1425
rtnl_link_vxlan_get_proxy
int rtnl_link_vxlan_get_proxy(struct rtnl_link *)
Get ARP proxy status to use for VXLAN.
Definition: vxlan.c:1207
rtnl_link_vxlan_enable_rsc
int rtnl_link_vxlan_enable_rsc(struct rtnl_link *)
Enable Route Short Circuit.
Definition: vxlan.c:1284
rtnl_link_vxlan_set_group
int rtnl_link_vxlan_set_group(struct rtnl_link *, struct nl_addr *)
Set VXLAN multicast IP address.
Definition: vxlan.c:765
rtnl_link_vxlan_enable_proxy
int rtnl_link_vxlan_enable_proxy(struct rtnl_link *)
Enable ARP proxy.
Definition: vxlan.c:1225
rtnl_link_vxlan_disable_l3miss
int rtnl_link_vxlan_disable_l3miss(struct rtnl_link *)
Disable netlink IP ADDR miss notifications.
Definition: vxlan.c:1413
rtnl_link_vxlan_set_local
int rtnl_link_vxlan_set_local(struct rtnl_link *, struct nl_addr *)
Set source address to use for VXLAN.
Definition: vxlan.c:865
rtnl_link_vxlan_set_remcsum_rx
int rtnl_link_vxlan_set_remcsum_rx(struct rtnl_link *, uint8_t)
Set remote offload receive checksum status to use for VXLAN.
Definition: vxlan.c:1616
rtnl_link_vxlan_set_flags
int rtnl_link_vxlan_set_flags(struct rtnl_link *, uint32_t flags, int enable)
Set VXLAN flags RTNL_LINK_VXLAN_F_*.
Definition: vxlan.c:1734
rtnl_link_vxlan_set_udp_csum
int rtnl_link_vxlan_set_udp_csum(struct rtnl_link *, uint8_t)
Set UDP checksum status to use for VXLAN.
Definition: vxlan.c:1468
rtnl_link_vxlan_get_udp_zero_csum6_rx
int rtnl_link_vxlan_get_udp_zero_csum6_rx(struct rtnl_link *)
Get skip UDP checksum received over IPv6 status to use for VXLAN.
Definition: vxlan.c:1560
rtnl_link_vxlan_set_link
int rtnl_link_vxlan_set_link(struct rtnl_link *, uint32_t)
Set physical device to use for VXLAN.
Definition: vxlan.c:822
rtnl_link_vxlan_enable_l2miss
int rtnl_link_vxlan_enable_l2miss(struct rtnl_link *)
Enable netlink LLADDR miss notifications.
Definition: vxlan.c:1343
rtnl_link_vxlan_get_flags
int rtnl_link_vxlan_get_flags(struct rtnl_link *, uint32_t *out_flags)
Get VXLAN flags RTNL_LINK_VXLAN_F_*.
Definition: vxlan.c:1758
rtnl_link_vxlan_get_remcsum_rx
int rtnl_link_vxlan_get_remcsum_rx(struct rtnl_link *)
Get remote offload receive checksum status to use for VXLAN.
Definition: vxlan.c:1634
rtnl_link_vxlan_get_group
int rtnl_link_vxlan_get_group(struct rtnl_link *, struct nl_addr **)
Get VXLAN multicast IP address.
Definition: vxlan.c:796
rtnl_link_vxlan_set_port_range
int rtnl_link_vxlan_set_port_range(struct rtnl_link *, struct ifla_vxlan_port_range *)
Set range of UDP port numbers to use for VXLAN.
Definition: vxlan.c:1141
rtnl_link_vxlan_set_collect_metadata
int rtnl_link_vxlan_set_collect_metadata(struct rtnl_link *, uint8_t)
Set collect metadata status to use for VXLAN.
Definition: vxlan.c:1653
rtnl_link_vxlan_get_l2miss
int rtnl_link_vxlan_get_l2miss(struct rtnl_link *)
Get netlink LLADDR miss notification status to use for VXLAN.
Definition: vxlan.c:1325
rtnl_link_vxlan_set_id
int rtnl_link_vxlan_set_id(struct rtnl_link *, uint32_t)
Set VXLAN Network Identifier.
Definition: vxlan.c:719
rtnl_link_vxlan_alloc
struct rtnl_link * rtnl_link_vxlan_alloc(void)
Allocate link object of type VXLAN.
Definition: vxlan.c:686
rtnl_link_vxlan_get_collect_metadata
int rtnl_link_vxlan_get_collect_metadata(struct rtnl_link *)
Get collect metadata status to use for VXLAN.
Definition: vxlan.c:1671
rtnl_link_vxlan_disable_l2miss
int rtnl_link_vxlan_disable_l2miss(struct rtnl_link *)
Disable netlink LLADDR miss notifications.
Definition: vxlan.c:1354
rtnl_link_vxlan_set_limit
int rtnl_link_vxlan_set_limit(struct rtnl_link *, uint32_t)
Set maximum number of forwarding database entries to use for VXLAN.
Definition: vxlan.c:1098
rtnl_link_vxlan_set_label
int rtnl_link_vxlan_set_label(struct rtnl_link *, uint32_t)
Set flow label to use for VXLAN.
Definition: vxlan.c:1690
rtnl_link_is_vxlan
int rtnl_link_is_vxlan(struct rtnl_link *)
Check if link is a VXLAN link.
Definition: vxlan.c:707
rtnl_link_vxlan_set_remcsum_tx
int rtnl_link_vxlan_set_remcsum_tx(struct rtnl_link *, uint8_t)
Set remote offload transmit checksum status to use for VXLAN.
Definition: vxlan.c:1579
rtnl_link_vxlan_get_local
int rtnl_link_vxlan_get_local(struct rtnl_link *, struct nl_addr **)
Get source address to use for VXLAN.
Definition: vxlan.c:896
rtnl_link_vxlan_get_link
int rtnl_link_vxlan_get_link(struct rtnl_link *, uint32_t *)
Get physical device to use for VXLAN.
Definition: vxlan.c:841
rtnl_link_vxlan_set_proxy
int rtnl_link_vxlan_set_proxy(struct rtnl_link *, uint8_t)
Set ARP proxy status to use for VXLAN.
Definition: vxlan.c:1189
rtnl_link_vxlan_enable_learning
int rtnl_link_vxlan_enable_learning(struct rtnl_link *)
Enable VXLAN address learning.
Definition: vxlan.c:1032
rtnl_link_vxlan_set_ttl
int rtnl_link_vxlan_set_ttl(struct rtnl_link *, uint8_t)
Set IP TTL value to use for VXLAN.
Definition: vxlan.c:922
rtnl_link_vxlan_get_udp_zero_csum6_tx
int rtnl_link_vxlan_get_udp_zero_csum6_tx(struct rtnl_link *)
Get skip UDP checksum transmitted over IPv6 status to use for VXLAN.
Definition: vxlan.c:1523
rtnl_link_vxlan_get_l3miss
int rtnl_link_vxlan_get_l3miss(struct rtnl_link *)
Get netlink IP ADDR miss notification status to use for VXLAN.
Definition: vxlan.c:1384
rtnl_link_vxlan_get_remcsum_tx
int rtnl_link_vxlan_get_remcsum_tx(struct rtnl_link *)
Get remote offload transmit checksum status to use for VXLAN.
Definition: vxlan.c:1597
rtnl_link_vxlan_get_port
int rtnl_link_vxlan_get_port(struct rtnl_link *, uint32_t *)
Get UDP destination port to use for VXLAN.
Definition: vxlan.c:1444
rtnl_link_vxlan_disable_proxy
int rtnl_link_vxlan_disable_proxy(struct rtnl_link *)
Disable ARP proxy.
Definition: vxlan.c:1236
rtnl_link_vxlan_set_l2miss
int rtnl_link_vxlan_set_l2miss(struct rtnl_link *, uint8_t)
Set netlink LLADDR miss notification status to use for VXLAN.
Definition: vxlan.c:1307
rtnl_link_vxlan_set_ageing
int rtnl_link_vxlan_set_ageing(struct rtnl_link *, uint32_t)
Set expiration timer value to use for VXLAN.
Definition: vxlan.c:1055
rtnl_link_vxlan_get_id
int rtnl_link_vxlan_get_id(struct rtnl_link *, uint32_t *)
Get VXLAN Network Identifier.
Definition: vxlan.c:741
rtnl_link_vxlan_disable_rsc
int rtnl_link_vxlan_disable_rsc(struct rtnl_link *)
Disable Route Short Circuit.
Definition: vxlan.c:1295
rtnl_link_vxlan_set_rsc
int rtnl_link_vxlan_set_rsc(struct rtnl_link *, uint8_t)
Set Route Short Circuit status to use for VXLAN.
Definition: vxlan.c:1248
rtnl_link_vxlan_set_l3miss
int rtnl_link_vxlan_set_l3miss(struct rtnl_link *, uint8_t)
Set netlink IP ADDR miss notification status to use for VXLAN.
Definition: vxlan.c:1366
rtnl_link_vxlan_set_udp_zero_csum6_tx
int rtnl_link_vxlan_set_udp_zero_csum6_tx(struct rtnl_link *, uint8_t)
Set skip UDP checksum transmitted over IPv6 status to use for VXLAN.
Definition: vxlan.c:1505
rtnl_link_vxlan_get_udp_csum
int rtnl_link_vxlan_get_udp_csum(struct rtnl_link *)
Get UDP checksum status to use for VXLAN.
Definition: vxlan.c:1486
rtnl_link_vxlan_enable_l3miss
int rtnl_link_vxlan_enable_l3miss(struct rtnl_link *)
Enable netlink IP ADDR miss notifications.
Definition: vxlan.c:1402
rtnl_link_vxlan_get_limit
int rtnl_link_vxlan_get_limit(struct rtnl_link *, uint32_t *)
Get maximum number of forwarding database entries to use for VXLAN.
Definition: vxlan.c:1117
rtnl_link_vxlan_get_ageing
int rtnl_link_vxlan_get_ageing(struct rtnl_link *, uint32_t *)
Get expiration timer value to use for VXLAN.
Definition: vxlan.c:1074
rtnl_link
Link object.