Hello,
in 1.7.1 ip tunnel ist not able to execute the following command:
ip tunnel add 6in4 mode sit local 127.0.0.1 remote 212.224.0.188
The attached patch fixes this.
regards,
Jean
--- busybox-1.7.1/networking/libiproute/iptunnel.c.orig 2007-10-10 11:35:46.000000000 +0200
+++ busybox-1.7.1/networking/libiproute/iptunnel.c 2007-10-10 11:32:57.000000000 +0200
@@ -241,12 +241,12 @@ static void parse_args(int argc, char **
} else if (key == ARG_remote) {
NEXT_ARG();
key = index_in_strings(keywords, *argv);
- if (key == ARG_any)
+ if (key != ARG_any)
p->iph.daddr = get_addr32(*argv);
} else if (key == ARG_local) {
NEXT_ARG();
key = index_in_strings(keywords, *argv);
- if (key == ARG_any)
+ if (key != ARG_any)
p->iph.saddr = get_addr32(*argv);
} else if (key == ARG_dev) {
NEXT_ARG();
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox