summaryrefslogtreecommitdiffstats
path: root/iptables/xtables-arp.c
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2019-05-13 15:32:01 +0200
committerPhil Sutter <phil@nwl.cc>2019-10-30 10:01:02 +0100
commitf2690ca8428d29bfa4be3c28304813de65f10523 (patch)
tree22caf1cd662b769779774d50e3bb5cee0eb4bd28 /iptables/xtables-arp.c
parent284a3e67563a8984fb0f513e1dc27a2364a12ce2 (diff)
Merge CMD_* defines
They are mostly identical, just xtables-arp ones differ slightly. Though since they are internal use only and their actual value doesn't matter (as long as it's a distinct bit), they can be merged anyway. Signed-off-by: Phil Sutter <phil@nwl.cc> Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables/xtables-arp.c')
-rw-r--r--iptables/xtables-arp.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/iptables/xtables-arp.c b/iptables/xtables-arp.c
index 79cc83d3..88a7d534 100644
--- a/iptables/xtables-arp.c
+++ b/iptables/xtables-arp.c
@@ -62,26 +62,6 @@ typedef char arpt_chainlabel[32];
#define FALSE 0
#endif
-/* XXX: command defined by nft-shared.h do not overlap with these two */
-#undef CMD_CHECK
-#undef CMD_RENAME_CHAIN
-
-#define CMD_NONE 0x0000U
-#define CMD_INSERT 0x0001U
-#define CMD_DELETE 0x0002U
-#define CMD_DELETE_NUM 0x0004U
-#define CMD_REPLACE 0x0008U
-#define CMD_APPEND 0x0010U
-#define CMD_LIST 0x0020U
-#define CMD_FLUSH 0x0040U
-#define CMD_ZERO 0x0080U
-#define CMD_NEW_CHAIN 0x0100U
-#define CMD_DELETE_CHAIN 0x0200U
-#define CMD_SET_POLICY 0x0400U
-#define CMD_CHECK 0x0800U
-#define CMD_RENAME_CHAIN 0x1000U
-#define NUMBER_OF_CMD 13
-
#define OPTION_OFFSET 256
#define OPT_NONE 0x00000U