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 /net/bridge/netfilter/ebt_dnat.c | |
parent | 7866cc57b51c1e118e5d78d1a8f721f378eec5c4 (diff) | |
download | op-kernel-dev-e15b9c50c4555e30be3c4f26aab7aeb10aee7aa6.zip op-kernel-dev-e15b9c50c4555e30be3c4f26aab7aeb10aee7aa6.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bridge/netfilter/ebt_dnat.c b/net/bridge/netfilter/ebt_dnat.c index e0bb624c..dfc86a0 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; } |