aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ip6_tunnel.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /include/linux/ip6_tunnel.h
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'include/linux/ip6_tunnel.h')
-rw-r--r--include/linux/ip6_tunnel.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/include/linux/ip6_tunnel.h b/include/linux/ip6_tunnel.h
new file mode 100644
index 000000000000..5c23aeb104ca
--- /dev/null
+++ b/include/linux/ip6_tunnel.h
@@ -0,0 +1,34 @@
1/*
2 * $Id$
3 */
4
5#ifndef _IP6_TUNNEL_H
6#define _IP6_TUNNEL_H
7
8#define IPV6_TLV_TNL_ENCAP_LIMIT 4
9#define IPV6_DEFAULT_TNL_ENCAP_LIMIT 4
10
11/* don't add encapsulation limit if one isn't present in inner packet */
12#define IP6_TNL_F_IGN_ENCAP_LIMIT 0x1
13/* copy the traffic class field from the inner packet */
14#define IP6_TNL_F_USE_ORIG_TCLASS 0x2
15/* copy the flowlabel from the inner packet */
16#define IP6_TNL_F_USE_ORIG_FLOWLABEL 0x4
17/* being used for Mobile IPv6 */
18#define IP6_TNL_F_MIP6_DEV 0x8
19/* copy DSCP from the outer packet */
20#define IP6_TNL_F_RCV_DSCP_COPY 0x10
21
22struct ip6_tnl_parm {
23 char name[IFNAMSIZ]; /* name of tunnel device */
24 int link; /* ifindex of underlying L2 interface */
25 __u8 proto; /* tunnel protocol */
26 __u8 encap_limit; /* encapsulation limit for tunnel */
27 __u8 hop_limit; /* hop limit for tunnel */
28 __u32 flowinfo; /* traffic class and flowlabel for tunnel */
29 __u32 flags; /* tunnel flags */
30 struct in6_addr laddr; /* local tunnel end-point address */
31 struct in6_addr raddr; /* remote tunnel end-point address */
32};
33
34#endif