netfilter: xtables: avoid pointer to self
[safe/jmp/linux-2.6] / include / linux / netfilter / xt_limit.h
1 #ifndef _XT_RATE_H
2 #define _XT_RATE_H
3
4 /* timings are in milliseconds. */
5 #define XT_LIMIT_SCALE 10000
6
7 struct xt_limit_priv;
8
9 /* 1/10,000 sec period => max of 10,000/sec.  Min rate is then 429490
10    seconds, or one every 59 hours. */
11 struct xt_rateinfo {
12         u_int32_t avg;    /* Average secs between packets * scale */
13         u_int32_t burst;  /* Period multiplier for upper limit. */
14
15         /* Used internally by the kernel */
16         unsigned long prev; /* moved to xt_limit_priv */
17         u_int32_t credit; /* moved to xt_limit_priv */
18         u_int32_t credit_cap, cost;
19
20         struct xt_limit_priv *master;
21 };
22 #endif /*_XT_RATE_H*/