Hello,
The following patch fixes 6tunnel getopt processing on ARM. Currently
it just fails in default case and exits after reading all options.
Kind regards,
Maxim
Index: 6tunnel-0.11rc2/6tunnel.c
===================================================================
--- 6tunnel-0.11rc2.orig/6tunnel.c 2012-01-07 23:55:04.846943707 +0000
+++ 6tunnel-0.11rc2/6tunnel.c 2012-01-07 23:55:34.634259698 +0000
@@ -507,8 +507,8 @@
int main(int argc, char **argv)
{
int force = 0, lsock, csock, one = 0, jeden = 1, local_port;
- int detach = 1, listen6 = 0, sa_len, conn_limit = 0;
- char optc, *username = NULL, *bind_host = NULL;
+ int detach = 1, listen6 = 0, sa_len, conn_limit = 0, optc = -1;
+ char *username = NULL, *bind_host = NULL;
struct sockaddr *sa;
struct sockaddr_in laddr, caddr;
struct sockaddr_in6 laddr6;
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel