]> 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)
commiteb5ab278df8a1c402dce9c1b0eb1b3d2d8e7be40
tree216307284d8588c3a1250dc01c956f4b40b9809c
parent9b9fed776de2b0b41f3c790a999011b9e0bfdcf1
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