]> bbs.cooldavid.org Git - net-next-2.6.git/blame - include/linux/netfilter/xt_statistic.h
Merge branch 'fix/asoc' into for-linus
[net-next-2.6.git] / include / linux / netfilter / xt_statistic.h
CommitLineData
f3389805
PM
1#ifndef _XT_STATISTIC_H
2#define _XT_STATISTIC_H
3
60c195c7
AB
4#include <linux/types.h>
5
f3389805
PM
6enum xt_statistic_mode {
7 XT_STATISTIC_MODE_RANDOM,
8 XT_STATISTIC_MODE_NTH,
9 __XT_STATISTIC_MODE_MAX
10};
11#define XT_STATISTIC_MODE_MAX (__XT_STATISTIC_MODE_MAX - 1)
12
13enum xt_statistic_flags {
14 XT_STATISTIC_INVERT = 0x1,
15};
16#define XT_STATISTIC_MASK 0x1
17
acc738fe
JE
18struct xt_statistic_priv;
19
f3389805 20struct xt_statistic_info {
60c195c7
AB
21 __u16 mode;
22 __u16 flags;
f3389805
PM
23 union {
24 struct {
60c195c7 25 __u32 probability;
f3389805
PM
26 } random;
27 struct {
60c195c7
AB
28 __u32 every;
29 __u32 packet;
ba1eb95c 30 __u32 count; /* unused */
f3389805
PM
31 } nth;
32 } u;
acc738fe 33 struct xt_statistic_priv *master __attribute__((aligned(8)));
f3389805
PM
34};
35
36#endif /* _XT_STATISTIC_H */