aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/netfilter/nf_tables_ipv6.h
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2014-01-03 12:16:18 +0000
committerPablo Neira Ayuso <pablo@netfilter.org>2014-01-07 23:57:31 +0100
commit4566bf27069b7780e453cffb24ea5f5323059885 (patch)
tree216307284d8588c3a1250dc01c956f4b40b9809c /include/net/netfilter/nf_tables_ipv6.h
parentnetfilter: nf_tables: add nfproto support to meta expression (diff)
downloadlinux-dev-4566bf27069b7780e453cffb24ea5f5323059885.tar.xz
linux-dev-4566bf27069b7780e453cffb24ea5f5323059885.zip
netfilter: nft_meta: add l4proto support
For L3-proto independant rules we need to get at the L4 protocol value directly. Add it to the nft_pktinfo struct and use the meta expression to retrieve it. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/net/netfilter/nf_tables_ipv6.h')
-rw-r--r--include/net/netfilter/nf_tables_ipv6.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/netfilter/nf_tables_ipv6.h b/include/net/netfilter/nf_tables_ipv6.h
index 3d8ae489be0d..74d976137658 100644
--- a/include/net/netfilter/nf_tables_ipv6.h
+++ b/include/net/netfilter/nf_tables_ipv6.h
@@ -21,6 +21,7 @@ nft_set_pktinfo_ipv6(struct nft_pktinfo *pkt,
if (protohdr < 0)
return -1;
+ pkt->tprot = protohdr;
pkt->xt.thoff = thoff;
pkt->xt.fragoff = frag_off;