aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/netfilter_bridge/ebtables.h
diff options
context:
space:
mode:
authorGao Feng <gfree.wind@vip.163.com>2017-05-31 16:55:43 +0800
committerPablo Neira Ayuso <pablo@netfilter.org>2017-06-19 19:09:19 +0200
commite15b9c50c4555e30be3c4f26aab7aeb10aee7aa6 (patch)
treec81500d3a9649ce0c42c033bbf34b25d10c4affd /include/linux/netfilter_bridge/ebtables.h
parentnetns: add and use net_ns_barrier (diff)
downloadlinux-dev-e15b9c50c4555e30be3c4f26aab7aeb10aee7aa6.tar.xz
linux-dev-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/linux/netfilter_bridge/ebtables.h')
-rw-r--r--include/linux/netfilter_bridge/ebtables.h2
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)
{