aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/if_tunnel.h11
-rw-r--r--include/net/ipip.h13
2 files changed, 24 insertions, 0 deletions
diff --git a/include/linux/if_tunnel.h b/include/linux/if_tunnel.h
index 5a9aae4adb44..c53c8e016940 100644
--- a/include/linux/if_tunnel.h
+++ b/include/linux/if_tunnel.h
@@ -15,6 +15,10 @@
15#define SIOCADDPRL (SIOCDEVPRIVATE + 5) 15#define SIOCADDPRL (SIOCDEVPRIVATE + 5)
16#define SIOCDELPRL (SIOCDEVPRIVATE + 6) 16#define SIOCDELPRL (SIOCDEVPRIVATE + 6)
17#define SIOCCHGPRL (SIOCDEVPRIVATE + 7) 17#define SIOCCHGPRL (SIOCDEVPRIVATE + 7)
18#define SIOCGET6RD (SIOCDEVPRIVATE + 8)
19#define SIOCADD6RD (SIOCDEVPRIVATE + 9)
20#define SIOCDEL6RD (SIOCDEVPRIVATE + 10)
21#define SIOCCHG6RD (SIOCDEVPRIVATE + 11)
18 22
19#define GRE_CSUM __cpu_to_be16(0x8000) 23#define GRE_CSUM __cpu_to_be16(0x8000)
20#define GRE_ROUTING __cpu_to_be16(0x4000) 24#define GRE_ROUTING __cpu_to_be16(0x4000)
@@ -51,6 +55,13 @@ struct ip_tunnel_prl {
51/* PRL flags */ 55/* PRL flags */
52#define PRL_DEFAULT 0x0001 56#define PRL_DEFAULT 0x0001
53 57
58struct ip_tunnel_6rd {
59 struct in6_addr prefix;
60 __be32 relay_prefix;
61 __u16 prefixlen;
62 __u16 relay_prefixlen;
63};
64
54enum 65enum
55{ 66{
56 IFLA_GRE_UNSPEC, 67 IFLA_GRE_UNSPEC,
diff --git a/include/net/ipip.h b/include/net/ipip.h
index 0159221a8509..86f1c8bd040c 100644
--- a/include/net/ipip.h
+++ b/include/net/ipip.h
@@ -7,6 +7,15 @@
7/* Keep error state on tunnel for 30 sec */ 7/* Keep error state on tunnel for 30 sec */
8#define IPTUNNEL_ERR_TIMEO (30*HZ) 8#define IPTUNNEL_ERR_TIMEO (30*HZ)
9 9
10/* 6rd prefix/relay information */
11struct ip_tunnel_6rd_parm
12{
13 struct in6_addr prefix;
14 __be32 relay_prefix;
15 u16 prefixlen;
16 u16 relay_prefixlen;
17};
18
10struct ip_tunnel 19struct ip_tunnel
11{ 20{
12 struct ip_tunnel *next; 21 struct ip_tunnel *next;
@@ -23,6 +32,10 @@ struct ip_tunnel
23 32
24 struct ip_tunnel_parm parms; 33 struct ip_tunnel_parm parms;
25 34
35 /* for SIT */
36#ifdef CONFIG_IPV6_SIT_6RD
37 struct ip_tunnel_6rd_parm ip6rd;
38#endif
26 struct ip_tunnel_prl_entry *prl; /* potential router list */ 39 struct ip_tunnel_prl_entry *prl; /* potential router list */
27 unsigned int prl_count; /* # of entries in PRL */ 40 unsigned int prl_count; /* # of entries in PRL */
28}; 41};