]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commited7ad198b5b9cb472ff90c0d61b6f4328cd099e9
tree216307284d8588c3a1250dc01c956f4b40b9809c
parent8796872f4bea019fcc3b6826d666a9817f854e33
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