xt_hashlimit.h revision 106b3a8a7dc03c19a45e322de425ac56aafac358
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 _UAPI_XT_HASHLIMIT_H 20#define _UAPI_XT_HASHLIMIT_H 21#include <linux/types.h> 22#include <linux/if.h> 23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24#define XT_HASHLIMIT_SCALE 10000 25#define XT_HASHLIMIT_BYTE_SHIFT 4 26struct xt_hashlimit_htable; 27enum { 28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29 XT_HASHLIMIT_HASH_DIP = 1 << 0, 30 XT_HASHLIMIT_HASH_DPT = 1 << 1, 31 XT_HASHLIMIT_HASH_SIP = 1 << 2, 32 XT_HASHLIMIT_HASH_SPT = 1 << 3, 33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34 XT_HASHLIMIT_INVERT = 1 << 4, 35 XT_HASHLIMIT_BYTES = 1 << 5, 36}; 37struct hashlimit_cfg { 38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39 __u32 mode; 40 __u32 avg; 41 __u32 burst; 42 __u32 size; 43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44 __u32 max; 45 __u32 gc_interval; 46 __u32 expire; 47}; 48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49struct xt_hashlimit_info { 50 char name[IFNAMSIZ]; 51 struct hashlimit_cfg cfg; 52 struct xt_hashlimit_htable * hinfo; 53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54 union { 55 void * ptr; 56 struct xt_hashlimit_info * master; 57 } u; 58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59}; 60struct hashlimit_cfg1 { 61 __u32 mode; 62 __u32 avg; 63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 64 __u32 burst; 65 __u32 size; 66 __u32 max; 67 __u32 gc_interval; 68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 69 __u32 expire; 70 __u8 srcmask, dstmask; 71}; 72struct xt_hashlimit_mtinfo1 { 73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 74 char name[IFNAMSIZ]; 75 struct hashlimit_cfg1 cfg; 76 struct xt_hashlimit_htable * hinfo __attribute__((aligned(8))); 77}; 78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 79#endif 80