xt_statistic.h revision d7db594b8d1dab36b711bd887a9dd21675c87243
1/****************************************************************************
2 ****************************************************************************
3 ***
4 ***   This header was automatically generated from a Linux kernel header
5 ***   of the same name, to make information necessary for userspace to
6 ***   call into the kernel available to libc.  It contains only constants,
7 ***   structures, and macros generated from the original header, and thus,
8 ***   contains no copyrightable information.
9 ***
10 ***   To edit the content of this header, modify the corresponding
11 ***   source file (e.g. under external/kernel-headers/original/) then
12 ***   run bionic/libc/kernel/tools/update_all.py
13 ***
14 ***   Any manual change here will be lost the next time this script will
15 ***   be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _XT_STATISTIC_H
20#define _XT_STATISTIC_H
21#include <linux/types.h>
22enum xt_statistic_mode {
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24  XT_STATISTIC_MODE_RANDOM,
25  XT_STATISTIC_MODE_NTH,
26  __XT_STATISTIC_MODE_MAX
27};
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#define XT_STATISTIC_MODE_MAX (__XT_STATISTIC_MODE_MAX - 1)
30enum xt_statistic_flags {
31  XT_STATISTIC_INVERT = 0x1,
32};
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34#define XT_STATISTIC_MASK 0x1
35struct xt_statistic_priv;
36struct xt_statistic_info {
37  __u16 mode;
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39  __u16 flags;
40  union {
41    struct {
42      __u32 probability;
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44    } random;
45    struct {
46      __u32 every;
47      __u32 packet;
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49      __u32 count;
50    } nth;
51  } u;
52  struct xt_statistic_priv * master __attribute__((aligned(8)));
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54};
55#endif
56