aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/netfilter/xt_statistic.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/netfilter/xt_statistic.h')
-rw-r--r--include/linux/netfilter/xt_statistic.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/include/linux/netfilter/xt_statistic.h b/include/linux/netfilter/xt_statistic.h
index 3d38bc97504..095f3c66f45 100644
--- a/include/linux/netfilter/xt_statistic.h
+++ b/include/linux/netfilter/xt_statistic.h
@@ -1,6 +1,8 @@
1#ifndef _XT_STATISTIC_H 1#ifndef _XT_STATISTIC_H
2#define _XT_STATISTIC_H 2#define _XT_STATISTIC_H
3 3
4#include <linux/types.h>
5
4enum xt_statistic_mode { 6enum xt_statistic_mode {
5 XT_STATISTIC_MODE_RANDOM, 7 XT_STATISTIC_MODE_RANDOM,
6 XT_STATISTIC_MODE_NTH, 8 XT_STATISTIC_MODE_NTH,
@@ -14,17 +16,17 @@ enum xt_statistic_flags {
14#define XT_STATISTIC_MASK 0x1 16#define XT_STATISTIC_MASK 0x1
15 17
16struct xt_statistic_info { 18struct xt_statistic_info {
17 u_int16_t mode; 19 __u16 mode;
18 u_int16_t flags; 20 __u16 flags;
19 union { 21 union {
20 struct { 22 struct {
21 u_int32_t probability; 23 __u32 probability;
22 } random; 24 } random;
23 struct { 25 struct {
24 u_int32_t every; 26 __u32 every;
25 u_int32_t packet; 27 __u32 packet;
26 /* Used internally by the kernel */ 28 /* Used internally by the kernel */
27 u_int32_t count; 29 __u32 count;
28 } nth; 30 } nth;
29 } u; 31 } u;
30 struct xt_statistic_info *master __attribute__((aligned(8))); 32 struct xt_statistic_info *master __attribute__((aligned(8)));