mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-07 05:05:12 +02:00
Add xt_quota2
Support for inversion, upcounting, and changing the quota/counter through sysfs.
This commit is contained in:
24
extensions/xt_quota2.h
Normal file
24
extensions/xt_quota2.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#ifndef _XT_QUOTA_H
|
||||
#define _XT_QUOTA_H
|
||||
|
||||
enum xt_quota_flags {
|
||||
XT_QUOTA_INVERT = 0x1,
|
||||
XT_QUOTA_GROW = 0x2,
|
||||
XT_QUOTA_MASK = 0x3,
|
||||
};
|
||||
|
||||
struct quota_sysfs_entry;
|
||||
|
||||
struct xt_quota_mtinfo2 {
|
||||
char name[31];
|
||||
u_int8_t flags;
|
||||
|
||||
/* Comparison-invariant section */
|
||||
aligned_u64 quota;
|
||||
|
||||
/* Used internally by the kernel */
|
||||
struct xt_quota_mtinfo2 *master __attribute__((aligned(8)));
|
||||
void *procfs_entry __attribute__((aligned(8)));
|
||||
};
|
||||
|
||||
#endif /* _XT_QUOTA_H */
|
Reference in New Issue
Block a user