summaryrefslogtreecommitdiffstats
path: root/iptables/xshared.h
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2021-12-24 14:55:28 +0100
committerPhil Sutter <phil@nwl.cc>2022-01-12 14:08:54 +0100
commite4f5185d8f29a8d5b62159cb361648acd55da2a6 (patch)
tree2e0443867c84101570d9790a2f9ca81991f7d766 /iptables/xshared.h
parentded7b57977f3fa619975f752a342046225b56935 (diff)
nft: Move proto_parse and post_parse callbacks to xshared
They are not nft-variant-specific and may therefore be shared with legacy. Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'iptables/xshared.h')
-rw-r--r--iptables/xshared.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/iptables/xshared.h b/iptables/xshared.h
index 48bfe911..d13de95e 100644
--- a/iptables/xshared.h
+++ b/iptables/xshared.h
@@ -323,4 +323,13 @@ void do_parse(int argc, char *argv[],
struct xt_cmd_parse *p, struct iptables_command_state *cs,
struct xtables_args *args);
+void ipv4_proto_parse(struct iptables_command_state *cs,
+ struct xtables_args *args);
+void ipv6_proto_parse(struct iptables_command_state *cs,
+ struct xtables_args *args);
+void ipv4_post_parse(int command, struct iptables_command_state *cs,
+ struct xtables_args *args);
+void ipv6_post_parse(int command, struct iptables_command_state *cs,
+ struct xtables_args *args);
+
#endif /* IPTABLES_XSHARED_H */