]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nft_meta: add pkttype support
authorAna Rey <anarey@gmail.com>
Wed, 6 Aug 2014 11:52:49 +0000 (13:52 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sun, 24 Aug 2014 12:06:39 +0000 (14:06 +0200)
commit1bfc4daccc056145bf024824c325166a5961a226
treefc8538f532be4897462c3a0c77618c97356e7fac
parent401b11ea198e6696e861a70c74d27d26d0f4a626
netfilter: nft_meta: add pkttype support

Add pkttype support for ip, ipv6 and inet families of tables.

This allows you to fetch the meta packet type based on the link layer
information. The loopback traffic is a special case, the packet type
is guessed from the network layer header.

No special handling for bridge and arp since we're not going to see
such traffic in the loopback interface.

Joint work with Alvaro Neira Ayuso <alvaroneay@gmail.com>

Signed-off-by: Alvaro Neira Ayuso <alvaroneay@gmail.com>
Signed-off-by: Ana Rey <anarey@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/uapi/linux/netfilter/nf_tables.h
net/netfilter/nft_meta.c