]> git.karo-electronics.de Git - linux-beck.git/commit
netfilter: bridge: pass L2 header and VLAN as netlink attributes in queues to userspace
authorStephane Bryant <stephane.ml.bryant@gmail.com>
Sat, 26 Mar 2016 07:42:11 +0000 (08:42 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 29 Mar 2016 11:26:38 +0000 (13:26 +0200)
commit15824ab29f364abd3299ecd17ea48473d971aa79
tree09b403b832f68bdfbb3e65a016d0a692f0d2578e
parentac28634456867b23b95faccba7997a62ec430603
netfilter: bridge: pass L2 header and VLAN as netlink attributes in queues to userspace

- This creates 2 netlink attribute NFQA_VLAN and NFQA_L2HDR.
- These are filled up for the PF_BRIDGE family on the way to userspace.
- NFQA_VLAN is a nested attribute, with the NFQA_VLAN_PROTO and the
  NFQA_VLAN_TCI carrying the corresponding vlan_proto and vlan_tci
  fields from the skb using big endian ordering (and using the CFI
  bit as the VLAN_TAG_PRESENT flag in vlan_tci as in the skb)

Signed-off-by: Stephane Bryant <stephane.ml.bryant@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/uapi/linux/netfilter/nfnetlink_queue.h
net/netfilter/nfnetlink_queue.c