Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 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> |
Christopher Ferris | 525ce91 | 2017-07-26 13:12:53 -0700 | [diff] [blame] | 22 | #include <linux/if.h> |
| 23 | #include <linux/in6.h> |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 24 | #define IPV6_TLV_TNL_ENCAP_LIMIT 4 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 25 | #define IPV6_DEFAULT_TNL_ENCAP_LIMIT 4 |
| 26 | #define IP6_TNL_F_IGN_ENCAP_LIMIT 0x1 |
| 27 | #define IP6_TNL_F_USE_ORIG_TCLASS 0x2 |
| 28 | #define IP6_TNL_F_USE_ORIG_FLOWLABEL 0x4 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 29 | #define IP6_TNL_F_MIP6_DEV 0x8 |
| 30 | #define IP6_TNL_F_RCV_DSCP_COPY 0x10 |
| 31 | #define IP6_TNL_F_USE_ORIG_FWMARK 0x20 |
Christopher Ferris | 934ec94 | 2018-01-31 15:29:16 -0800 | [diff] [blame] | 32 | #define IP6_TNL_F_ALLOW_LOCAL_REMOTE 0x40 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 33 | struct ip6_tnl_parm { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 34 | char name[IFNAMSIZ]; |
| 35 | int link; |
| 36 | __u8 proto; |
| 37 | __u8 encap_limit; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 38 | __u8 hop_limit; |
| 39 | __be32 flowinfo; |
| 40 | __u32 flags; |
| 41 | struct in6_addr laddr; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 42 | struct in6_addr raddr; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 43 | }; |
| 44 | struct ip6_tnl_parm2 { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 45 | char name[IFNAMSIZ]; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 46 | int link; |
| 47 | __u8 proto; |
| 48 | __u8 encap_limit; |
| 49 | __u8 hop_limit; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 50 | __be32 flowinfo; |
| 51 | __u32 flags; |
| 52 | struct in6_addr laddr; |
| 53 | struct in6_addr raddr; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 54 | __be16 i_flags; |
| 55 | __be16 o_flags; |
| 56 | __be32 i_key; |
| 57 | __be32 o_key; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 58 | }; |
| 59 | #endif |