File: xt_quota2.h

package info (click to toggle)
xtables-addons 2.6-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,296 kB
  • ctags: 1,415
  • sloc: sh: 11,559; ansic: 10,329; perl: 186; makefile: 121
file content (25 lines) | stat: -rw-r--r-- 478 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef _XT_QUOTA_H
#define _XT_QUOTA_H

enum xt_quota_flags {
	XT_QUOTA_INVERT    = 1 << 0,
	XT_QUOTA_GROW      = 1 << 1,
	XT_QUOTA_PACKET    = 1 << 2,
	XT_QUOTA_NO_CHANGE = 1 << 3,
	XT_QUOTA_MASK      = 0x0F,
};

struct xt_quota_counter;

struct xt_quota_mtinfo2 {
	char name[15];
	u_int8_t flags;

	/* Comparison-invariant */
	aligned_u64 quota;

	/* Used internally by the kernel */
	struct xt_quota_counter *master __attribute__((aligned(8)));
};

#endif /* _XT_QUOTA_H */