|
Last change
on this file was
2,
checked in by jglee, 11 years ago
|
|
first commit
|
-
Property svn:executable set to
*
|
|
File size:
847 bytes
|
| Line | |
|---|
| 1 | #ifndef _IF_TUNNEL_H_ |
|---|
| 2 | #define _IF_TUNNEL_H_ |
|---|
| 3 | |
|---|
| 4 | #include <linux/if.h> |
|---|
| 5 | #include <linux/ip.h> |
|---|
| 6 | #include <asm/types.h> |
|---|
| 7 | #include <asm/byteorder.h> |
|---|
| 8 | |
|---|
| 9 | #define SIOCGETTUNNEL (SIOCDEVPRIVATE + 0) |
|---|
| 10 | #define SIOCADDTUNNEL (SIOCDEVPRIVATE + 1) |
|---|
| 11 | #define SIOCDELTUNNEL (SIOCDEVPRIVATE + 2) |
|---|
| 12 | #define SIOCCHGTUNNEL (SIOCDEVPRIVATE + 3) |
|---|
| 13 | |
|---|
| 14 | #define GRE_CSUM __constant_htons(0x8000) |
|---|
| 15 | #define GRE_ROUTING __constant_htons(0x4000) |
|---|
| 16 | #define GRE_KEY __constant_htons(0x2000) |
|---|
| 17 | #define GRE_SEQ __constant_htons(0x1000) |
|---|
| 18 | #define GRE_STRICT __constant_htons(0x0800) |
|---|
| 19 | #define GRE_REC __constant_htons(0x0700) |
|---|
| 20 | #define GRE_FLAGS __constant_htons(0x00F8) |
|---|
| 21 | #define GRE_VERSION __constant_htons(0x0007) |
|---|
| 22 | |
|---|
| 23 | struct ip_tunnel_parm |
|---|
| 24 | { |
|---|
| 25 | char name[IFNAMSIZ]; |
|---|
| 26 | int link; |
|---|
| 27 | __u16 i_flags; |
|---|
| 28 | __u16 o_flags; |
|---|
| 29 | __u32 i_key; |
|---|
| 30 | __u32 o_key; |
|---|
| 31 | struct iphdr iph; |
|---|
| 32 | }; |
|---|
| 33 | |
|---|
| 34 | #endif /* _IF_TUNNEL_H_ */ |
|---|
Note: See
TracBrowser
for help on using the repository browser.