Dr Andrew Scott G7VAV

My photo
 
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


xt_statistic.h
01: #ifndef _XT_STATISTIC_H
02: #define _XT_STATISTIC_H
03: 
04: #include <linux/types.h>
05: 
06: enum xt_statistic_mode {
07:         XT_STATISTIC_MODE_RANDOM,
08:         XT_STATISTIC_MODE_NTH,
09:         __XT_STATISTIC_MODE_MAX
10: };
11: #define XT_STATISTIC_MODE_MAX (__XT_STATISTIC_MODE_MAX - 1)
12: 
13: enum xt_statistic_flags {
14:         XT_STATISTIC_INVERT             = 0x1,
15: };
16: #define XT_STATISTIC_MASK               0x1
17: 
18: struct xt_statistic_priv;
19: 
20: struct xt_statistic_info {
21:         __u16                   mode;
22:         __u16                   flags;
23:         union {
24:                 struct {
25:                         __u32   probability;
26:                 } random;
27:                 struct {
28:                         __u32   every;
29:                         __u32   packet;
30:                         __u32   count; /* unused */
31:                 } nth;
32:         } u;
33:         struct xt_statistic_priv *master __attribute__((aligned(8)));
34: };
35: 
36: #endif /* _XT_STATISTIC_H */
37: 


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