summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFernando Fernandez Mancera <fmancera@suse.de>2025-08-21 11:17:18 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2025-08-28 00:09:54 +0200
commit239fbdb8979dd4f322af187dc609f292a36c3ac6 (patch)
treedd94694a81fd5a9d42c79e65fceb9633c9248c45 /include
parente3b58fe8fcd876ceccef60f7784bb90267f36085 (diff)
tunnel: add support to geneve options
In addition, modifies the netlink parsing to loop through the nested array of NFTA_TUNNEL_KEY_OPTS. Signed-off-by: Fernando Fernandez Mancera <fmancera@suse.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r--include/libnftnl/object.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/libnftnl/object.h b/include/libnftnl/object.h
index 6d0aab0..490e8b4 100644
--- a/include/libnftnl/object.h
+++ b/include/libnftnl/object.h
@@ -119,9 +119,12 @@ enum {
#define NFTNL_TUNNEL_TYPE 0
#define NFTNL_TUNNEL_BASE 4
+#define NFTNL_TUNNEL_GENEVE_DATA_MAXLEN 127
+
enum nftnl_tunnel_type {
NFTNL_TUNNEL_TYPE_VXLAN,
NFTNL_TUNNEL_TYPE_ERSPAN,
+ NFTNL_TUNNEL_TYPE_GENEVE,
};
enum {
@@ -137,6 +140,12 @@ enum {
__NFTNL_TUNNEL_ERSPAN_MAX,
};
+enum {
+ NFTNL_TUNNEL_GENEVE_CLASS = NFTNL_TUNNEL_BASE,
+ NFTNL_TUNNEL_GENEVE_TYPE,
+ NFTNL_TUNNEL_GENEVE_DATA,
+};
+
struct nftnl_tunnel_opt;
struct nftnl_tunnel_opts;