xt_HMARK.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 XT_HMARK_H_ 20#define XT_HMARK_H_ 21#include <linux/types.h> 22#include <linux/netfilter.h> 23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24enum { 25 XT_HMARK_SADDR_MASK, 26 XT_HMARK_DADDR_MASK, 27 XT_HMARK_SPI, 28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29 XT_HMARK_SPI_MASK, 30 XT_HMARK_SPORT, 31 XT_HMARK_DPORT, 32 XT_HMARK_SPORT_MASK, 33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34 XT_HMARK_DPORT_MASK, 35 XT_HMARK_PROTO_MASK, 36 XT_HMARK_RND, 37 XT_HMARK_MODULUS, 38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39 XT_HMARK_OFFSET, 40 XT_HMARK_CT, 41 XT_HMARK_METHOD_L3, 42 XT_HMARK_METHOD_L3_4, 43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44}; 45#define XT_HMARK_FLAG(flag) (1 << flag) 46union hmark_ports { 47 struct { 48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49 __u16 src; 50 __u16 dst; 51 } p16; 52 struct { 53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54 __be16 src; 55 __be16 dst; 56 } b16; 57 __u32 v32; 58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59 __be32 b32; 60}; 61struct xt_hmark_info { 62 union nf_inet_addr src_mask; 63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 64 union nf_inet_addr dst_mask; 65 union hmark_ports port_mask; 66 union hmark_ports port_set; 67 __u32 flags; 68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 69 __u16 proto_mask; 70 __u32 hashrnd; 71 __u32 hmodulus; 72 __u32 hoffset; 73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 74}; 75#endif 76