blob: 54a379c5a2852c49211569938ba3b3b5cb3fa4a5 [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
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 Cheng655a7c02013-10-16 16:09:24 -07007#ifndef _IP6_TUNNEL_H
8#define _IP6_TUNNEL_H
9#include <linux/types.h>
Christopher Ferris525ce912017-07-26 13:12:53 -070010#include <linux/if.h>
11#include <linux/in6.h>
Ben Cheng655a7c02013-10-16 16:09:24 -070012#define IPV6_TLV_TNL_ENCAP_LIMIT 4
Ben Cheng655a7c02013-10-16 16:09:24 -070013#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 Cheng655a7c02013-10-16 16:09:24 -070017#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 Ferris934ec942018-01-31 15:29:16 -080020#define IP6_TNL_F_ALLOW_LOCAL_REMOTE 0x40
Ben Cheng655a7c02013-10-16 16:09:24 -070021struct ip6_tnl_parm {
Tao Baod7db5942015-01-28 10:07:51 -080022 char name[IFNAMSIZ];
23 int link;
24 __u8 proto;
25 __u8 encap_limit;
Tao Baod7db5942015-01-28 10:07:51 -080026 __u8 hop_limit;
27 __be32 flowinfo;
28 __u32 flags;
29 struct in6_addr laddr;
Tao Baod7db5942015-01-28 10:07:51 -080030 struct in6_addr raddr;
Ben Cheng655a7c02013-10-16 16:09:24 -070031};
32struct ip6_tnl_parm2 {
Tao Baod7db5942015-01-28 10:07:51 -080033 char name[IFNAMSIZ];
Tao Baod7db5942015-01-28 10:07:51 -080034 int link;
35 __u8 proto;
36 __u8 encap_limit;
37 __u8 hop_limit;
Tao Baod7db5942015-01-28 10:07:51 -080038 __be32 flowinfo;
39 __u32 flags;
40 struct in6_addr laddr;
41 struct in6_addr raddr;
Tao Baod7db5942015-01-28 10:07:51 -080042 __be16 i_flags;
43 __be16 o_flags;
44 __be32 i_key;
45 __be32 o_key;
Ben Cheng655a7c02013-10-16 16:09:24 -070046};
47#endif