xt_quota2: allow for multiple rules to share one counter

This commit is contained in:
Jan Engelhardt
2008-06-09 14:07:33 +02:00
parent a1e915a984
commit e987e2118c
2 changed files with 111 additions and 43 deletions

View File

@@ -5,20 +5,21 @@ enum xt_quota_flags {
XT_QUOTA_INVERT = 0x1,
XT_QUOTA_GROW = 0x2,
XT_QUOTA_MASK = 0x3,
XT_QUOTA_COUNTER_NAME_LENGTH = 31,
};
struct quota_sysfs_entry;
struct quota_counter;
struct xt_quota_mtinfo2 {
char name[31];
char name[XT_QUOTA_COUNTER_NAME_LENGTH];
u_int8_t flags;
/* Comparison-invariant section */
/* Comparison-invariant */
aligned_u64 quota;
/* Used internally by the kernel */
struct xt_quota_mtinfo2 *master __attribute__((aligned(8)));
void *procfs_entry __attribute__((aligned(8)));
struct quota_counter *master __attribute__((aligned(8)));
};
#endif /* _XT_QUOTA_H */