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 _IP6_TUNNEL_H 20#define _IP6_TUNNEL_H 21#include <linux/types.h> 22#define IPV6_TLV_TNL_ENCAP_LIMIT 4 23#define IPV6_DEFAULT_TNL_ENCAP_LIMIT 4 24#define IP6_TNL_F_IGN_ENCAP_LIMIT 0x1 25#define IP6_TNL_F_USE_ORIG_TCLASS 0x2 26#define IP6_TNL_F_USE_ORIG_FLOWLABEL 0x4 27#define IP6_TNL_F_MIP6_DEV 0x8 28#define IP6_TNL_F_RCV_DSCP_COPY 0x10 29#define IP6_TNL_F_USE_ORIG_FWMARK 0x20 30struct ip6_tnl_parm { 31 char name[IFNAMSIZ]; 32 int link; 33 __u8 proto; 34 __u8 encap_limit; 35 __u8 hop_limit; 36 __be32 flowinfo; 37 __u32 flags; 38 struct in6_addr laddr; 39 struct in6_addr raddr; 40}; 41struct ip6_tnl_parm2 { 42 char name[IFNAMSIZ]; 43 int link; 44 __u8 proto; 45 __u8 encap_limit; 46 __u8 hop_limit; 47 __be32 flowinfo; 48 __u32 flags; 49 struct in6_addr laddr; 50 struct in6_addr raddr; 51 __be16 i_flags; 52 __be16 o_flags; 53 __be32 i_key; 54 __be32 o_key; 55}; 56#endif 57