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 _IP_NAT_H 20 #define _IP_NAT_H 21 #include <linux/netfilter_ipv4.h> 22 #include <linux/netfilter_ipv4/ip_conntrack_tuple.h> 23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24 #define IP_NAT_MAPPING_TYPE_MAX_NAMELEN 16 25 enum ip_nat_manip_type 26 { 27 IP_NAT_MANIP_SRC, 28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29 IP_NAT_MANIP_DST 30 }; 31 #define HOOK2MANIP(hooknum) ((hooknum) != NF_IP_POST_ROUTING && (hooknum) != NF_IP_LOCAL_IN) 32 #define IP_NAT_RANGE_MAP_IPS 1 33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34 #define IP_NAT_RANGE_PROTO_SPECIFIED 2 35 struct ip_nat_seq { 36 u_int32_t correction_pos; 37 int16_t offset_before, offset_after; 38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39 }; 40 struct ip_nat_range 41 { 42 unsigned int flags; 43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44 u_int32_t min_ip, max_ip; 45 union ip_conntrack_manip_proto min, max; 46 }; 47 struct ip_nat_multi_range_compat 48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49 { 50 unsigned int rangesize; 51 struct ip_nat_range range[1]; 52 }; 53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54 #define ip_nat_multi_range ip_nat_multi_range_compat 55 #endif 56