]> git.ipfire.org Git - thirdparty/nftables.git/commit
nftables: xt: don't use hard-coded AF_INET
authorFlorian Westphal <fw@strlen.de>
Fri, 11 May 2018 21:17:16 +0000 (23:17 +0200)
committerFlorian Westphal <fw@strlen.de>
Sun, 13 May 2018 23:25:28 +0000 (01:25 +0200)
commitfbc0768cb69686d00035456f1e9e0613927b1d4f
tree3eb0d73a4cbd4c110c5a24a1614305145593d2d7
parent3b71baba43fa1ce53fa034257b17954e05c230fb
nftables: xt: don't use hard-coded AF_INET

We need to check which revision type is requested (match, target)
and wheter its ipv4 or ipv6, then set family based on that.

This allows nft ipv6 family to display compat entries if a translation
is available.

Signed-off-by: Florian Westphal <fw@strlen.de>
src/xt.c