Committer: Michael Beasley <mike@snafu.setup>
[mikesnafu-overlay.git] / include / linux / netfilter_bridge / ebt_limit.h
blobd8b65000afe4a2cefcf880bfdedfc66f5ab455db
1 #ifndef __LINUX_BRIDGE_EBT_LIMIT_H
2 #define __LINUX_BRIDGE_EBT_LIMIT_H
4 #define EBT_LIMIT_MATCH "limit"
6 /* timings are in milliseconds. */
7 #define EBT_LIMIT_SCALE 10000
9 /* 1/10,000 sec period => max of 10,000/sec. Min rate is then 429490
10 seconds, or one every 59 hours. */
12 struct ebt_limit_info
14 u_int32_t avg; /* Average secs between packets * scale */
15 u_int32_t burst; /* Period multiplier for upper limit. */
17 /* Used internally by the kernel */
18 unsigned long prev;
19 u_int32_t credit;
20 u_int32_t credit_cap, cost;
23 #endif