diff options
author | Phil Sutter <phil@nwl.cc> | 2022-05-05 18:07:38 +0200 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2022-05-11 12:02:19 +0200 |
commit | 8ff84eaf987d74603a88b02632bd00187defcf8d (patch) | |
tree | 5a5f56fb4dd4ec09e72271387edb604c73b53e37 /iptables/xshared.c | |
parent | adbfec0b3e3275ea5e7c933b630756cf01a4f8c6 (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.c')
-rw-r--r-- | iptables/xshared.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/iptables/xshared.c b/iptables/xshared.c index 00828c8a..674b49cb 100644 --- a/iptables/xshared.c +++ b/iptables/xshared.c @@ -20,6 +20,20 @@ #include <signal.h> #include "xshared.h" +/* a few arp opcode names */ +char *arp_opcodes[] = +{ + "Request", + "Reply", + "Request_Reverse", + "Reply_Reverse", + "DRARP_Request", + "DRARP_Reply", + "DRARP_Error", + "InARP_Request", + "ARP_NAK", +}; + /* * Print out any special helps. A user might like to be able to add a --help * to the commandline, and see expected results. So we call help for all |