p54pci: rx frame length check
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / include / linux / if_tunnel.h
blob1822d635be6b461124e659cfaa0861474a25e0bf
1 #ifndef _IF_TUNNEL_H_
2 #define _IF_TUNNEL_H_
4 #include <linux/types.h>
6 #ifdef __KERNEL__
7 #include <linux/ip.h>
8 #include <linux/in6.h>
9 #endif
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)
33 struct ip_tunnel_parm {
34 char name[IFNAMSIZ];
35 int link;
36 __be16 i_flags;
37 __be16 o_flags;
38 __be32 i_key;
39 __be32 o_key;
40 struct iphdr iph;
43 /* SIT-mode i_flags */
44 #define SIT_ISATAP 0x0001
46 struct ip_tunnel_prl {
47 __be32 addr;
48 __u16 flags;
49 __u16 __reserved;
50 __u32 datalen;
51 __u32 __reserved2;
52 /* data follows */
55 /* PRL flags */
56 #define PRL_DEFAULT 0x0001
58 struct ip_tunnel_6rd {
59 struct in6_addr prefix;
60 __be32 relay_prefix;
61 __u16 prefixlen;
62 __u16 relay_prefixlen;
65 enum {
66 IFLA_GRE_UNSPEC,
67 IFLA_GRE_LINK,
68 IFLA_GRE_IFLAGS,
69 IFLA_GRE_OFLAGS,
70 IFLA_GRE_IKEY,
71 IFLA_GRE_OKEY,
72 IFLA_GRE_LOCAL,
73 IFLA_GRE_REMOTE,
74 IFLA_GRE_TTL,
75 IFLA_GRE_TOS,
76 IFLA_GRE_PMTUDISC,
77 __IFLA_GRE_MAX,
80 #define IFLA_GRE_MAX (__IFLA_GRE_MAX - 1)
82 #endif /* _IF_TUNNEL_H_ */