xt_quota2.h revision 5caed2aebebf7c72dfa982f247ac35ec67a1b852
1#ifndef _XT_QUOTA_H
2#define _XT_QUOTA_H
3
4enum xt_quota_flags {
5	XT_QUOTA_INVERT    = 1 << 0,
6	XT_QUOTA_GROW      = 1 << 1,
7	XT_QUOTA_PACKET    = 1 << 2,
8	XT_QUOTA_NO_CHANGE = 1 << 3,
9	XT_QUOTA_MASK      = 0x0F,
10};
11
12struct xt_quota_counter;
13
14struct xt_quota_mtinfo2 {
15	char name[15];
16	u_int8_t flags;
17
18	/* Comparison-invariant */
19	aligned_u64 quota;
20
21	/* Used internally by the kernel */
22	struct xt_quota_counter *master __attribute__((aligned(8)));
23};
24
25#endif /* _XT_QUOTA_H */
26