]> git.ipfire.org Git - thirdparty/iptables.git/commit
xshared: Share make_delete_mask() between ip{,6}tables
authorPhil Sutter <phil@nwl.cc>
Tue, 12 May 2020 16:46:39 +0000 (18:46 +0200)
committerPhil Sutter <phil@nwl.cc>
Tue, 15 Nov 2022 15:58:16 +0000 (16:58 +0100)
commiteb2546a8467764de357598e6a54ddbc23ca5ee7d
treee2175d30cdfacb334d36d2f2761c95779d0b9d9a
parent223e34b057b95604f07c53e984b199c56140e309
xshared: Share make_delete_mask() between ip{,6}tables

Function bodies were mostly identical, the only difference being the use
of struct ipt_entry or ip6t_entry for size calculation. Pass this value
via parameter to make them fully identical.

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