Linux-2.6.12-rc2
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / include / linux / netfilter_ipv4 / ipt_limit.h
blob256453409e21f87b26a623fb18a3fb05b45d781f
1 #ifndef _IPT_RATE_H
2 #define _IPT_RATE_H
4 /* timings are in milliseconds. */
5 #define IPT_LIMIT_SCALE 10000
7 /* 1/10,000 sec period => max of 10,000/sec. Min rate is then 429490
8 seconds, or one every 59 hours. */
9 struct ipt_rateinfo {
10 u_int32_t avg; /* Average secs between packets * scale */
11 u_int32_t burst; /* Period multiplier for upper limit. */
13 /* Used internally by the kernel */
14 unsigned long prev;
15 u_int32_t credit;
16 u_int32_t credit_cap, cost;
18 /* Ugly, ugly fucker. */
19 struct ipt_rateinfo *master;
21 #endif /*_IPT_RATE_H*/