Re: [OpenWrt-Devel] MultiWAN in Attitude Adjustment Beta 2 not working
Scratch that last support request. I made it work B-) I will release a how-to. I feel so good now that I am considering donating hardware :) Regards. 6 September 2012 20:31, NetworkPro network...@mikrotik-bg.net wrote: -- Forwarded message -- From: NetworkPro network...@mikrotik-bg.net Date: 6 September 2012 19:29 Subject: MultiWAN in Attitude Adjustment Beta 2 not working To: OpenWrt Development List openwrt-devel@lists.openwrt.org Hello, I am happy to read the Attitude Adjustment announcement on OpenWRT.org and I agree with the decision you made. The announced inspired me to trust OpenWRT as my main Home Office router but MultiWAN is not working so I am going back to a MikroTik RouterOS solution (extremely stable and awesome). Hardware: D-Link DIR 825 Rev B1 Software: http://downloads.openwrt.org/attitude_adjustment/12.09-beta/ ... image from 04.09.2012 ISP1: DHCP ISP2: PPPoE MultiWan is not working and can cause the router to lockup after booting. Or if not lockup - its not balancing and generally causing problems and not working. Please send me a fixed image so I can test and report to you guys (official OpenWRT developers) if it works this time or not. If you need info from the device - give me exact commands that extracts the info you need and I will e-mail it to you. Thank you. P.S. for direct communication my Skype is hypnologic ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] [package] dropbear: Supports IdleTimeout uci config option
Once this patch is accepted, I'll update the wiki page http://wiki.openwrt.org/doc/uci/dropbear From 9509ba3a76b014155671cbea72a07caafaf27970 Mon Sep 17 00:00:00 2001 From: Jonh Wendell jonh.wend...@oiwifi.com.br Date: Thu, 6 Sep 2012 16:45:29 -0300 Subject: [PATCH] [package] dropbear: Supports IdleTimeout uci config option Signed-off-by: Jonh Wendell jonh.wend...@oiwifi.com.br --- package/dropbear/files/dropbear.init |3 +++ 1 file changed, 3 insertions(+) diff --git a/package/dropbear/files/dropbear.init b/package/dropbear/files/dropbear.init index c909d28..5c03b32 100755 --- a/package/dropbear/files/dropbear.init +++ b/package/dropbear/files/dropbear.init @@ -81,6 +81,9 @@ dropbear_start() [ -f ${val} ] append args -r ${val} config_get val ${section} dsskeyfile [ -f ${val} ] append args -d ${val} +# H) idle timeout +config_get val ${section} IdleTimeout 0 +[ ${val} -ne 0 ] append args -I ${val} # execute program and return its exit code [ ${verbosed} -ne 0 ] echo ${initscript}: section ${section} starting ${PROG} ${args} -- 1.7.9.5 -- Jonh Wendell http://www.bani.com.br ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] [package] dropbear: Supports IdleTimeout uci config option
hi! before making the patch, I've read https://dev.openwrt.org/ticket/6992 I decided to go CamelCase to keep the current style and let the change happen when that bug is fixed. makes sense? 2012/9/6 Matthias Buecher / Germany m...@maddes.net Please use lowercase options like all other packages do. Unfortunately DropBear is one package that has several Camel writings. I wish that Attitude Adjustment would change this to lower case. Maddes On 06.09.2012 21:48, Jonh Wendell wrote: Once this patch is accepted, I'll update the wiki page http://wiki.openwrt.org/doc/uci/dropbear From 9509ba3a76b014155671cbea72a07caafaf27970 Mon Sep 17 00:00:00 2001 From: Jonh Wendell jonh.wend...@oiwifi.com.br mailto:jonh.wend...@oiwifi.com.br Date: Thu, 6 Sep 2012 16:45:29 -0300 Subject: [PATCH] [package] dropbear: Supports IdleTimeout uci config option Signed-off-by: Jonh Wendell jonh.wend...@oiwifi.com.br mailto:jonh.wend...@oiwifi.com.br --- package/dropbear/files/dropbear.init |3 +++ 1 file changed, 3 insertions(+) diff --git a/package/dropbear/files/dropbear.init b/package/dropbear/files/dropbear.init index c909d28..5c03b32 100755 --- a/package/dropbear/files/dropbear.init +++ b/package/dropbear/files/dropbear.init @@ -81,6 +81,9 @@ dropbear_start() [ -f ${val} ] append args -r ${val} config_get val ${section} dsskeyfile [ -f ${val} ] append args -d ${val} +# H) idle timeout +config_get val ${section} IdleTimeout 0 +[ ${val} -ne 0 ] append args -I ${val} # execute program and return its exit code [ ${verbosed} -ne 0 ] echo ${initscript}: section ${section} starting ${PROG} ${args} -- 1.7.9.5 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel -- Jonh Wendell http://www.bani.com.br ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] [package] dropbear: Supports IdleTimeout uci config option
Sorry if my previous mail sounded like a command - was not intended. It's all about opinion. I prefer Do not add issues/mistakes/typos, if you know about them. You decide as its your contribution. And I'm only a contributor myself. Maddes On 06.09.2012 22:34, Jonh Wendell wrote: hi! before making the patch, I've read https://dev.openwrt.org/ticket/6992 I decided to go CamelCase to keep the current style and let the change happen when that bug is fixed. makes sense? 2012/9/6 Matthias Buecher / Germany m...@maddes.net mailto:m...@maddes.net Please use lowercase options like all other packages do. Unfortunately DropBear is one package that has several Camel writings. I wish that Attitude Adjustment would change this to lower case. Maddes On 06.09.2012 21:48, Jonh Wendell wrote: Once this patch is accepted, I'll update the wiki page http://wiki.openwrt.org/doc/uci/dropbear From 9509ba3a76b014155671cbea72a07caafaf27970 Mon Sep 17 00:00:00 2001 From: Jonh Wendell jonh.wend...@oiwifi.com.br mailto:jonh.wend...@oiwifi.com.br mailto:jonh.wend...@oiwifi.com.br mailto:jonh.wend...@oiwifi.com.br Date: Thu, 6 Sep 2012 16:45:29 -0300 Subject: [PATCH] [package] dropbear: Supports IdleTimeout uci config option Signed-off-by: Jonh Wendell jonh.wend...@oiwifi.com.br mailto:jonh.wend...@oiwifi.com.br mailto:jonh.wend...@oiwifi.com.br mailto:jonh.wend...@oiwifi.com.br --- package/dropbear/files/dropbear.init |3 +++ 1 file changed, 3 insertions(+) diff --git a/package/dropbear/files/dropbear.init b/package/dropbear/files/dropbear.init index c909d28..5c03b32 100755 --- a/package/dropbear/files/dropbear.init +++ b/package/dropbear/files/dropbear.init @@ -81,6 +81,9 @@ dropbear_start() [ -f ${val} ] append args -r ${val} config_get val ${section} dsskeyfile [ -f ${val} ] append args -d ${val} +# H) idle timeout +config_get val ${section} IdleTimeout 0 +[ ${val} -ne 0 ] append args -I ${val} # execute program and return its exit code [ ${verbosed} -ne 0 ] echo ${initscript}: section ${section} starting ${PROG} ${args} -- 1.7.9.5 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org mailto:openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel -- Jonh Wendell http://www.bani.com.br ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel Matthias Maddes Bücher -- http://www.maddes.net/ Home: Earth / Germany / Ruhr-Area ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] busybox: add support for CHECKSUM_PARTIAL to udhcpc
When running as KVM or Xen guest, packets may be received with incomplete checksum[1]. Patch adopted from Fedora dhcp package. [1]. http://article.gmane.org/gmane.linux.kernel/1003853 Signed-off-by: Alexey I. Froloff ra...@raorn.name --- package/busybox/patches/950-partial-checksum.patch | 87 1 files changed, 87 insertions(+), 0 deletions(-) create mode 100644 package/busybox/patches/950-partial-checksum.patch diff --git a/package/busybox/patches/950-partial-checksum.patch b/package/busybox/patches/950-partial-checksum.patch new file mode 100644 index 000..e595162 --- /dev/null +++ b/package/busybox/patches/950-partial-checksum.patch @@ -0,0 +1,87 @@ +diff -ur busybox-1.19.4.orig/networking/udhcp/dhcpc.c busybox-1.19.4/networking/udhcp/dhcpc.c +--- busybox-1.19.4.orig/networking/udhcp/dhcpc.c 2012-09-06 22:33:53.476998721 +0400 busybox-1.19.4/networking/udhcp/dhcpc.c2012-09-07 01:09:46.693372304 +0400 +@@ -26,8 +26,8 @@ + #include dhcpc.h + + #include netinet/if_ether.h +-#include netpacket/packet.h + #include linux/filter.h ++#include linux/if_packet.h + + /* struct client_config_t client_config is in bb_common_bufsiz1 */ + +@@ -784,17 +784,41 @@ + static NOINLINE int udhcp_recv_raw_packet(struct dhcp_packet *dhcp_pkt, int fd) + { + int bytes; ++ int nocsum = 0; + struct ip_udp_dhcp_packet packet; + uint16_t check; ++ unsigned char cmsgbuf[CMSG_LEN(sizeof(struct tpacket_auxdata))]; ++ struct iovec iov = { ++ .iov_base = packet, ++ .iov_len = sizeof(packet), ++ }; ++ struct msghdr msg = { ++ .msg_iov = iov, ++ .msg_iovlen = 1, ++ .msg_control = cmsgbuf, ++ .msg_controllen = sizeof(cmsgbuf), ++ }; ++ struct cmsghdr *cmsg; + + memset(packet, 0, sizeof(packet)); +- bytes = safe_read(fd, packet, sizeof(packet)); ++ do { ++ bytes = recvmsg(fd, msg, 0); ++ } while (bytes 0 errno == EINTR); ++ + if (bytes 0) { + log1(Packet read error, ignoring); + /* NB: possible down interface, etc. Caller should pause. */ + return bytes; /* returns -1 */ + } + ++ for (cmsg = CMSG_FIRSTHDR(msg); cmsg; cmsg = CMSG_NXTHDR(msg, cmsg)) { ++ if (cmsg-cmsg_level == SOL_PACKET ++ cmsg-cmsg_type == PACKET_AUXDATA) { ++ struct tpacket_auxdata *aux = (void *)CMSG_DATA(cmsg); ++ nocsum = aux-tp_status TP_STATUS_CSUMNOTREADY; ++ } ++ } ++ + if (bytes (int) (sizeof(packet.ip) + sizeof(packet.udp))) { + log1(Packet is too short, ignoring); + return -2; +@@ -834,7 +858,7 @@ + packet.ip.tot_len = packet.udp.len; /* yes, this is needed */ + check = packet.udp.check; + packet.udp.check = 0; +- if (check check != udhcp_checksum(packet, bytes)) { ++ if (!nocsum check check != udhcp_checksum(packet, bytes)) { + log1(Packet with bad UDP checksum received, ignoring); + return -2; + } +@@ -880,6 +904,7 @@ + { + int fd; + struct sockaddr_ll sock; ++ int val; + + /* +* Comment: +@@ -946,6 +971,13 @@ + log1(Attached filter to raw socket fd %d, fd); // log? + } + ++ val = 1; ++ if (setsockopt(fd, SOL_PACKET, PACKET_AUXDATA, val, ++ sizeof(val)) 0) { ++ if (errno != ENOPROTOOPT) ++ log1(Failed to set auxiliary packet data for socket fd %d, fd); ++ } ++ + log1(Created raw socket); + + return fd; -- 1.7.3.4 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] IPv6 Support Strategy
Folks, Ive been playing around a bit with OpenWRT and dual stack IPv6 on my router utilizing the tunnelbroker service. The more I dig into it, Ive struggled to figure out what the recommended mechanism is. Right now, I have it configured with Radvd. But I could have also used dnsmasq to do ipv6 router advertisements.I could install setup dhcpv6 to provide ipv6 dns services, or I could use radvd with RDNSS DNSSL or again I could configure dnsmasq to publish dns info. Me personally it seems like utilizing dnsmasq to its full capabilities would be a good default scenario (would need uci/luci work) and that radvd/dhcpv6 could be added later for users that wish to utilize more advanced models. Id be willing to help out a bit on the dnsmasq stuff, but I don't want to pursue any work if the future plan is something else. Any devs want to provide any hints on what the recommended or default ipv6 path forward will be? -- John Cavanaugh ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] busybox: add support for CHECKSUM_PARTIAL to udhcpc
On Thu, Sep 06, 2012 at 06:36:11PM -0300, Jonh Wendell wrote: Hi. Just curious, did you submit this patch to busybox guys? No, mostly because it's 01:38 am here and I'm not sure about current status of busybox upstream, you know, internet is full of rumors about forks an lawsuits ;-) I've seen that you have lots of patches for busybox and I am already subscribed to this list. I'll try to upstream it tomorrow. -- Regards,-- Sir Raorn. --- http://thousandsofhate.blogspot.com/ signature.asc Description: Digital signature ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH 15/16] [packages] add configurable fixed point build for faad
Hi, I can't apply the patch. I tried using patch -p1 and also using git apply. Did you check current subversion before making the patch? ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel