diff options
author | Gao Feng <gfree.wind@vip.163.com> | 2017-05-31 16:55:43 +0800 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-06-19 19:09:19 +0200 |
commit | e15b9c50c4555e30be3c4f26aab7aeb10aee7aa6 (patch) | |
tree | c81500d3a9649ce0c42c033bbf34b25d10c4affd /include | |
parent | 7866cc57b51c1e118e5d78d1a8f721f378eec5c4 (diff) | |
download | linux-e15b9c50c4555e30be3c4f26aab7aeb10aee7aa6.tar.gz linux-e15b9c50c4555e30be3c4f26aab7aeb10aee7aa6.tar.bz2 linux-e15b9c50c4555e30be3c4f26aab7aeb10aee7aa6.zip |
netfilter: ebt: Use new helper ebt_invalid_target to check target
Use the new helper function ebt_invalid_target instead of the old
macro INVALID_TARGET and other duplicated codes to enhance the readability.
Signed-off-by: Gao Feng <gfree.wind@vip.163.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/netfilter_bridge/ebtables.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/netfilter_bridge/ebtables.h b/include/linux/netfilter_bridge/ebtables.h index e0cbf17af780..2c2a5514b0df 100644 --- a/include/linux/netfilter_bridge/ebtables.h +++ b/include/linux/netfilter_bridge/ebtables.h @@ -122,8 +122,6 @@ extern unsigned int ebt_do_table(struct sk_buff *skb, #define BASE_CHAIN (par->hook_mask & (1 << NF_BR_NUMHOOKS)) /* Clear the bit in the hook mask that tells if the rule is on a base chain */ #define CLEAR_BASE_CHAIN_BIT (par->hook_mask &= ~(1 << NF_BR_NUMHOOKS)) -/* True if the target is not a standard target */ -#define INVALID_TARGET (info->target < -NUM_STANDARD_TARGETS || info->target >= 0) static inline bool ebt_invalid_target(int target) { |