blob: 228eb4eb31295aae0df29a9637e1bf416e086c62 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _IF_TUNNEL_H_
2#define _IF_TUNNEL_H_
3
Masahide NAKAMURA6fd8bb82007-01-23 22:17:23 -08004#include <linux/types.h>
5
Linus Torvalds1da177e2005-04-16 15:20:36 -07006#define SIOCGETTUNNEL (SIOCDEVPRIVATE + 0)
7#define SIOCADDTUNNEL (SIOCDEVPRIVATE + 1)
8#define SIOCDELTUNNEL (SIOCDEVPRIVATE + 2)
9#define SIOCCHGTUNNEL (SIOCDEVPRIVATE + 3)
10
11#define GRE_CSUM __constant_htons(0x8000)
12#define GRE_ROUTING __constant_htons(0x4000)
13#define GRE_KEY __constant_htons(0x2000)
14#define GRE_SEQ __constant_htons(0x1000)
15#define GRE_STRICT __constant_htons(0x0800)
16#define GRE_REC __constant_htons(0x0700)
17#define GRE_FLAGS __constant_htons(0x00F8)
18#define GRE_VERSION __constant_htons(0x0007)
19
Fred L. Templinc7dc89c2007-11-29 22:11:40 +110020/* i_flags values for SIT mode */
21#define SIT_ISATAP 0x0001
22
Linus Torvalds1da177e2005-04-16 15:20:36 -070023struct ip_tunnel_parm
24{
25 char name[IFNAMSIZ];
26 int link;
Al Virod5a0a1e2006-11-08 00:23:14 -080027 __be16 i_flags;
28 __be16 o_flags;
29 __be32 i_key;
30 __be32 o_key;
Linus Torvalds1da177e2005-04-16 15:20:36 -070031 struct iphdr iph;
32};
33
34#endif /* _IF_TUNNEL_H_ */