From f2690ca8428d29bfa4be3c28304813de65f10523 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Mon, 13 May 2019 15:32:01 +0200 Subject: 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 Acked-by: Pablo Neira Ayuso --- iptables/nft-shared.h | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'iptables/nft-shared.h') diff --git a/iptables/nft-shared.h b/iptables/nft-shared.h index 8b073b18..e236a981 100644 --- a/iptables/nft-shared.h +++ b/iptables/nft-shared.h @@ -199,23 +199,6 @@ struct xtables_args { unsigned long long pcnt_cnt, bcnt_cnt; }; -#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_RENAME_CHAIN 0x0800U -#define CMD_LIST_RULES 0x1000U -#define CMD_ZERO_NUM 0x2000U -#define CMD_CHECK 0x4000U - struct nft_xt_cmd_parse { unsigned int command; unsigned int rulenum; -- cgit v1.2.3