]> git.ipfire.org Git - thirdparty/iptables.git/commit
nft: Add family ops callbacks wrapping different nft_cmd_* functions
authorPhil Sutter <phil@nwl.cc>
Mon, 27 Sep 2021 14:59:49 +0000 (16:59 +0200)
committerPhil Sutter <phil@nwl.cc>
Wed, 20 Oct 2021 09:32:54 +0000 (11:32 +0200)
commitdded8ff3878ba7dccb8573543f2c2c5c8670fa03
tree823493d91909af96a5f9438a057c2bfcb7adaada
parent38e1fe58fe814e4364155085327c0b1e2d9527ee
nft: Add family ops callbacks wrapping different nft_cmd_* functions

Commands supporting multiple source/destination addresses need to
iterate over them and call the respective nft_cmd_* function multiple
times. These loops are family-specific though as each family uses a
different data structure within struct iptables_command_state to store
the addresses.

Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables/nft-ipv4.c
iptables/nft-ipv6.c
iptables/nft-shared.h
iptables/xtables.c