diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-10-20 17:43:26 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-10-20 18:03:00 +0200 |
commit | c26951eb0f98de0151699563cd0302f2ed714c01 (patch) | |
tree | 4110c0e0529e4344863941e0883efebbd265130e /src/expr_ops.c | |
parent | 41363369c3df93cb2e8856c51629223f4d89d1e6 (diff) |
src: add notrack expression
Register this simple expression with no attributes. Make sure libnftnl
doesn't crash when no build and parse indirections are defined, as it
is the case for this expression.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/expr_ops.c')
-rw-r--r-- | src/expr_ops.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/expr_ops.c b/src/expr_ops.c index 55748d6..96b1f8d 100644 --- a/src/expr_ops.c +++ b/src/expr_ops.c @@ -31,6 +31,10 @@ extern struct expr_ops expr_ops_target; extern struct expr_ops expr_ops_dynset; extern struct expr_ops expr_ops_hash; +static struct expr_ops expr_ops_notrack = { + .name = "notrack", +}; + static struct expr_ops *expr_ops[] = { &expr_ops_bitwise, &expr_ops_byteorder, @@ -49,6 +53,7 @@ static struct expr_ops *expr_ops[] = { &expr_ops_meta, &expr_ops_ng, &expr_ops_nat, + &expr_ops_notrack, &expr_ops_payload, &expr_ops_range, &expr_ops_redir, |