summaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorJose M. Guisado Gomez <guigom@riseup.net>2020-09-28 14:27:10 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2020-09-30 11:46:50 +0200
commit002f2176532093753cb6ced61e5ea7b8904c6cae (patch)
treecd48664b1c874120549540c54b725033655a6b47 /include/net
parent85db827a57a9311ddb3d7f9fa18d812517b2ab9a (diff)
downloadlinux-stable-002f2176532093753cb6ced61e5ea7b8904c6cae.tar.gz
linux-stable-002f2176532093753cb6ced61e5ea7b8904c6cae.tar.bz2
linux-stable-002f2176532093753cb6ced61e5ea7b8904c6cae.zip
netfilter: nf_tables: add userdata attributes to nft_chain
Enables storing userdata for nft_chain. Field udata points to user data and udlen stores its length. Adds new attribute flag NFTA_CHAIN_USERDATA. Signed-off-by: Jose M. Guisado Gomez <guigom@riseup.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/netfilter/nf_tables.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/netfilter/nf_tables.h b/include/net/netfilter/nf_tables.h
index c4c526507ddb..0bd2a081ae39 100644
--- a/include/net/netfilter/nf_tables.h
+++ b/include/net/netfilter/nf_tables.h
@@ -945,6 +945,8 @@ struct nft_chain {
bound:1,
genmask:2;
char *name;
+ u16 udlen;
+ u8 *udata;
/* Only used during control plane commit phase: */
struct nft_rule **rules_next;