summaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2014-02-18 18:06:49 +0000
committerPablo Neira Ayuso <pablo@netfilter.org>2014-02-25 11:29:23 +0100
commit67a8fc27cca06e185c1ab39baaccd2103f6f9f51 (patch)
treebc3cb68c22bd37a3b5285ca6b0819ea9c760cffb /include/net
parent0eb5db7ad302a24fe6f0eb4bfd235357047a28db (diff)
downloadop-kernel-dev-67a8fc27cca06e185c1ab39baaccd2103f6f9f51.zip
op-kernel-dev-67a8fc27cca06e185c1ab39baaccd2103f6f9f51.tar.gz
netfilter: nf_tables: add nft_dereference() macro
Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/netfilter/nf_tables.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/net/netfilter/nf_tables.h b/include/net/netfilter/nf_tables.h
index e7e14ff..81abd61 100644
--- a/include/net/netfilter/nf_tables.h
+++ b/include/net/netfilter/nf_tables.h
@@ -3,6 +3,7 @@
#include <linux/list.h>
#include <linux/netfilter.h>
+#include <linux/netfilter/nfnetlink.h>
#include <linux/netfilter/x_tables.h>
#include <linux/netfilter/nf_tables.h>
#include <net/netlink.h>
@@ -521,6 +522,9 @@ void nft_unregister_chain_type(const struct nf_chain_type *);
int nft_register_expr(struct nft_expr_type *);
void nft_unregister_expr(struct nft_expr_type *);
+#define nft_dereference(p) \
+ nfnl_dereference(p, NFNL_SUBSYS_NFTABLES)
+
#define MODULE_ALIAS_NFT_FAMILY(family) \
MODULE_ALIAS("nft-afinfo-" __stringify(family))
OpenPOWER on IntegriCloud