June 2025 | ||||||
Mo | Tu | We | Th | Fr | Sa | Su |
26 | 27 | 28 | 29 | 30 | 31 | 1 |
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 1 | 2 | 3 | 4 | 5 | 6 |
01: #ifndef _XT_RATE_H 02: #define _XT_RATE_H 03: 04: #include <linux/types.h> 05: 06: /* timings are in milliseconds. */ 07: #define XT_LIMIT_SCALE 10000 08: 09: struct xt_limit_priv; 10: 11: /* 1/10,000 sec period => max of 10,000/sec. Min rate is then 429490 12: seconds, or one every 59 hours. */ 13: struct xt_rateinfo { 14: __u32 avg; /* Average secs between packets * scale */ 15: __u32 burst; /* Period multiplier for upper limit. */ 16: 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; 21: 22: struct xt_limit_priv *master; 23: }; 24: #endif /*_XT_RATE_H*/ 25: