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 enum xt_statistic_mode { 22 XT_STATISTIC_MODE_RANDOM, 23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24 XT_STATISTIC_MODE_NTH, 25 __XT_STATISTIC_MODE_MAX 26 }; 27 #define XT_STATISTIC_MODE_MAX (__XT_STATISTIC_MODE_MAX - 1) 28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29 enum xt_statistic_flags { 30 XT_STATISTIC_INVERT = 0x1, 31 }; 32 #define XT_STATISTIC_MASK 0x1 33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34 struct xt_statistic_info { 35 u_int16_t mode; 36 u_int16_t flags; 37 union { 38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39 struct { 40 u_int32_t probability; 41 } random; 42 struct { 43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44 u_int32_t every; 45 u_int32_t packet; 46 u_int32_t count; 47 } nth; 48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49 } u; 50 struct xt_statistic_info *master __attribute__((aligned(8))); 51 }; 52 #endif 53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54