diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-12-31 03:33:50 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-12-31 03:33:50 +0000 |
commit | 15c0b725849875c718b168a26e13872e163cde4c (patch) | |
tree | 687a5425953ae362ef285c6c671f09a05d3fa3c0 /networking/libiproute | |
parent | ccdc13d306c0a8d2735488bf8e46503f7e567767 (diff) | |
download | busybox-w32-1_13_2.tar.gz busybox-w32-1_13_2.tar.bz2 busybox-w32-1_13_2.zip |
Apply post 1.13.1 patches, bump to 1.13.21_13_2
Diffstat (limited to 'networking/libiproute')
-rw-r--r-- | networking/libiproute/iptunnel.c | 45 |
1 files changed, 43 insertions, 2 deletions
diff --git a/networking/libiproute/iptunnel.c b/networking/libiproute/iptunnel.c index 65c27f936..14fc6bbcc 100644 --- a/networking/libiproute/iptunnel.c +++ b/networking/libiproute/iptunnel.c | |||
@@ -6,7 +6,6 @@ | |||
6 | * | 6 | * |
7 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> | 7 | * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> |
8 | * | 8 | * |
9 | * | ||
10 | * Changes: | 9 | * Changes: |
11 | * | 10 | * |
12 | * Rani Assaf <rani@magic.metawire.com> 980929: resolve addresses | 11 | * Rani Assaf <rani@magic.metawire.com> 980929: resolve addresses |
@@ -18,10 +17,52 @@ | |||
18 | #include <net/if.h> | 17 | #include <net/if.h> |
19 | #include <net/if_arp.h> | 18 | #include <net/if_arp.h> |
20 | #include <asm/types.h> | 19 | #include <asm/types.h> |
20 | |||
21 | #ifndef __constant_htons | 21 | #ifndef __constant_htons |
22 | #define __constant_htons htons | 22 | #define __constant_htons htons |
23 | #endif | 23 | #endif |
24 | #include <linux/if_tunnel.h> | 24 | |
25 | // FYI: #define SIOCDEVPRIVATE 0x89F0 | ||
26 | |||
27 | /* From linux/if_tunnel.h. #including it proved troublesome | ||
28 | * (redefiniton errors due to name collisions in linux/ and net[inet]/) */ | ||
29 | #define SIOCGETTUNNEL (SIOCDEVPRIVATE + 0) | ||
30 | #define SIOCADDTUNNEL (SIOCDEVPRIVATE + 1) | ||
31 | #define SIOCDELTUNNEL (SIOCDEVPRIVATE + 2) | ||
32 | #define SIOCCHGTUNNEL (SIOCDEVPRIVATE + 3) | ||
33 | //#define SIOCGETPRL (SIOCDEVPRIVATE + 4) | ||
34 | //#define SIOCADDPRL (SIOCDEVPRIVATE + 5) | ||
35 | //#define SIOCDELPRL (SIOCDEVPRIVATE + 6) | ||
36 | //#define SIOCCHGPRL (SIOCDEVPRIVATE + 7) | ||
37 | #define GRE_CSUM __constant_htons(0x8000) | ||
38 | //#define GRE_ROUTING __constant_htons(0x4000) | ||
39 | #define GRE_KEY __constant_htons(0x2000) | ||
40 | #define GRE_SEQ __constant_htons(0x1000) | ||
41 | //#define GRE_STRICT __constant_htons(0x0800) | ||
42 | //#define GRE_REC __constant_htons(0x0700) | ||
43 | //#define GRE_FLAGS __constant_htons(0x00F8) | ||
44 | //#define GRE_VERSION __constant_htons(0x0007) | ||
45 | struct ip_tunnel_parm { | ||
46 | char name[IFNAMSIZ]; | ||
47 | int link; | ||
48 | uint16_t i_flags; | ||
49 | uint16_t o_flags; | ||
50 | uint32_t i_key; | ||
51 | uint32_t o_key; | ||
52 | struct iphdr iph; | ||
53 | }; | ||
54 | /* SIT-mode i_flags */ | ||
55 | //#define SIT_ISATAP 0x0001 | ||
56 | //struct ip_tunnel_prl { | ||
57 | // uint32_t addr; | ||
58 | // uint16_t flags; | ||
59 | // uint16_t __reserved; | ||
60 | // uint32_t datalen; | ||
61 | // uint32_t __reserved2; | ||
62 | // /* data follows */ | ||
63 | //}; | ||
64 | ///* PRL flags */ | ||
65 | //#define PRL_DEFAULT 0x0001 | ||
25 | 66 | ||
26 | #include "ip_common.h" /* #include "libbb.h" is inside */ | 67 | #include "ip_common.h" /* #include "libbb.h" is inside */ |
27 | #include "rt_names.h" | 68 | #include "rt_names.h" |