summaryrefslogtreecommitdiffstats
path: root/include/data_reg.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/data_reg.h')
-rw-r--r--include/data_reg.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/data_reg.h b/include/data_reg.h
index e7375b8..cf14988 100644
--- a/include/data_reg.h
+++ b/include/data_reg.h
@@ -1,6 +1,7 @@
#ifndef _DATA_H_
#define _DATA_H_
+#include <linux/netfilter/nf_tables.h>
#include <stdint.h>
#include <unistd.h>
@@ -13,7 +14,7 @@ enum {
union nft_data_reg {
struct {
- uint32_t val[4];
+ uint32_t val[NFT_DATA_VALUE_MAXLEN / sizeof(uint32_t)];
uint32_t len;
};
struct {