diff options
| author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-12-31 03:36:02 +0000 |
|---|---|---|
| committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-12-31 03:36:02 +0000 |
| commit | 9b8f810d38a720bca94af864e2960de91aae3a29 (patch) | |
| tree | 10732e1683a0bd01ff263625e1a677b4c0974be2 | |
| parent | 9343da45d3f226cc8b45879ac8dbacac2911cdd8 (diff) | |
| download | busybox-w32-1_12_4.tar.gz busybox-w32-1_12_4.tar.bz2 busybox-w32-1_12_4.zip | |
Apply post 1.12.3 fixes, bump to 1.12.41_12_4
| -rw-r--r-- | Makefile | 2 | ||||
| -rw-r--r-- | coreutils/printf.c | 9 | ||||
| -rw-r--r-- | networking/ip.c | 2 | ||||
| -rw-r--r-- | networking/libiproute/iptunnel.c | 45 |
4 files changed, 53 insertions, 5 deletions
| @@ -1,6 +1,6 @@ | |||
| 1 | VERSION = 1 | 1 | VERSION = 1 |
| 2 | PATCHLEVEL = 12 | 2 | PATCHLEVEL = 12 |
| 3 | SUBLEVEL = 3 | 3 | SUBLEVEL = 4 |
| 4 | EXTRAVERSION = | 4 | EXTRAVERSION = |
| 5 | NAME = Unnamed | 5 | NAME = Unnamed |
| 6 | 6 | ||
diff --git a/coreutils/printf.c b/coreutils/printf.c index 76524f706..b0a48cda4 100644 --- a/coreutils/printf.c +++ b/coreutils/printf.c | |||
| @@ -359,8 +359,15 @@ int printf_main(int argc UNUSED_PARAM, char **argv) | |||
| 359 | * We will mimic coreutils. */ | 359 | * We will mimic coreutils. */ |
| 360 | if (argv[1] && argv[1][0] == '-' && argv[1][1] == '-' && !argv[1][2]) | 360 | if (argv[1] && argv[1][0] == '-' && argv[1][1] == '-' && !argv[1][2]) |
| 361 | argv++; | 361 | argv++; |
| 362 | if (!argv[1]) | 362 | if (!argv[1]) { |
| 363 | if (ENABLE_ASH_BUILTIN_PRINTF | ||
| 364 | && applet_name[0] != 'p' | ||
| 365 | ) { | ||
| 366 | bb_error_msg("usage: printf FORMAT [ARGUMENT...]"); | ||
| 367 | return 2; /* bash compat */ | ||
| 368 | } | ||
| 363 | bb_show_usage(); | 369 | bb_show_usage(); |
| 370 | } | ||
| 364 | 371 | ||
| 365 | format = argv[1]; | 372 | format = argv[1]; |
| 366 | argv2 = argv + 2; | 373 | argv2 = argv + 2; |
diff --git a/networking/ip.c b/networking/ip.c index 7dcddfd8c..fa6027893 100644 --- a/networking/ip.c +++ b/networking/ip.c | |||
| @@ -31,7 +31,7 @@ static int NORETURN ip_print_help(char **argv UNUSED_PARAM) | |||
| 31 | 31 | ||
| 32 | static int ip_do(int (*ip_func)(char **argv), char **argv) | 32 | static int ip_do(int (*ip_func)(char **argv), char **argv) |
| 33 | { | 33 | { |
| 34 | argv = ip_parse_common_args(argv); | 34 | argv = ip_parse_common_args(argv + 1); |
| 35 | return ip_func(argv); | 35 | return ip_func(argv); |
| 36 | } | 36 | } |
| 37 | 37 | ||
diff --git a/networking/libiproute/iptunnel.c b/networking/libiproute/iptunnel.c index 752d81264..5aa0c7d03 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" |
