]> git.ipfire.org Git - thirdparty/nftables.git/commit
stmt: support generating stateful statements outside of rule context
authorPatrick McHardy <kaber@trash.net>
Wed, 27 Apr 2016 11:29:49 +0000 (12:29 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 13 May 2016 17:30:29 +0000 (19:30 +0200)
commit9f3cce668b72c9ec9d9e0a6071d132a8f35d7b70
treef0067fa2e8083c10644c87b1b904fb0f937c8791
parentcca234097a46c8e2e6fcf2e5d34a973dda103a10
stmt: support generating stateful statements outside of rule context

The flow statement contains a stateful per flow statement, which is not
directly part of the rule. Allow generating these statements without adding
them to the rule and mark the supported statements using a new flag
STMT_F_STATEFUL.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/statement.h
src/netlink_linearize.c
src/statement.c