netfilter: nft_meta: add l4proto support
authorPatrick McHardy <kaber@trash.net>
Fri, 3 Jan 2014 12:16:18 +0000 (12:16 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 7 Jan 2014 22:57:31 +0000 (23:57 +0100)
commit4566bf27069b7780e453cffb24ea5f5323059885
tree216307284d8588c3a1250dc01c956f4b40b9809c
parent124edfa9e0451e97d621cd2796a44ff499e21036
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>
include/net/netfilter/nf_tables.h
include/net/netfilter/nf_tables_ipv4.h
include/net/netfilter/nf_tables_ipv6.h
include/uapi/linux/netfilter/nf_tables.h
net/netfilter/nft_meta.c