summaryrefslogtreecommitdiffstats
path: root/src/expr/match.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2014-08-31 21:53:12 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2014-08-31 22:07:51 +0200
commit93483364369d8ef10d9e38018da02c6b0eae3077 (patch)
tree1d844375bdb5bec58f6725a0ceaf25316d545330 /src/expr/match.c
parentfefd5494d5c23075bd90a41da9961ef8aeab5467 (diff)
src: get rid of cached copies of x_tables.h and xt_LOG.h
Keeping the full cached copy the of x_tables.h file in tree is too much for just the XT_EXTENSION_MAXNAMELEN constant. Similarly, xt_LOG.h is not actually required by the tests, we can use any whatever syntetic data to make sure the setter and getter provide the same result. So, let's get rid of these headers from the library tree. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/expr/match.c')
-rw-r--r--src/expr/match.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/expr/match.c b/src/expr/match.c
index 378d5dd..dc66585 100644
--- a/src/expr/match.c
+++ b/src/expr/match.c
@@ -20,13 +20,15 @@
#include <linux/netfilter/nf_tables.h>
#include <linux/netfilter/nf_tables_compat.h>
-#include <linux/netfilter/x_tables.h>
#include <libnftnl/expr.h>
#include <libnftnl/rule.h>
#include "expr_ops.h"
+/* From include/linux/netfilter/x_tables.h */
+#define XT_EXTENSION_MAXNAMELEN 29
+
struct nft_expr_match {
char name[XT_EXTENSION_MAXNAMELEN];
uint32_t rev;