Home | History | Annotate | Download | only in netfilter
      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  ****************************************************************************
     11  ****************************************************************************/
     12 #ifndef _XT_STATISTIC_H
     13 #define _XT_STATISTIC_H
     14 
     15 enum xt_statistic_mode {
     16  XT_STATISTIC_MODE_RANDOM,
     17  XT_STATISTIC_MODE_NTH,
     18  __XT_STATISTIC_MODE_MAX
     19 };
     20 #define XT_STATISTIC_MODE_MAX (__XT_STATISTIC_MODE_MAX - 1)
     21 
     22 enum xt_statistic_flags {
     23  XT_STATISTIC_INVERT = 0x1,
     24 };
     25 #define XT_STATISTIC_MASK 0x1
     26 
     27 struct xt_statistic_info {
     28  u_int16_t mode;
     29  u_int16_t flags;
     30  union {
     31  struct {
     32  u_int32_t probability;
     33  } random;
     34  struct {
     35  u_int32_t every;
     36  u_int32_t packet;
     37  u_int32_t count;
     38  } nth;
     39  } u;
     40  struct xt_statistic_info *master __attribute__((aligned(8)));
     41 };
     42 
     43 #endif
     44