]> git.ipfire.org Git - thirdparty/nftables.git/commit
evaluate: infer family from mapping
authorPablo Neira Ayuso <pablo@netfilter.org>
Thu, 16 Feb 2023 14:41:30 +0000 (15:41 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 21 Feb 2023 22:57:27 +0000 (23:57 +0100)
commit2f4935a8d7aeb6b2e019aebb961a579d9950c74a
tree96c0d55f7e6d7e43a01071188fe275f564e153c0
parent6968c2632e0c7a625ca57cd4501b6b980fdebc55
evaluate: infer family from mapping

If the key in the nat mapping is either ip or ip6, then set the nat
family accordingly, no need for explicit family in the nat statement.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/evaluate.c
tests/shell/testcases/sets/0047nat_0