1 /* 2 * This file is auto-generated. Modifications will be lost. 3 * 4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ 5 * for more information. 6 */ 7 #ifndef _IP6_TUNNEL_H 8 #define _IP6_TUNNEL_H 9 #include <linux/types.h> 10 #include <linux/if.h> 11 #include <linux/in6.h> 12 #define IPV6_TLV_TNL_ENCAP_LIMIT 4 13 #define IPV6_DEFAULT_TNL_ENCAP_LIMIT 4 14 #define IP6_TNL_F_IGN_ENCAP_LIMIT 0x1 15 #define IP6_TNL_F_USE_ORIG_TCLASS 0x2 16 #define IP6_TNL_F_USE_ORIG_FLOWLABEL 0x4 17 #define IP6_TNL_F_MIP6_DEV 0x8 18 #define IP6_TNL_F_RCV_DSCP_COPY 0x10 19 #define IP6_TNL_F_USE_ORIG_FWMARK 0x20 20 #define IP6_TNL_F_ALLOW_LOCAL_REMOTE 0x40 21 struct ip6_tnl_parm { 22 char name[IFNAMSIZ]; 23 int link; 24 __u8 proto; 25 __u8 encap_limit; 26 __u8 hop_limit; 27 __be32 flowinfo; 28 __u32 flags; 29 struct in6_addr laddr; 30 struct in6_addr raddr; 31 }; 32 struct ip6_tnl_parm2 { 33 char name[IFNAMSIZ]; 34 int link; 35 __u8 proto; 36 __u8 encap_limit; 37 __u8 hop_limit; 38 __be32 flowinfo; 39 __u32 flags; 40 struct in6_addr laddr; 41 struct in6_addr raddr; 42 __be16 i_flags; 43 __be16 o_flags; 44 __be32 i_key; 45 __be32 o_key; 46 }; 47 #endif 48