summaryrefslogtreecommitdiffstats
path: root/iptables/xshared.h
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2022-05-05 18:07:38 +0200
committerPhil Sutter <phil@nwl.cc>2022-05-11 12:02:19 +0200
commit8ff84eaf987d74603a88b02632bd00187defcf8d (patch)
tree5a5f56fb4dd4ec09e72271387edb604c73b53e37 /iptables/xshared.h
parentadbfec0b3e3275ea5e7c933b630756cf01a4f8c6 (diff)
xshared: Move arp_opcodes into shared space
It will be referenced by xtables_printhelp() if printing for arptables and therefore must be present in legacy as well even if unused. Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'iptables/xshared.h')
-rw-r--r--iptables/xshared.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/iptables/xshared.h b/iptables/xshared.h
index ca761ee7..2fdebc32 100644
--- a/iptables/xshared.h
+++ b/iptables/xshared.h
@@ -330,4 +330,7 @@ void ipv4_post_parse(int command, struct iptables_command_state *cs,
void ipv6_post_parse(int command, struct iptables_command_state *cs,
struct xtables_args *args);
+extern char *arp_opcodes[];
+#define ARP_NUMOPCODES 9
+
#endif /* IPTABLES_XSHARED_H */