netfilter: ebt: Use new helper ebt_invalid_target to check target
authorGao Feng <gfree.wind@vip.163.com>
Wed, 31 May 2017 08:55:43 +0000 (16:55 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 19 Jun 2017 17:09:19 +0000 (19:09 +0200)
commite15b9c50c4555e30be3c4f26aab7aeb10aee7aa6
treec81500d3a9649ce0c42c033bbf34b25d10c4affd
parent7866cc57b51c1e118e5d78d1a8f721f378eec5c4
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>
include/linux/netfilter_bridge/ebtables.h
net/bridge/netfilter/ebt_dnat.c
net/bridge/netfilter/ebt_mark.c
net/bridge/netfilter/ebt_redirect.c
net/bridge/netfilter/ebt_snat.c