summaryrefslogtreecommitdiffstats
path: root/net/netfilter/nf_tables_api.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso2013-10-10 16:49:19 +0200
committerPablo Neira Ayuso2013-10-14 18:01:02 +0200
commitb5bc89bfa0b46de37754610f46c0ef4e2280edb4 (patch)
treef68a807452f3fc48f2335d4ba3fa5c983de24a84 /net/netfilter/nf_tables_api.c
parentnetfilter: nfnetlink: add batch support and use it from nf_tables (diff)
downloadkernel-qcow2-linux-b5bc89bfa0b46de37754610f46c0ef4e2280edb4.tar.gz
kernel-qcow2-linux-b5bc89bfa0b46de37754610f46c0ef4e2280edb4.tar.xz
kernel-qcow2-linux-b5bc89bfa0b46de37754610f46c0ef4e2280edb4.zip
netfilter: nf_tables: add trace support
This patch adds support for tracing the packet travel through the ruleset, in a similar fashion to x_tables. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nf_tables_api.c')
-rw-r--r--net/netfilter/nf_tables_api.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/netfilter/nf_tables_api.c b/net/netfilter/nf_tables_api.c
index 79e1418a6043..dcddc49c0e08 100644
--- a/net/netfilter/nf_tables_api.c
+++ b/net/netfilter/nf_tables_api.c
@@ -979,6 +979,7 @@ static int nf_tables_newchain(struct sock *nlsk, struct sk_buff *skb,
INIT_LIST_HEAD(&chain->rules);
chain->handle = nf_tables_alloc_handle(table);
chain->net = net;
+ chain->table = table;
nla_strlcpy(chain->name, name, NFT_CHAIN_MAXNAMELEN);
if (!(table->flags & NFT_TABLE_F_DORMANT) &&