]> git.ipfire.org Git - thirdparty/iptables.git/commit
xshared: Share print_iface() function
authorPhil Sutter <phil@nwl.cc>
Fri, 5 Nov 2021 17:02:13 +0000 (18:02 +0100)
committerPhil Sutter <phil@nwl.cc>
Tue, 23 Nov 2021 14:01:23 +0000 (15:01 +0100)
commit766e4872e10bccc12fa37dcf5380d3c99fcf1d75
tree75592710c2f9acb76903a187dbeebb6d3ce56797
parentb5881e7f22d42a8b00acbdbab296b71572ddb903
xshared: Share print_iface() function

Merge the three identical copies into one and name it 'save_iface' (as
the printed syntax is for "save"-format). Leave arptables alone for now,
its rather complicated whitespace printing doesn't allow for use of the
shared function. Also keep ebtables' custom implementation, it is used
for the --logical-in/--logical-out long-options, too. Apart from that,
ebtables-nft does not use a mask, at all.

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