summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2014-05-10 18:42:57 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2014-05-12 16:33:08 +0200
commit7b9d5ef932297413adcbd8be98fe612b9527a312 (patch)
treecbc7b540cab91402bd414b785cb61fdcde2dbdc9 /net
parent5467a512216753d54f757314c73dbc60f659f9e6 (diff)
downloadlinux-stable-7b9d5ef932297413adcbd8be98fe612b9527a312.tar.gz
linux-stable-7b9d5ef932297413adcbd8be98fe612b9527a312.tar.bz2
linux-stable-7b9d5ef932297413adcbd8be98fe612b9527a312.zip
netfilter: nf_tables: fix tracing of the goto action
Add missing code to trace goto actions. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net')
-rw-r--r--net/netfilter/nf_tables_core.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/net/netfilter/nf_tables_core.c b/net/netfilter/nf_tables_core.c
index 7d83a49fd8e5..f55fb28264fa 100644
--- a/net/netfilter/nf_tables_core.c
+++ b/net/netfilter/nf_tables_core.c
@@ -171,8 +171,12 @@ next_rule:
jumpstack[stackptr].rule = rule;
jumpstack[stackptr].rulenum = rulenum;
stackptr++;
- /* fall through */
+ chain = data[NFT_REG_VERDICT].chain;
+ goto do_chain;
case NFT_GOTO:
+ if (unlikely(pkt->skb->nf_trace))
+ nft_trace_packet(pkt, chain, rulenum, NFT_TRACE_RULE);
+
chain = data[NFT_REG_VERDICT].chain;
goto do_chain;
case NFT_RETURN: