aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/if_tunnel.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/if_tunnel.h')
-rw-r--r--include/linux/if_tunnel.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/include/linux/if_tunnel.h b/include/linux/if_tunnel.h
index 228eb4eb3129..f20c224d544c 100644
--- a/include/linux/if_tunnel.h
+++ b/include/linux/if_tunnel.h
@@ -7,6 +7,9 @@
7#define SIOCADDTUNNEL (SIOCDEVPRIVATE + 1) 7#define SIOCADDTUNNEL (SIOCDEVPRIVATE + 1)
8#define SIOCDELTUNNEL (SIOCDEVPRIVATE + 2) 8#define SIOCDELTUNNEL (SIOCDEVPRIVATE + 2)
9#define SIOCCHGTUNNEL (SIOCDEVPRIVATE + 3) 9#define SIOCCHGTUNNEL (SIOCDEVPRIVATE + 3)
10#define SIOCADDPRL (SIOCDEVPRIVATE + 5)
11#define SIOCDELPRL (SIOCDEVPRIVATE + 6)
12#define SIOCCHGPRL (SIOCDEVPRIVATE + 7)
10 13
11#define GRE_CSUM __constant_htons(0x8000) 14#define GRE_CSUM __constant_htons(0x8000)
12#define GRE_ROUTING __constant_htons(0x4000) 15#define GRE_ROUTING __constant_htons(0x4000)
@@ -17,9 +20,6 @@
17#define GRE_FLAGS __constant_htons(0x00F8) 20#define GRE_FLAGS __constant_htons(0x00F8)
18#define GRE_VERSION __constant_htons(0x0007) 21#define GRE_VERSION __constant_htons(0x0007)
19 22
20/* i_flags values for SIT mode */
21#define SIT_ISATAP 0x0001
22
23struct ip_tunnel_parm 23struct ip_tunnel_parm
24{ 24{
25 char name[IFNAMSIZ]; 25 char name[IFNAMSIZ];
@@ -31,4 +31,16 @@ struct ip_tunnel_parm
31 struct iphdr iph; 31 struct iphdr iph;
32}; 32};
33 33
34/* SIT-mode i_flags */
35#define SIT_ISATAP 0x0001
36
37struct ip_tunnel_prl {
38 __be32 addr;
39 __u16 flags;
40 __u16 __reserved;
41};
42
43/* PRL flags */
44#define PRL_DEFAULT 0x0001
45
34#endif /* _IF_TUNNEL_H_ */ 46#endif /* _IF_TUNNEL_H_ */