diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-05-10 12:42:57 -0400 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-05-12 10:33:08 -0400 |
commit | 7b9d5ef932297413adcbd8be98fe612b9527a312 (patch) | |
tree | cbc7b540cab91402bd414b785cb61fdcde2dbdc9 | |
parent | 5467a512216753d54f757314c73dbc60f659f9e6 (diff) |
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>
-rw-r--r-- | net/netfilter/nf_tables_core.c | 6 |
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: | |||
171 | jumpstack[stackptr].rule = rule; | 171 | jumpstack[stackptr].rule = rule; |
172 | jumpstack[stackptr].rulenum = rulenum; | 172 | jumpstack[stackptr].rulenum = rulenum; |
173 | stackptr++; | 173 | stackptr++; |
174 | /* fall through */ | 174 | chain = data[NFT_REG_VERDICT].chain; |
175 | goto do_chain; | ||
175 | case NFT_GOTO: | 176 | case NFT_GOTO: |
177 | if (unlikely(pkt->skb->nf_trace)) | ||
178 | nft_trace_packet(pkt, chain, rulenum, NFT_TRACE_RULE); | ||
179 | |||
176 | chain = data[NFT_REG_VERDICT].chain; | 180 | chain = data[NFT_REG_VERDICT].chain; |
177 | goto do_chain; | 181 | goto do_chain; |
178 | case NFT_RETURN: | 182 | case NFT_RETURN: |