diff options
Diffstat (limited to 'include/linux/netfilter/xt_limit.h')
-rw-r--r-- | include/linux/netfilter/xt_limit.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/linux/netfilter/xt_limit.h b/include/linux/netfilter/xt_limit.h index b3ce65375ec..190e98b1f7c 100644 --- a/include/linux/netfilter/xt_limit.h +++ b/include/linux/netfilter/xt_limit.h | |||
@@ -1,19 +1,21 @@ | |||
1 | #ifndef _XT_RATE_H | 1 | #ifndef _XT_RATE_H |
2 | #define _XT_RATE_H | 2 | #define _XT_RATE_H |
3 | 3 | ||
4 | #include <linux/types.h> | ||
5 | |||
4 | /* timings are in milliseconds. */ | 6 | /* timings are in milliseconds. */ |
5 | #define XT_LIMIT_SCALE 10000 | 7 | #define XT_LIMIT_SCALE 10000 |
6 | 8 | ||
7 | /* 1/10,000 sec period => max of 10,000/sec. Min rate is then 429490 | 9 | /* 1/10,000 sec period => max of 10,000/sec. Min rate is then 429490 |
8 | seconds, or one every 59 hours. */ | 10 | seconds, or one every 59 hours. */ |
9 | struct xt_rateinfo { | 11 | struct xt_rateinfo { |
10 | u_int32_t avg; /* Average secs between packets * scale */ | 12 | __u32 avg; /* Average secs between packets * scale */ |
11 | u_int32_t burst; /* Period multiplier for upper limit. */ | 13 | __u32 burst; /* Period multiplier for upper limit. */ |
12 | 14 | ||
13 | /* Used internally by the kernel */ | 15 | /* Used internally by the kernel */ |
14 | unsigned long prev; | 16 | unsigned long prev; |
15 | u_int32_t credit; | 17 | __u32 credit; |
16 | u_int32_t credit_cap, cost; | 18 | __u32 credit_cap, cost; |
17 | 19 | ||
18 | /* Ugly, ugly fucker. */ | 20 | /* Ugly, ugly fucker. */ |
19 | struct xt_rateinfo *master; | 21 | struct xt_rateinfo *master; |