summaryrefslogtreecommitdiff
path: root/net/bridge/netfilter/ebt_among.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2018-02-09 17:52:04 +0300
committerPablo Neira Ayuso <pablo@netfilter.org>2018-02-14 23:05:36 +0300
commit7ecbf1033521194e544477377ff7e837d25f1ef3 (patch)
tree7be46915ed7b4898a5a9e666c9194b5b0c62ab10 /net/bridge/netfilter/ebt_among.c
parentc82b31c5f5608f7f069c584ac169f5691a92d3f5 (diff)
downloadlinux-7ecbf1033521194e544477377ff7e837d25f1ef3.tar.xz
netfilter: bridge: use pr ratelimiting
ebt_among still uses pr_err -- these errors indicate ebtables tool bug, not a usage error. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/bridge/netfilter/ebt_among.c')
-rw-r--r--net/bridge/netfilter/ebt_among.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/net/bridge/netfilter/ebt_among.c b/net/bridge/netfilter/ebt_among.c
index 279527f8b1fe..ce7152a12bd8 100644
--- a/net/bridge/netfilter/ebt_among.c
+++ b/net/bridge/netfilter/ebt_among.c
@@ -187,17 +187,17 @@ static int ebt_among_mt_check(const struct xt_mtchk_param *par)
expected_length += ebt_mac_wormhash_size(wh_src);
if (em->match_size != EBT_ALIGN(expected_length)) {
- pr_info("wrong size: %d against expected %d, rounded to %zd\n",
- em->match_size, expected_length,
- EBT_ALIGN(expected_length));
+ pr_err_ratelimited("wrong size: %d against expected %d, rounded to %zd\n",
+ em->match_size, expected_length,
+ EBT_ALIGN(expected_length));
return -EINVAL;
}
if (wh_dst && (err = ebt_mac_wormhash_check_integrity(wh_dst))) {
- pr_info("dst integrity fail: %x\n", -err);
+ pr_err_ratelimited("dst integrity fail: %x\n", -err);
return -EINVAL;
}
if (wh_src && (err = ebt_mac_wormhash_check_integrity(wh_src))) {
- pr_info("src integrity fail: %x\n", -err);
+ pr_err_ratelimited("src integrity fail: %x\n", -err);
return -EINVAL;
}
return 0;