4 #include <linux/types.h>
11 #define SIOCGETTUNNEL (SIOCDEVPRIVATE + 0)
12 #define SIOCADDTUNNEL (SIOCDEVPRIVATE + 1)
13 #define SIOCDELTUNNEL (SIOCDEVPRIVATE + 2)
14 #define SIOCCHGTUNNEL (SIOCDEVPRIVATE + 3)
15 #define SIOCGETPRL (SIOCDEVPRIVATE + 4)
16 #define SIOCADDPRL (SIOCDEVPRIVATE + 5)
17 #define SIOCDELPRL (SIOCDEVPRIVATE + 6)
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)
24 #define GRE_CSUM __cpu_to_be16(0x8000)
25 #define GRE_ROUTING __cpu_to_be16(0x4000)
26 #define GRE_KEY __cpu_to_be16(0x2000)
27 #define GRE_SEQ __cpu_to_be16(0x1000)
28 #define GRE_STRICT __cpu_to_be16(0x0800)
29 #define GRE_REC __cpu_to_be16(0x0700)
30 #define GRE_FLAGS __cpu_to_be16(0x00F8)
31 #define GRE_VERSION __cpu_to_be16(0x0007)
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
;
82 #define IFLA_GRE_MAX (__IFLA_GRE_MAX - 1)
84 #endif /* _IF_TUNNEL_H_ */