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> 23enum { 24 XT_HMARK_SADDR_MASK, 25 XT_HMARK_DADDR_MASK, 26 XT_HMARK_SPI, 27 XT_HMARK_SPI_MASK, 28 XT_HMARK_SPORT, 29 XT_HMARK_DPORT, 30 XT_HMARK_SPORT_MASK, 31 XT_HMARK_DPORT_MASK, 32 XT_HMARK_PROTO_MASK, 33 XT_HMARK_RND, 34 XT_HMARK_MODULUS, 35 XT_HMARK_OFFSET, 36 XT_HMARK_CT, 37 XT_HMARK_METHOD_L3, 38 XT_HMARK_METHOD_L3_4, 39}; 40#define XT_HMARK_FLAG(flag) (1 << flag) 41union hmark_ports { 42 struct { 43 __u16 src; 44 __u16 dst; 45 } p16; 46 struct { 47 __be16 src; 48 __be16 dst; 49 } b16; 50 __u32 v32; 51 __be32 b32; 52}; 53struct xt_hmark_info { 54 union nf_inet_addr src_mask; 55 union nf_inet_addr dst_mask; 56 union hmark_ports port_mask; 57 union hmark_ports port_set; 58 __u32 flags; 59 __u16 proto_mask; 60 __u32 hashrnd; 61 __u32 hmodulus; 62 __u32 hoffset; 63}; 64#endif 65