Dr Andrew Scott G7VAV

My photo
 
July 2025
Mo Tu We Th Fr Sa Su
30 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 31 1 2 3
4 5 6 7 8 9 10


ebt_limit.h
01: #ifndef __LINUX_BRIDGE_EBT_LIMIT_H
02: #define __LINUX_BRIDGE_EBT_LIMIT_H
03: 
04: #include <linux/types.h>
05: 
06: #define EBT_LIMIT_MATCH "limit"
07: 
08: /* timings are in milliseconds. */
09: #define EBT_LIMIT_SCALE 10000
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: 
14: struct ebt_limit_info {
15:         __u32 avg;    /* Average secs between packets * scale */
16:         __u32 burst;  /* Period multiplier for upper limit. */
17: 
18:         /* Used internally by the kernel */
19:         unsigned long prev;
20:         __u32 credit;
21:         __u32 credit_cap, cost;
22: };
23: 
24: #endif
25: 


for client (none)
© Andrew Scott 2006 - 2025,
All Rights Reserved
http://www.andrew-scott.uk/
Andrew Scott
http://www.andrew-scott.co.uk/