Elliott Hughes | 180edef | 2023-11-02 00:08:05 +0000 | [diff] [blame] | 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 | */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 7 | #ifndef _IP6_TUNNEL_H |
| 8 | #define _IP6_TUNNEL_H |
| 9 | #include <linux/types.h> |
Christopher Ferris | 525ce91 | 2017-07-26 13:12:53 -0700 | [diff] [blame] | 10 | #include <linux/if.h> |
| 11 | #include <linux/in6.h> |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 12 | #define IPV6_TLV_TNL_ENCAP_LIMIT 4 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 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 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 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 |
Christopher Ferris | 934ec94 | 2018-01-31 15:29:16 -0800 | [diff] [blame] | 20 | #define IP6_TNL_F_ALLOW_LOCAL_REMOTE 0x40 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 21 | struct ip6_tnl_parm { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 22 | char name[IFNAMSIZ]; |
| 23 | int link; |
| 24 | __u8 proto; |
| 25 | __u8 encap_limit; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 26 | __u8 hop_limit; |
| 27 | __be32 flowinfo; |
| 28 | __u32 flags; |
| 29 | struct in6_addr laddr; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 30 | struct in6_addr raddr; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 31 | }; |
| 32 | struct ip6_tnl_parm2 { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 33 | char name[IFNAMSIZ]; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 34 | int link; |
| 35 | __u8 proto; |
| 36 | __u8 encap_limit; |
| 37 | __u8 hop_limit; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 38 | __be32 flowinfo; |
| 39 | __u32 flags; |
| 40 | struct in6_addr laddr; |
| 41 | struct in6_addr raddr; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 42 | __be16 i_flags; |
| 43 | __be16 o_flags; |
| 44 | __be32 i_key; |
| 45 | __be32 o_key; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 46 | }; |
| 47 | #endif |