summaryrefslogtreecommitdiff
path: root/net/bridge/netfilter/ebt_dnat.c
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 /net/bridge/netfilter/ebt_dnat.c
parent7866cc57b51c1e118e5d78d1a8f721f378eec5c4 (diff)
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 'net/bridge/netfilter/ebt_dnat.c')
-rw-r--r--net/bridge/netfilter/ebt_dnat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bridge/netfilter/ebt_dnat.c b/net/bridge/netfilter/ebt_dnat.c
index e0bb624c3845..dfc86a0199da 100644
--- a/net/bridge/netfilter/ebt_dnat.c
+++ b/net/bridge/netfilter/ebt_dnat.c
@@ -61,7 +61,7 @@ static int ebt_dnat_tg_check(const struct xt_tgchk_param *par)
(strcmp(par->table, "broute") != 0 ||
hook_mask & ~(1 << NF_BR_BROUTING)))
return -EINVAL;
- if (INVALID_TARGET)
+ if (ebt_invalid_target(info->target))
return -EINVAL;
return 0;
}