]> 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)
commit7dbbf14455982060b2162000ccebb050bff7850f
treefc8538f532be4897462c3a0c77618c97356e7fac
parent7592685325c28f8d5210081ba5bdd88cf4758129
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