netfilter: nf_tables: add netdev table to filter from ingress
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 26 May 2015 16:41:40 +0000 (18:41 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 26 May 2015 16:41:23 +0000 (18:41 +0200)
This allows us to create netdev tables that contain ingress chains. Use
skb_header_pointer() as we may see shared sk_buffs at this stage.

This change provides access to the existing nf_tables features from the ingress
hook.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netns/nftables.h
net/netfilter/Kconfig
net/netfilter/Makefile
net/netfilter/nf_tables_netdev.c [new file with mode: 0644]

index eee608b..c807811 100644 (file)
@@ -13,6 +13,7 @@ struct netns_nftables {
        struct nft_af_info      *inet;
        struct nft_af_info      *arp;
        struct nft_af_info      *bridge;
+       struct nft_af_info      *netdev;
        unsigned int            base_seq;
        u8                      gencursor;
 };
Simple merge
Simple merge
Simple merge