#include "nft.h"
/* a few names */
-char *opcodes[] =
+char *arp_opcodes[] =
{
"Request",
"Reply",
printf("%s", fw->arp.invflags & ARPT_INV_ARPOP
? "! " : "");
if (tmp <= NUMOPCODES && !(format & FMT_NUMERIC))
- printf("--opcode %s", opcodes[tmp-1]);
+ printf("--opcode %s", arp_opcodes[tmp-1]);
else
printf("--opcode %d", tmp);
"[!] --version -V print package version.\n");
printf(" opcode strings: \n");
for (i = 0; i < NUMOPCODES; i++)
- printf(" %d = %s\n", i + 1, opcodes[i]);
+ printf(" %d = %s\n", i + 1, arp_opcodes[i]);
printf(
" hardware type string: 1 = Ethernet\n"
" protocol type string: 0x800 = IPv4\n");
int i;
for (i = 0; i < NUMOPCODES; i++)
- if (!strcasecmp(opcodes[i], optarg))
+ if (!strcasecmp(arp_opcodes[i], optarg))
break;
if (i == NUMOPCODES)
xtables_error(PARAMETER_PROBLEM, "Problem with specified opcode");