netfilter: bridge: pass L2 header and VLAN as netlink attributes in queues to userspace
[linux-2.6-microblaze.git] / include / uapi / linux / netfilter / nfnetlink_queue.h
index b67a853..ae30841 100644 (file)
@@ -30,6 +30,14 @@ struct nfqnl_msg_packet_timestamp {
        __aligned_be64  usec;
 };
 
+enum nfqnl_vlan_attr {
+       NFQA_VLAN_UNSPEC,
+       NFQA_VLAN_PROTO,                /* __be16 skb vlan_proto */
+       NFQA_VLAN_TCI,                  /* __be16 skb htons(vlan_tci) */
+       __NFQA_VLAN_MAX,
+};
+#define NFQA_VLAN_MAX (__NFQA_VLAN_MAX + 1)
+
 enum nfqnl_attr_type {
        NFQA_UNSPEC,
        NFQA_PACKET_HDR,
@@ -50,6 +58,8 @@ enum nfqnl_attr_type {
        NFQA_UID,                       /* __u32 sk uid */
        NFQA_GID,                       /* __u32 sk gid */
        NFQA_SECCTX,                    /* security context string */
+       NFQA_VLAN,                      /* nested attribute: packet vlan info */
+       NFQA_L2HDR,                     /* full L2 header */
 
        __NFQA_MAX
 };