4 #include <linux/types.h>
6 /* timings are in milliseconds. */
7 #define XT_LIMIT_SCALE 10000
11 /* 1/10,000 sec period => max of 10,000/sec. Min rate is then 429490
12 seconds, or one every 59 hours. */
14 __u32 avg
; /* Average secs between packets * scale */
15 __u32 burst
; /* Period multiplier for upper limit. */
17 /* Used internally by the kernel */
18 unsigned long prev
; /* moved to xt_limit_priv */
19 __u32 credit
; /* moved to xt_limit_priv */
20 __u32 credit_cap
, cost
;
22 struct xt_limit_priv
*master
;