]> git.ipfire.org Git - thirdparty/iptables.git/commit
xshared: Share save_rule_details() with legacy
authorPhil Sutter <phil@nwl.cc>
Fri, 5 Nov 2021 17:27:53 +0000 (18:27 +0100)
committerPhil Sutter <phil@nwl.cc>
Tue, 23 Nov 2021 14:01:23 +0000 (15:01 +0100)
commit22f2e1fca127b014dccf1006544e3179c9dc9764
tree9b0051ca24e7faa33daca6bf0de6c3e4acd27ba6
parent766e4872e10bccc12fa37dcf5380d3c99fcf1d75
xshared: Share save_rule_details() with legacy

The function combines printing of input and output interfaces and
protocol parameter, all being IP family independent. Extend the function
to print fragment option ('-f'), too if requested. While being at it,
drop unused iptables_command_state parameter and reorder the remaining
ones a bit.

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