libnl 3.5.0

geneve.h
1 /*
2 * netlink/route/link/geneve.h GENEVE interface
3 * This library is free software; you can redistribute it and/or
4 * modify it under the terms of the GNU Lesser General Public
5 * License as published by the Free Software Foundation version 2.1
6 * of the License.
7 */
8
9 #ifndef NETLINK_LINK_GENEVE_H_
10 #define NETLINK_LINK_GENEVE_H_
11
12 #include <netlink/netlink.h>
13 #include <netlink/route/link.h>
14
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18
19 #define RTNL_GENEVE_ID_MAX 16777215
20
21 #define RTNL_LINK_GENEVE_F_COLLECT_METADATA (1<<0)
22
23 extern struct rtnl_link *rtnl_link_geneve_alloc(void);
24 extern int rtnl_link_is_geneve(struct rtnl_link *);
25
26 extern int rtnl_link_geneve_set_id(struct rtnl_link *, uint32_t);
27 extern int rtnl_link_geneve_get_id(struct rtnl_link *, uint32_t *);
28
29 extern int rtnl_link_geneve_set_remote(struct rtnl_link *, struct nl_addr *);
30 extern int rtnl_link_geneve_get_remote(struct rtnl_link *, struct nl_addr **);
31
32 extern int rtnl_link_geneve_set_ttl(struct rtnl_link *, uint8_t);
33 extern int rtnl_link_geneve_get_ttl(struct rtnl_link *);
34
35 extern int rtnl_link_geneve_set_tos(struct rtnl_link *, uint8_t);
36 extern int rtnl_link_geneve_get_tos(struct rtnl_link *);
37
38 extern int rtnl_link_geneve_set_port(struct rtnl_link *, uint32_t);
39 extern int rtnl_link_geneve_get_port(struct rtnl_link *, uint32_t *);
40
41 extern int rtnl_link_geneve_set_label(struct rtnl_link *, uint32_t);
42 extern int rtnl_link_geneve_get_label(struct rtnl_link *, uint32_t *);
43
44 extern int rtnl_link_geneve_set_udp_csum(struct rtnl_link *, uint8_t);
45 extern int rtnl_link_geneve_get_udp_csum(struct rtnl_link *);
46
47 extern int rtnl_link_geneve_set_udp_zero_csum6_tx(struct rtnl_link *, uint8_t);
48 extern int rtnl_link_geneve_get_udp_zero_csum6_tx(struct rtnl_link *);
49
50 extern int rtnl_link_geneve_set_udp_zero_csum6_rx(struct rtnl_link *, uint8_t);
51 extern int rtnl_link_geneve_get_udp_zero_csum6_rx(struct rtnl_link *);
52
53 extern int rtnl_link_geneve_set_flags(struct rtnl_link *, uint8_t flags, int enable);
54 extern int rtnl_link_geneve_get_flags(struct rtnl_link *, uint8_t *flags);
55
56 #ifdef __cplusplus
57 }
58 #endif
59
60 #endif
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:568
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:765
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:745
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:530
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:727
rtnl_link_geneve_get_id
int rtnl_link_geneve_get_id(struct rtnl_link *, uint32_t *)
Get Geneve Network Identifier.
Definition: geneve.c:412
rtnl_link
Link object.
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:511
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:587
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:630
rtnl_link_geneve_alloc
struct rtnl_link * rtnl_link_geneve_alloc(void)
Allocate link object of type Geneve.
Definition: geneve.c:356
rtnl_link_geneve_set_id
int rtnl_link_geneve_set_id(struct rtnl_link *, uint32_t)
Set Geneve Network Indentifier.
Definition: geneve.c:390
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:467
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:690
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:671
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:708
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:548
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:611
rtnl_link_is_geneve
int rtnl_link_is_geneve(struct rtnl_link *)
Check if link is a Geneve link.
Definition: geneve.c:378
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:653
rtnl_link_geneve_get_flags
int rtnl_link_geneve_get_flags(struct rtnl_link *, uint8_t *flags)
Get Geneve flags.
Definition: geneve.c:789
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:493
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:436