Skip to content
Commit 3cf2f450 authored by Todd Seidelmann's avatar Todd Seidelmann Committed by Pablo Neira Ayuso
Browse files

netfilter: xt_physdev: Fix spurious error message in physdev_mt_check



Simplify the check in physdev_mt_check() to emit an error message
only when passed an invalid chain (ie, NF_INET_LOCAL_OUT).
This avoids cluttering up the log with errors against valid rules.

For large/heavily modified rulesets, current behavior can quickly
overwhelm the ring buffer, because this function gets called on
every change, regardless of the rule that was changed.

Signed-off-by: default avatarTodd Seidelmann <tseidelmann@linode.com>
Acked-by: default avatarFlorian Westphal <fw@strlen.de>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent f53a7ad1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment