netfilter: nf_tables: fix tracing of the goto action
authorPablo Neira Ayuso <pablo@netfilter.org>
Sat, 10 May 2014 16:42:57 +0000 (18:42 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 12 May 2014 14:33:08 +0000 (16:33 +0200)
Add missing code to trace goto actions.

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

index 7d83a49..f55fb28 100644 (file)
@@ -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: