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> 22 enum xt_statistic_mode { 23 XT_STATISTIC_MODE_RANDOM, 24 XT_STATISTIC_MODE_NTH, 25 __XT_STATISTIC_MODE_MAX 26 }; 27 #define XT_STATISTIC_MODE_MAX (__XT_STATISTIC_MODE_MAX - 1) 28 enum xt_statistic_flags { 29 XT_STATISTIC_INVERT = 0x1, 30 }; 31 #define XT_STATISTIC_MASK 0x1 32 struct xt_statistic_priv; 33 struct xt_statistic_info { 34 __u16 mode; 35 __u16 flags; 36 union { 37 struct { 38 __u32 probability; 39 } random; 40 struct { 41 __u32 every; 42 __u32 packet; 43 __u32 count; 44 } nth; 45 } u; 46 struct xt_statistic_priv * master __attribute__((aligned(8))); 47 }; 48 #endif 49