4 #include <linux/types.h>
5 #include <asm/byteorder.h>
12 #define SIOCGETTUNNEL (SIOCDEVPRIVATE + 0)
13 #define SIOCADDTUNNEL (SIOCDEVPRIVATE + 1)
14 #define SIOCDELTUNNEL (SIOCDEVPRIVATE + 2)
15 #define SIOCCHGTUNNEL (SIOCDEVPRIVATE + 3)
16 #define SIOCGETPRL (SIOCDEVPRIVATE + 4)
17 #define SIOCADDPRL (SIOCDEVPRIVATE + 5)
18 #define SIOCDELPRL (SIOCDEVPRIVATE + 6)
19 #define SIOCCHGPRL (SIOCDEVPRIVATE + 7)
20 #define SIOCGET6RD (SIOCDEVPRIVATE + 8)
21 #define SIOCADD6RD (SIOCDEVPRIVATE + 9)
22 #define SIOCDEL6RD (SIOCDEVPRIVATE + 10)
23 #define SIOCCHG6RD (SIOCDEVPRIVATE + 11)
25 #define GRE_CSUM __cpu_to_be16(0x8000)
26 #define GRE_ROUTING __cpu_to_be16(0x4000)
27 #define GRE_KEY __cpu_to_be16(0x2000)
28 #define GRE_SEQ __cpu_to_be16(0x1000)
29 #define GRE_STRICT __cpu_to_be16(0x0800)
30 #define GRE_REC __cpu_to_be16(0x0700)
31 #define GRE_FLAGS __cpu_to_be16(0x00F8)
32 #define GRE_VERSION __cpu_to_be16(0x0007)
34 struct ip_tunnel_parm {
44 /* SIT-mode i_flags */
45 #define SIT_ISATAP 0x0001
47 struct ip_tunnel_prl {
57 #define PRL_DEFAULT 0x0001
59 struct ip_tunnel_6rd {
60 struct in6_addr prefix;
63 __u16 relay_prefixlen;
81 #define IFLA_GRE_MAX (__IFLA_GRE_MAX - 1)
83 /* VTI-mode i_flags */
84 #define VTI_ISVTI 0x0001
96 #define IFLA_VTI_MAX (__IFLA_VTI_MAX - 1)
97 #endif /* _IF_TUNNEL_H_ */