mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-05 12:16:38 +02:00
23 lines
425 B
C
23 lines
425 B
C
#pragma once
|
|
|
|
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)));
|
|
};
|