]> bbs.cooldavid.org Git - net-next-2.6.git/blame - include/linux/if_tunnel.h
[IPV4]: encapsulation annotations
[net-next-2.6.git] / include / linux / if_tunnel.h
CommitLineData
1da177e4
LT
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;
d5a0a1e3
AV
22 __be16 i_flags;
23 __be16 o_flags;
24 __be32 i_key;
25 __be32 o_key;
1da177e4
LT
26 struct iphdr iph;
27};
28
29#endif /* _IF_TUNNEL_H_ */