aboutsummaryrefslogtreecommitdiffstats
path: root/net/netfilter/xt_SECMARK.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2018-02-09 15:52:05 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2018-02-14 21:05:36 +0100
commitcc48baefdfff83e3774811f69eb181b8850bd8af (patch)
tree96d2d2351aa39cfe434355ef645a8ea40dccb196 /net/netfilter/xt_SECMARK.c
parentnetfilter: bridge: use pr ratelimiting (diff)
downloadlinux-dev-cc48baefdfff83e3774811f69eb181b8850bd8af.tar.xz
linux-dev-cc48baefdfff83e3774811f69eb181b8850bd8af.zip
netfilter: x_tables: rate-limit table mismatch warnings
Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/xt_SECMARK.c')
-rw-r--r--net/netfilter/xt_SECMARK.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/netfilter/xt_SECMARK.c b/net/netfilter/xt_SECMARK.c
index 9faf5e050b79..5c5cd782fab5 100644
--- a/net/netfilter/xt_SECMARK.c
+++ b/net/netfilter/xt_SECMARK.c
@@ -86,8 +86,8 @@ static int secmark_tg_check(const struct xt_tgchk_param *par)
if (strcmp(par->table, "mangle") != 0 &&
strcmp(par->table, "security") != 0) {
- pr_info("target only valid in the \'mangle\' "
- "or \'security\' tables, not \'%s\'.\n", par->table);
+ pr_info_ratelimited("only valid in \'mangle\' or \'security\' table, not \'%s\'\n",
+ par->table);
return -EINVAL;
}