diff options
author | Phil Sutter <phil@nwl.cc> | 2019-05-13 15:32:01 +0200 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2019-10-30 10:01:02 +0100 |
commit | f2690ca8428d29bfa4be3c28304813de65f10523 (patch) | |
tree | 22caf1cd662b769779774d50e3bb5cee0eb4bd28 /iptables/xshared.h | |
parent | 284a3e67563a8984fb0f513e1dc27a2364a12ce2 (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/xshared.h')
-rw-r--r-- | iptables/xshared.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/iptables/xshared.h b/iptables/xshared.h index 85bbfa12..b0738b04 100644 --- a/iptables/xshared.h +++ b/iptables/xshared.h @@ -31,6 +31,26 @@ enum { OPT_COUNTERS = 1 << 10, }; +enum { + CMD_NONE = 0, + CMD_INSERT = 1 << 0, + CMD_DELETE = 1 << 1, + CMD_DELETE_NUM = 1 << 2, + CMD_REPLACE = 1 << 3, + CMD_APPEND = 1 << 4, + CMD_LIST = 1 << 5, + CMD_FLUSH = 1 << 6, + CMD_ZERO = 1 << 7, + CMD_NEW_CHAIN = 1 << 8, + CMD_DELETE_CHAIN = 1 << 9, + CMD_SET_POLICY = 1 << 10, + CMD_RENAME_CHAIN = 1 << 11, + CMD_LIST_RULES = 1 << 12, + CMD_ZERO_NUM = 1 << 13, + CMD_CHECK = 1 << 14, +}; +#define NUMBER_OF_CMD 16 + struct xtables_globals; struct xtables_rule_match; struct xtables_target; |