summaryrefslogtreecommitdiffstats
path: root/include/data_reg.h
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2015-03-01 10:28:02 +0000
committerPatrick McHardy <kaber@trash.net>2015-04-14 07:56:28 +0100
commit242978b5c98c98c125c73ae76abd76e0e672d769 (patch)
tree512f7e667ff592ea60a506c1b9b1277441e7f1d6 /include/data_reg.h
parent8334c0462684d197b06160f55a110810a949016e (diff)
data: increase maximum possible data size
Signed-off-by: Patrick McHardy <kaber@trash.net>
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 {