summaryrefslogtreecommitdiffstats
path: root/include/proto.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/proto.h')
-rw-r--r--include/proto.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/proto.h b/include/proto.h
index bd3701e3..cc1f51f0 100644
--- a/include/proto.h
+++ b/include/proto.h
@@ -2,6 +2,7 @@
#define NFTABLES_PROTO_H
#include <nftables.h>
+#include <datatype.h>
#include <linux/netfilter/nf_tables.h>
/**
@@ -38,13 +39,15 @@ struct proto_hdr_template {
const struct datatype *dtype;
uint16_t offset;
uint16_t len;
+ enum byteorder byteorder;
enum nft_meta_keys meta_key;
};
-#define PROTO_HDR_TEMPLATE(__token, __dtype, __offset, __len) \
+#define PROTO_HDR_TEMPLATE(__token, __dtype, __byteorder, __offset, __len)\
{ \
.token = (__token), \
.dtype = (__dtype), \
+ .byteorder = (__byteorder), \
.offset = (__offset), \
.len = (__len), \
}