diff options
| author | Patrick McHardy <kaber@trash.net> | 2014-02-18 13:06:49 -0500 |
|---|---|---|
| committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-02-25 05:29:23 -0500 |
| commit | 67a8fc27cca06e185c1ab39baaccd2103f6f9f51 (patch) | |
| tree | bc3cb68c22bd37a3b5285ca6b0819ea9c760cffb /include | |
| parent | 0eb5db7ad302a24fe6f0eb4bfd235357047a28db (diff) | |
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')
| -rw-r--r-- | include/net/netfilter/nf_tables.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/net/netfilter/nf_tables.h b/include/net/netfilter/nf_tables.h index e7e14ffe0f6a..81abd61500f4 100644 --- a/include/net/netfilter/nf_tables.h +++ b/include/net/netfilter/nf_tables.h | |||
| @@ -3,6 +3,7 @@ | |||
| 3 | 3 | ||
| 4 | #include <linux/list.h> | 4 | #include <linux/list.h> |
| 5 | #include <linux/netfilter.h> | 5 | #include <linux/netfilter.h> |
| 6 | #include <linux/netfilter/nfnetlink.h> | ||
| 6 | #include <linux/netfilter/x_tables.h> | 7 | #include <linux/netfilter/x_tables.h> |
| 7 | #include <linux/netfilter/nf_tables.h> | 8 | #include <linux/netfilter/nf_tables.h> |
| 8 | #include <net/netlink.h> | 9 | #include <net/netlink.h> |
| @@ -521,6 +522,9 @@ void nft_unregister_chain_type(const struct nf_chain_type *); | |||
| 521 | int nft_register_expr(struct nft_expr_type *); | 522 | int nft_register_expr(struct nft_expr_type *); |
| 522 | void nft_unregister_expr(struct nft_expr_type *); | 523 | void nft_unregister_expr(struct nft_expr_type *); |
| 523 | 524 | ||
| 525 | #define nft_dereference(p) \ | ||
| 526 | nfnl_dereference(p, NFNL_SUBSYS_NFTABLES) | ||
| 527 | |||
| 524 | #define MODULE_ALIAS_NFT_FAMILY(family) \ | 528 | #define MODULE_ALIAS_NFT_FAMILY(family) \ |
| 525 | MODULE_ALIAS("nft-afinfo-" __stringify(family)) | 529 | MODULE_ALIAS("nft-afinfo-" __stringify(family)) |
| 526 | 530 | ||
