You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
netfilter: nf_tables: Add new attributes into nft_set to store user data.
User data is stored at after 'nft_set_ops' private data into 'data[]' flexible array. The field 'udata' points to user data and 'udlen' stores its length. Add new flag NFTA_SET_USERDATA. Signed-off-by: Carlos Falgueras García <carlosfg@riseup.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
committed by
Pablo Neira Ayuso
parent
eb075954e9
commit
e6d8ecac9e
@@ -291,6 +291,8 @@ void nft_unregister_set(struct nft_set_ops *ops);
|
||||
* @timeout: default timeout value in msecs
|
||||
* @gc_int: garbage collection interval in msecs
|
||||
* @policy: set parameterization (see enum nft_set_policies)
|
||||
* @udlen: user data length
|
||||
* @udata: user data
|
||||
* @ops: set ops
|
||||
* @pnet: network namespace
|
||||
* @flags: set flags
|
||||
@@ -310,6 +312,8 @@ struct nft_set {
|
||||
u64 timeout;
|
||||
u32 gc_int;
|
||||
u16 policy;
|
||||
u16 udlen;
|
||||
unsigned char *udata;
|
||||
/* runtime data below here */
|
||||
const struct nft_set_ops *ops ____cacheline_aligned;
|
||||
possible_net_t pnet;
|
||||
|
||||
Reference in New Issue
Block a user