summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2023-01-02 15:36:39 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2023-01-02 15:36:39 +0100
commit156d22654003635621248a15031ccefb39bfaffa (patch)
tree2d41aa12866c075bc039925e1c908e178f0c0cd1 /include
parent6cec0716ccecda3d3d70ec9f8f6be0d8da4bb419 (diff)
src: add geneve matching support
Add support for GENEVE vni and (ether) type header field. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r--include/proto.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/proto.h b/include/proto.h
index 4b0c7146..c2c973f3 100644
--- a/include/proto.h
+++ b/include/proto.h
@@ -97,6 +97,7 @@ enum proto_desc_id {
PROTO_DESC_VLAN,
PROTO_DESC_ETHER,
PROTO_DESC_VXLAN,
+ PROTO_DESC_GENEVE,
PROTO_DESC_GRE,
__PROTO_DESC_MAX
};
@@ -397,6 +398,17 @@ enum vxlan_hdr_fields {
VXLANHDR_FLAGS,
};
+struct gnvhdr {
+ uint16_t flags;
+ uint16_t type;
+ uint32_t vni;
+};
+enum geneve_hdr_fields {
+ GNVHDR_INVALID,
+ GNVHDR_VNI,
+ GNVHDR_TYPE,
+};
+
struct grehdr {
uint16_t flags;
uint16_t protocol;
@@ -410,6 +422,7 @@ enum gre_hdr_fields {
};
extern const struct proto_desc proto_vxlan;
+extern const struct proto_desc proto_geneve;
extern const struct proto_desc proto_gre;
extern const struct proto_desc proto_icmp;