From ea63a05272f5400d73498daa5932afd0aa65e79f Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 6 Aug 2018 13:35:00 +0200 Subject: obj: add tunnel support Signed-off-by: Pablo Neira Ayuso --- include/obj.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'include/obj.h') diff --git a/include/obj.h b/include/obj.h index 4a728c8..9363a69 100644 --- a/include/obj.h +++ b/include/obj.h @@ -43,6 +43,34 @@ struct nftnl_obj { uint32_t type; uint32_t flags; } limit; + struct nftnl_obj_tunnel { + uint32_t id; + uint32_t src_v4; + uint32_t dst_v4; + struct in6_addr src_v6; + struct in6_addr dst_v6; + uint16_t sport; + uint16_t dport; + uint32_t flowlabel; + uint32_t tun_flags; + uint8_t tun_tos; + uint8_t tun_ttl; + union { + struct { + uint32_t gbp; + } tun_vxlan; + struct { + uint32_t version; + union { + uint32_t v1_index; + struct { + uint8_t hwid; + uint8_t dir; + } v2; + } u; + } tun_erspan; + } u; + } tunnel; } data; }; @@ -64,6 +92,7 @@ extern struct obj_ops obj_ops_counter; extern struct obj_ops obj_ops_quota; extern struct obj_ops obj_ops_ct_helper; extern struct obj_ops obj_ops_limit; +extern struct obj_ops obj_ops_tunnel; #define nftnl_obj_data(obj) (void *)&obj->data -- cgit v1.2.3