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

libnl 3.7.0

geneve.h
1 /* SPDX-License-Identifier: LGPL-2.1-only */
2
3 #ifndef NETLINK_LINK_GENEVE_H_
4 #define NETLINK_LINK_GENEVE_H_
5
6 #include <netlink/netlink.h>
7 #include <netlink/route/link.h>
8
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12
13 #define RTNL_GENEVE_ID_MAX 16777215
14
15 #define RTNL_LINK_GENEVE_F_COLLECT_METADATA (1<<0)
16
17 extern struct rtnl_link *rtnl_link_geneve_alloc(void);
18 extern int rtnl_link_is_geneve(struct rtnl_link *);
19
20 extern int rtnl_link_geneve_set_id(struct rtnl_link *, uint32_t);
21 extern int rtnl_link_geneve_get_id(struct rtnl_link *, uint32_t *);
22
23 extern int rtnl_link_geneve_set_remote(struct rtnl_link *, struct nl_addr *);
24 extern int rtnl_link_geneve_get_remote(struct rtnl_link *, struct nl_addr **);
25
26 extern int rtnl_link_geneve_set_ttl(struct rtnl_link *, uint8_t);
27 extern int rtnl_link_geneve_get_ttl(struct rtnl_link *);
28
29 extern int rtnl_link_geneve_set_tos(struct rtnl_link *, uint8_t);
30 extern int rtnl_link_geneve_get_tos(struct rtnl_link *);
31
32 extern int rtnl_link_geneve_set_port(struct rtnl_link *, uint32_t);
33 extern int rtnl_link_geneve_get_port(struct rtnl_link *, uint32_t *);
34
35 extern int rtnl_link_geneve_set_label(struct rtnl_link *, uint32_t);
36 extern int rtnl_link_geneve_get_label(struct rtnl_link *, uint32_t *);
37
38 extern int rtnl_link_geneve_set_udp_csum(struct rtnl_link *, uint8_t);
39 extern int rtnl_link_geneve_get_udp_csum(struct rtnl_link *);
40
41 extern int rtnl_link_geneve_set_udp_zero_csum6_tx(struct rtnl_link *, uint8_t);
42 extern int rtnl_link_geneve_get_udp_zero_csum6_tx(struct rtnl_link *);
43
44 extern int rtnl_link_geneve_set_udp_zero_csum6_rx(struct rtnl_link *, uint8_t);
45 extern int rtnl_link_geneve_get_udp_zero_csum6_rx(struct rtnl_link *);
46
47 extern int rtnl_link_geneve_set_flags(struct rtnl_link *, uint8_t flags, int enable);
48 extern int rtnl_link_geneve_get_flags(struct rtnl_link *, uint8_t *flags);
49
50 #ifdef __cplusplus
51 }
52 #endif
53
54 #endif
rtnl_link_geneve_get_remote
int rtnl_link_geneve_get_remote(struct rtnl_link *, struct nl_addr **)
Get Geneve unicast destination IP address.
Definition: geneve.c:458
rtnl_link_geneve_get_port
int rtnl_link_geneve_get_port(struct rtnl_link *, uint32_t *)
Get UDP destination port to use for Geneve.
Definition: geneve.c:578
rtnl_link_geneve_set_flags
int rtnl_link_geneve_set_flags(struct rtnl_link *, uint8_t flags, int enable)
Set Geneve flags.
Definition: geneve.c:756
rtnl_link_geneve_alloc
struct rtnl_link * rtnl_link_geneve_alloc(void)
Allocate link object of type Geneve.
Definition: geneve.c:348
rtnl_link_geneve_set_tos
int rtnl_link_geneve_set_tos(struct rtnl_link *, uint8_t)
Set IP ToS value to use for Geneve.
Definition: geneve.c:521
rtnl_link_geneve_get_udp_zero_csum6_tx
int rtnl_link_geneve_get_udp_zero_csum6_tx(struct rtnl_link *)
Get skip UDP checksum transmitted over IPv6 status to use for Geneve.
Definition: geneve.c:699
rtnl_link_geneve_get_udp_zero_csum6_rx
int rtnl_link_geneve_get_udp_zero_csum6_rx(struct rtnl_link *)
Get skip UDP checksum received over IPv6 status to use for Geneve.
Definition: geneve.c:736
rtnl_link_geneve_set_remote
int rtnl_link_geneve_set_remote(struct rtnl_link *, struct nl_addr *)
Set Geneve unicast destination IP address.
Definition: geneve.c:427
rtnl_link_geneve_get_tos
int rtnl_link_geneve_get_tos(struct rtnl_link *)
Get IP ToS value to use for Geneve.
Definition: geneve.c:539
rtnl_link_geneve_set_udp_zero_csum6_tx
int rtnl_link_geneve_set_udp_zero_csum6_tx(struct rtnl_link *, uint8_t)
Set skip UDP checksum transmitted over IPv6 status to use for Geneve.
Definition: geneve.c:681
rtnl_link_geneve_get_flags
int rtnl_link_geneve_get_flags(struct rtnl_link *, uint8_t *flags)
Get Geneve flags.
Definition: geneve.c:780
rtnl_link_geneve_set_ttl
int rtnl_link_geneve_set_ttl(struct rtnl_link *, uint8_t)
Set IP TTL value to use for Geneve.
Definition: geneve.c:484
rtnl_link_geneve_set_udp_zero_csum6_rx
int rtnl_link_geneve_set_udp_zero_csum6_rx(struct rtnl_link *, uint8_t)
Set skip UDP checksum received over IPv6 status to use for Geneve.
Definition: geneve.c:718
rtnl_link_geneve_set_label
int rtnl_link_geneve_set_label(struct rtnl_link *, uint32_t)
Set flow label to use for Geneve.
Definition: geneve.c:602
rtnl_link_geneve_get_label
int rtnl_link_geneve_get_label(struct rtnl_link *, uint32_t *)
Get flow label to use for Geneve.
Definition: geneve.c:621
rtnl_link_geneve_set_udp_csum
int rtnl_link_geneve_set_udp_csum(struct rtnl_link *, uint8_t)
Set UDP checksum status to use for Geneve.
Definition: geneve.c:644
rtnl_link_geneve_get_udp_csum
int rtnl_link_geneve_get_udp_csum(struct rtnl_link *)
Get UDP checksum status to use for Geneve.
Definition: geneve.c:662
rtnl_link_geneve_set_port
int rtnl_link_geneve_set_port(struct rtnl_link *, uint32_t)
Set UDP destination port to use for Geneve.
Definition: geneve.c:559
rtnl_link_geneve_set_id
int rtnl_link_geneve_set_id(struct rtnl_link *, uint32_t)
Set Geneve Network Indentifier.
Definition: geneve.c:381
rtnl_link_geneve_get_ttl
int rtnl_link_geneve_get_ttl(struct rtnl_link *)
Get IP TTL value to use for Geneve.
Definition: geneve.c:502
rtnl_link_geneve_get_id
int rtnl_link_geneve_get_id(struct rtnl_link *, uint32_t *)
Get Geneve Network Identifier.
Definition: geneve.c:403
rtnl_link_is_geneve
int rtnl_link_is_geneve(struct rtnl_link *)
Check if link is a Geneve link.
Definition: geneve.c:369
rtnl_link
Link object.