]> git.ipfire.org Git - thirdparty/iptables.git/commit
nft: Introduce nft-ruleparse.{c,h}
authorPhil Sutter <phil@nwl.cc>
Wed, 29 Mar 2023 15:53:11 +0000 (17:53 +0200)
committerPhil Sutter <phil@nwl.cc>
Wed, 3 May 2023 17:09:29 +0000 (19:09 +0200)
commit46ed4d264ce44dd0a01723a1e326eedc0da822ba
tree74a4646736d597a0daf45556d6e2b110e65bb54b
parent90a7a183a208b691810b8519cc57d3d9d3b7eb60
nft: Introduce nft-ruleparse.{c,h}

Extract all code dealing with parsing from struct nftnl_rule into struct
iptables_command_state from nft-shared.c into a separate source file.

Basically this is nft_rule_to_iptables_command_state() and the functions
it calls, plus family-independent parsers called from family-specific
callbacks.

Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables/Makefile.am
iptables/nft-ruleparse.c [new file with mode: 0644]
iptables/nft-ruleparse.h [new file with mode: 0644]
iptables/nft-shared.c
iptables/nft-shared.h