]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: conntrack: warn the user if there is a better helper to use
authorMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Thu, 21 May 2015 13:57:12 +0000 (10:57 -0300)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 12 Jun 2015 12:06:24 +0000 (14:06 +0200)
commitcafe1269ec85d6dae5c0126d20e5b307c6d28dfb
treea9967d17f449a2f28f9dd2afec488e1160e3a49a
parent24599369b6070ef3215559f6ecd68873c22153a9
netfilter: conntrack: warn the user if there is a better helper to use

After ca29ebb3171e ("netfilter: conntrack: disable generic tracking for
known protocols"), if the specific helper is built but not loaded
(a standard for most distributions) systems with a restrictive firewall
but weak configuration regarding netfilter modules to load, will
silently stop working.

This patch then puts a warning message so the sysadmin knows where to
start looking into. It's a pr_warn_once regardless of protocol itself
but it should be enough to give a hint on where to look.

Cc: Florian Westphal <fw@strlen.de>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_conntrack_proto_generic.c