]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/network/netdev/fou-tunnel.h
pkgconfig: define variables relative to ${prefix}/${rootprefix}/${sysconfdir}
[thirdparty/systemd.git] / src / network / netdev / fou-tunnel.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 #if HAVE_LINUX_FOU_H
5 #include <linux/fou.h>
6 #endif
7
8 #include "in-addr-util.h"
9 #include "missing.h"
10 #include "netdev/netdev.h"
11
12 typedef enum FooOverUDPEncapType {
13 NETDEV_FOO_OVER_UDP_ENCAP_UNSPEC = FOU_ENCAP_UNSPEC,
14 NETDEV_FOO_OVER_UDP_ENCAP_DIRECT = FOU_ENCAP_DIRECT,
15 NETDEV_FOO_OVER_UDP_ENCAP_GUE = FOU_ENCAP_GUE,
16 _NETDEV_FOO_OVER_UDP_ENCAP_MAX,
17 _NETDEV_FOO_OVER_UDP_ENCAP_INVALID = -1,
18 } FooOverUDPEncapType;
19
20 typedef struct FouTunnel {
21 NetDev meta;
22
23 uint8_t fou_protocol;
24
25 uint16_t port;
26
27 FooOverUDPEncapType fou_encap_type;
28 } FouTunnel;
29
30 DEFINE_NETDEV_CAST(FOU, FouTunnel);
31 extern const NetDevVTable foutnl_vtable;
32
33 const char *fou_encap_type_to_string(FooOverUDPEncapType d) _const_;
34 FooOverUDPEncapType fou_encap_type_from_string(const char *d) _pure_;
35
36 CONFIG_PARSER_PROTOTYPE(config_parse_fou_encap_type);