netfilter: xt_TRACE: add explicitly nf_logger_find_get call
authorLiping Zhang <liping.zhang@spreadtrum.com>
Wed, 8 Jun 2016 12:43:19 +0000 (20:43 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 23 Jun 2016 11:26:49 +0000 (13:26 +0200)
commit36f959c491abc7e0acf94b631a6d7a3e2e3699b0
tree0d6eb4e18c1127aa6b5fa3f64c9afdad597f70c2
parentf3bb53338e0965c3084c185020e821ac49015832
netfilter: xt_TRACE: add explicitly nf_logger_find_get call

Consider such situation, if nf_log_ipv4 kernel module is not installed,
and the user add a following iptables rule:
  # iptables -t raw -I PREROUTING -j TRACE

There will be no trace log generated until the user install nf_log_ipv4
module manully. So we should add request related nf_log module
appropriately here.

Signed-off-by: Liping Zhang <liping.zhang@spreadtrum.com>
Acked-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/xt_TRACE.c