summaryrefslogtreecommitdiffstats
path: root/iptables/xshared.h
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2020-05-12 18:46:39 +0200
committerPhil Sutter <phil@nwl.cc>2022-11-15 16:58:16 +0100
commiteb2546a8467764de357598e6a54ddbc23ca5ee7d (patch)
treee2175d30cdfacb334d36d2f2761c95779d0b9d9a /iptables/xshared.h
parent223e34b057b95604f07c53e984b199c56140e309 (diff)
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>
Diffstat (limited to 'iptables/xshared.h')
-rw-r--r--iptables/xshared.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/iptables/xshared.h b/iptables/xshared.h
index f43c28f5..bfae4b4e 100644
--- a/iptables/xshared.h
+++ b/iptables/xshared.h
@@ -293,4 +293,8 @@ void ipv6_post_parse(int command, struct iptables_command_state *cs,
extern char *arp_opcodes[];
#define ARP_NUMOPCODES 9
+unsigned char *make_delete_mask(const struct xtables_rule_match *matches,
+ const struct xtables_target *target,
+ size_t entry_size);
+
#endif /* IPTABLES_XSHARED_H */