aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/if_tunnel.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /include/linux/if_tunnel.h
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'include/linux/if_tunnel.h')
-rw-r--r--include/linux/if_tunnel.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/include/linux/if_tunnel.h b/include/linux/if_tunnel.h
new file mode 100644
index 000000000000..bef9f8fd93b3
--- /dev/null
+++ b/include/linux/if_tunnel.h
@@ -0,0 +1,29 @@
1#ifndef _IF_TUNNEL_H_
2#define _IF_TUNNEL_H_
3
4#define SIOCGETTUNNEL (SIOCDEVPRIVATE + 0)
5#define SIOCADDTUNNEL (SIOCDEVPRIVATE + 1)
6#define SIOCDELTUNNEL (SIOCDEVPRIVATE + 2)
7#define SIOCCHGTUNNEL (SIOCDEVPRIVATE + 3)
8
9#define GRE_CSUM __constant_htons(0x8000)
10#define GRE_ROUTING __constant_htons(0x4000)
11#define GRE_KEY __constant_htons(0x2000)
12#define GRE_SEQ __constant_htons(0x1000)
13#define GRE_STRICT __constant_htons(0x0800)
14#define GRE_REC __constant_htons(0x0700)
15#define GRE_FLAGS __constant_htons(0x00F8)
16#define GRE_VERSION __constant_htons(0x0007)
17
18struct ip_tunnel_parm
19{
20 char name[IFNAMSIZ];
21 int link;
22 __u16 i_flags;
23 __u16 o_flags;
24 __u32 i_key;
25 __u32 o_key;
26 struct iphdr iph;
27};
28
29#endif /* _IF_TUNNEL_H_ */