aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2015-04-10 21:27:38 -0400
committerPablo Neira Ayuso <pablo@netfilter.org>2015-04-13 11:17:30 -0400
commitd0a11fc3dc4ab4c717642c9c15c8ad1cbc00d2ec (patch)
treed3dca65a7ca6c2e95b11d9dd108bdeec660b957c /include/net
parent49499c3e6e18b7677a63316f3ff54a16533dc28f (diff)
netfilter: nf_tables: support variable sized data in nft_data_init()
Add a size argument to nft_data_init() and pass in the available space. This will be used by the following patches to support variable sized set element data. 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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/net/netfilter/nf_tables.h b/include/net/netfilter/nf_tables.h
index 1f9b848c778c..160577bf0f0a 100644
--- a/include/net/netfilter/nf_tables.h
+++ b/include/net/netfilter/nf_tables.h
@@ -110,7 +110,8 @@ struct nft_data_desc {
110 unsigned int len; 110 unsigned int len;
111}; 111};
112 112
113int nft_data_init(const struct nft_ctx *ctx, struct nft_data *data, 113int nft_data_init(const struct nft_ctx *ctx,
114 struct nft_data *data, unsigned int size,
114 struct nft_data_desc *desc, const struct nlattr *nla); 115 struct nft_data_desc *desc, const struct nlattr *nla);
115void nft_data_uninit(const struct nft_data *data, enum nft_data_types type); 116void nft_data_uninit(const struct nft_data *data, enum nft_data_types type);
116int nft_data_dump(struct sk_buff *skb, int attr, const struct nft_data *data, 117int nft_data_dump(struct sk_buff *skb, int attr, const struct nft_data *data,