diff options
Diffstat (limited to 'include/linux/if_tunnel.h')
-rw-r--r-- | include/linux/if_tunnel.h | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/include/linux/if_tunnel.h b/include/linux/if_tunnel.h index 5a9aae4adb4..1822d635be6 100644 --- a/include/linux/if_tunnel.h +++ b/include/linux/if_tunnel.h | |||
@@ -5,6 +5,7 @@ | |||
5 | 5 | ||
6 | #ifdef __KERNEL__ | 6 | #ifdef __KERNEL__ |
7 | #include <linux/ip.h> | 7 | #include <linux/ip.h> |
8 | #include <linux/in6.h> | ||
8 | #endif | 9 | #endif |
9 | 10 | ||
10 | #define SIOCGETTUNNEL (SIOCDEVPRIVATE + 0) | 11 | #define SIOCGETTUNNEL (SIOCDEVPRIVATE + 0) |
@@ -15,6 +16,10 @@ | |||
15 | #define SIOCADDPRL (SIOCDEVPRIVATE + 5) | 16 | #define SIOCADDPRL (SIOCDEVPRIVATE + 5) |
16 | #define SIOCDELPRL (SIOCDEVPRIVATE + 6) | 17 | #define SIOCDELPRL (SIOCDEVPRIVATE + 6) |
17 | #define SIOCCHGPRL (SIOCDEVPRIVATE + 7) | 18 | #define SIOCCHGPRL (SIOCDEVPRIVATE + 7) |
19 | #define SIOCGET6RD (SIOCDEVPRIVATE + 8) | ||
20 | #define SIOCADD6RD (SIOCDEVPRIVATE + 9) | ||
21 | #define SIOCDEL6RD (SIOCDEVPRIVATE + 10) | ||
22 | #define SIOCCHG6RD (SIOCDEVPRIVATE + 11) | ||
18 | 23 | ||
19 | #define GRE_CSUM __cpu_to_be16(0x8000) | 24 | #define GRE_CSUM __cpu_to_be16(0x8000) |
20 | #define GRE_ROUTING __cpu_to_be16(0x4000) | 25 | #define GRE_ROUTING __cpu_to_be16(0x4000) |
@@ -25,8 +30,7 @@ | |||
25 | #define GRE_FLAGS __cpu_to_be16(0x00F8) | 30 | #define GRE_FLAGS __cpu_to_be16(0x00F8) |
26 | #define GRE_VERSION __cpu_to_be16(0x0007) | 31 | #define GRE_VERSION __cpu_to_be16(0x0007) |
27 | 32 | ||
28 | struct ip_tunnel_parm | 33 | struct ip_tunnel_parm { |
29 | { | ||
30 | char name[IFNAMSIZ]; | 34 | char name[IFNAMSIZ]; |
31 | int link; | 35 | int link; |
32 | __be16 i_flags; | 36 | __be16 i_flags; |
@@ -51,8 +55,14 @@ struct ip_tunnel_prl { | |||
51 | /* PRL flags */ | 55 | /* PRL flags */ |
52 | #define PRL_DEFAULT 0x0001 | 56 | #define PRL_DEFAULT 0x0001 |
53 | 57 | ||
54 | enum | 58 | struct ip_tunnel_6rd { |
55 | { | 59 | struct in6_addr prefix; |
60 | __be32 relay_prefix; | ||
61 | __u16 prefixlen; | ||
62 | __u16 relay_prefixlen; | ||
63 | }; | ||
64 | |||
65 | enum { | ||
56 | IFLA_GRE_UNSPEC, | 66 | IFLA_GRE_UNSPEC, |
57 | IFLA_GRE_LINK, | 67 | IFLA_GRE_LINK, |
58 | IFLA_GRE_IFLAGS, | 68 | IFLA_GRE_IFLAGS, |