Add xt_quota2

Support for inversion, upcounting, and changing the quota/counter
through sysfs.
This commit is contained in:
Jan Engelhardt
2008-06-07 13:36:56 +02:00
parent df6d795d22
commit a1e915a984
7 changed files with 328 additions and 0 deletions

24
extensions/xt_quota2.h Normal file
View 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 */