mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
netfilter: nft_quota: add depleted flag for objects
Notify on depleted quota objects. The NFT_QUOTA_F_DEPLETED flag indicates we have reached overquota. Add pointer to table from nft_object, so we can use it when sending the depletion notification to userspace. Signed-off-by: Pablo Neira Ayuso <[email protected]>
This commit is contained in:
parent
2599e98934
commit
1896531710
4 changed files with 32 additions and 8 deletions
|
|
@ -940,6 +940,7 @@ int nft_verdict_dump(struct sk_buff *skb, int type,
|
|||
* struct nft_object - nf_tables stateful object
|
||||
*
|
||||
* @list: table stateful object list node
|
||||
* @table: table this object belongs to
|
||||
* @type: pointer to object type
|
||||
* @data: pointer to object data
|
||||
* @name: name of this stateful object
|
||||
|
|
@ -950,6 +951,7 @@ int nft_verdict_dump(struct sk_buff *skb, int type,
|
|||
struct nft_object {
|
||||
struct list_head list;
|
||||
char name[NFT_OBJ_MAXNAMELEN];
|
||||
struct nft_table *table;
|
||||
u32 genmask:2,
|
||||
use:30;
|
||||
/* runtime data below here */
|
||||
|
|
|
|||
Loading…
Reference in a new issue