]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_tables: fix trace of matching non-terminal rule
authorPablo Neira Ayuso <pablo@netfilter.org>
Thu, 15 May 2014 15:18:26 +0000 (17:18 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 15 May 2014 17:44:20 +0000 (19:44 +0200)
commit9a4875b5dfc73cbda98e1221064456ad32fd2fdd
tree5125063b91417a8a74967ea4469fdde1bf4f2e89
parent37748068ee16ff967b0688c644988201d869dc70
netfilter: nf_tables: fix trace of matching non-terminal rule

Add the corresponding trace if we have a full match in a non-terminal
rule. Note that the traces will look slightly different than in
x_tables since the log message after all expressions have been
evaluated (contrary to x_tables, that emits it before the target
action). This manifests in two differences in nf_tables wrt. x_tables:

1) The rule that enables the tracing is included in the trace.

2) If the rule emits some log message, that is shown before the
   trace log message.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_core.c