1
2 #ifndef _IP6_TUNNEL_H
3 #define _IP6_TUNNEL_H
4
5 #include <linux/types.h>
6 #include <linux/if.h>
7 #include <linux/in6.h>
8
9 #define IPV6_TLV_TNL_ENCAP_LIMIT 4
10 #define IPV6_DEFAULT_TNL_ENCAP_LIMIT 4
11
12
13 #define IP6_TNL_F_IGN_ENCAP_LIMIT 0x1
14
15 #define IP6_TNL_F_USE_ORIG_TCLASS 0x2
16
17 #define IP6_TNL_F_USE_ORIG_FLOWLABEL 0x4
18
19 #define IP6_TNL_F_MIP6_DEV 0x8
20
21 #define IP6_TNL_F_RCV_DSCP_COPY 0x10
22
23 #define IP6_TNL_F_USE_ORIG_FWMARK 0x20
24
25 #define IP6_TNL_F_ALLOW_LOCAL_REMOTE 0x40
26
27 struct ip6_tnl_parm {
28 char name[IFNAMSIZ];
29 int link;
30 __u8 proto;
31 __u8 encap_limit;
32 __u8 hop_limit;
33 __be32 flowinfo;
34 __u32 flags;
35 struct in6_addr laddr;
36 struct in6_addr raddr;
37 };
38
39 struct ip6_tnl_parm2 {
40 char name[IFNAMSIZ];
41 int link;
42 __u8 proto;
43 __u8 encap_limit;
44 __u8 hop_limit;
45 __be32 flowinfo;
46 __u32 flags;
47 struct in6_addr laddr;
48 struct in6_addr raddr;
49
50 __be16 i_flags;
51 __be16 o_flags;
52 __be32 i_key;
53 __be32 o_key;
54 };
55
56 #endif