]> git.ipfire.org Git - thirdparty/iptables.git/commit
nft: Simplify immediate parsing
authorPhil Sutter <phil@nwl.cc>
Tue, 1 Mar 2022 17:59:31 +0000 (18:59 +0100)
committerPhil Sutter <phil@nwl.cc>
Thu, 10 Mar 2022 16:38:15 +0000 (17:38 +0100)
commitb5f2faea325a315bfb932ebc634f3298d4824cae
tree62ae892c17a740836aa89cd99fac7ea0688be030
parent17534cb18ed0a5052dc45c117401251359dba6aa
nft: Simplify immediate parsing

Implementations of parse_immediate callback are mostly trivial, the only
relevant part is access to family-specific parts of struct
iptables_command_state when setting goto flag for iptables and
ip6tables. Refactor them into simple set_goto_flag callbacks.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Acked-by: Florian Westphal <fw@strlen.de>
iptables/nft-arp.c
iptables/nft-bridge.c
iptables/nft-ipv4.c
iptables/nft-ipv6.c
iptables/nft-shared.c
iptables/nft-shared.h