]> git.ipfire.org Git - thirdparty/nftables.git/commit
netlink_delinerize: don't use meta_match_postprocess for ct pp
authorFlorian Westphal <fw@strlen.de>
Mon, 14 Mar 2016 12:56:43 +0000 (13:56 +0100)
committerFlorian Westphal <fw@strlen.de>
Wed, 25 May 2016 10:00:05 +0000 (12:00 +0200)
commitf8fc4366c96882b256c1bc12f6d4b02ad8289b34
treeb536049ea850acdd481d71213103108ab6f7c816
parent8979727084d90e6061c8d0f562f8f12e784a657d
netlink_delinerize: don't use meta_match_postprocess for ct pp

meta_match_postprocess uses meta.base which is only accessible if
left expression has EXPR_META type, so we can't use it to handle ct postprocessing.

To reduce copy-pastry factor the common part into ct_meta_common_postprocess(),
then call that from both meta and ct postprocessing.

Signed-off-by: Florian Westphal <fw@strlen.de>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/netlink_delinearize.c