]> git.ipfire.org Git - thirdparty/nftables.git/commit
src: support zone set statement with optional direction
authorFlorian Westphal <fw@strlen.de>
Mon, 27 Feb 2017 23:59:07 +0000 (00:59 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 27 Feb 2017 23:59:42 +0000 (00:59 +0100)
commited66d9966294a3bab6c8611e369861ba57374743
treeaa91c0359789cb81f82a9c06c7be160965ee01be
parent2d09a04a12c8564f8044788b2e69da04671230d7
src: support zone set statement with optional direction

nft automatically understands 'ct zone set 1' but when a direction is
specified too we get a parser error since they are currently only
allowed for plain ct expressions.

This permits the existing syntax ('ct original zone') for all tokens with
an optional direction also for set statements.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/statement.h
src/ct.c
src/netlink_delinearize.c
src/netlink_linearize.c
src/parser_bison.y