Re: [OpenWrt-Devel] [PATCH v2 00/10] libubox: various minor fixes and enhancements.

2014-12-11 Thread Yousong Zhou
On 12 December 2014 at 01:05, Felix Fietkau wrote: > On 2014-11-12 14:59, Yousong Zhou wrote: >> Yousong Zhou (10): >> libubox: drop legacy json-c support >> lua: do not hardcode /opt/local/include for Apple. >> examples: fix build. >> ustream: add function ustream_fill_with_read_buf(). >>

Re: [OpenWrt-Devel] [PATCH 2/3] Fix SSL negotiation being interrupted by .notify_write from BIO method.

2014-12-11 Thread Yousong Zhou
On 12 December 2014 at 00:42, Felix Fietkau wrote: > On 2014-11-11 11:34, Yousong Zhou wrote: >> ustream_ssl_check_conn() may be called by .notify_write while a previous >> SSL_connect() is still in process. This can happen because the >> .notify_write callback will may be triggered by writes in

Re: [OpenWrt-Devel] [PATCH 4/5] ustream: add function ustream_fill_with_read_buf().

2014-12-11 Thread Yousong Zhou
On 12 December 2014 at 00:33, Felix Fietkau wrote: > On 2014-11-11 11:51, Yousong Zhou wrote: >> Useful in the following use pattern. >> >> int available = ustream_pending_data(s, false); >> if (available >= sizeof(struct msghdr)) { >> struct msghdr h; >> us

Re: [OpenWrt-Devel] [PATCH v2 08/10] json_script: fix logic invert of handle_expr_not().

2014-12-11 Thread Yousong Zhou
On 12 December 2014 at 00:52, Felix Fietkau wrote: > On 2014-11-12 14:59, Yousong Zhou wrote: >> Signed-off-by: Yousong Zhou >> --- >> json_script.c |2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/json_script.c b/json_script.c >> index 0ec7b38..0d51f79 100644 >> --

Re: [OpenWrt-Devel] [PATCH 5/5] ustream: call notify_write() when bytes are written.

2014-12-11 Thread Yousong Zhou
On 12 December 2014 at 00:36, Felix Fietkau wrote: > On 2014-11-11 11:51, Yousong Zhou wrote: >> >> Signed-off-by: Yousong Zhou > The idea behind the notify_write callback was to notify callers of > buffers being drained. What's the intended use case for this patch? Thank you, I see the design p

[OpenWrt-Devel] [PATCH 2/2] oxnas: build S-ATA driver as a module

2014-12-11 Thread Daniel Golle
Signed-off-by: Daniel Golle --- package/kernel/linux/modules/block.mk | 16 target/linux/oxnas/config-3.14| 2 -- target/linux/oxnas/config-3.18| 2 -- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/package/kernel/linux/modules/block.mk b/packa

[OpenWrt-Devel] [PATCH 1/2] oxnas: clean up default package selection

2014-12-11 Thread Daniel Golle
Signed-off-by: Daniel Golle --- target/linux/oxnas/Makefile| 2 +- target/linux/oxnas/profiles/100-Generic.mk | 10 ++ 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/target/linux/oxnas/Makefile b/target/linux/oxnas/Makefile index d957fca..e0f2d4c 100644 --

[OpenWrt-Devel] [PATCH 2/2] oxnas: use u-boot.bin in KDIR

2014-12-11 Thread Daniel Golle
This fixes building *u-boot-initramfs.bin images using ImageBuilder Signed-off-by: Daniel Golle --- target/linux/oxnas/image/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/linux/oxnas/image/Makefile b/target/linux/oxnas/image/Makefile index 3a2a58d..a3da

[OpenWrt-Devel] [PATCH 1/2] uboot-oxnas: install u-boot.bin also to KERNEL_BUILD_DIR

2014-12-11 Thread Daniel Golle
Signed-off-by: Daniel Golle --- package/boot/uboot-oxnas/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package/boot/uboot-oxnas/Makefile b/package/boot/uboot-oxnas/Makefile index e233943..825907b 100644 --- a/package/boot/uboot-oxnas/Makefile +++ b/package/boot/uboot-oxnas/Makef

Re: [OpenWrt-Devel] [OpenWrt-Users] note: grep-2.21 now treats ISO-8859 text files as "binary"

2014-12-11 Thread camden lindsay
Devs- What is the proper resolution to this? A newer version of grep breaks the feeds script for (at least ) one package (clearsilver) in oldpackages because it recognizes the file as being binary and reports such... ending up breaking the pattern matching in the following script lines. What is

[OpenWrt-Devel] [PATCH] uhttpd2: Set HTTPS environment variable

2014-12-11 Thread Dan Staples
Currently, the only way for cgi scripts to determine if the request was made over SSL seems to be to check if the SERVER_PORT environment variable is set to 443, which is less than ideal. This sets the HTTPS environment variable, like the first version of uhttpd. Signed-off-by: Dan Staples ---

Re: [OpenWrt-Devel] [PATCH] au1000: distinguish different models and set correct MAC-address

2014-12-11 Thread Bruno Randolf
Hi Bastian, There is a syntax error in the /etc/uci-defaults/02_network script, but even when I fix that, the MAC address is not set. What is ucidef_set_interface_macaddr supposed to do? Some more comments below: On 12/10/2014 09:26 PM, Bastian Bittorf wrote: > The target au1000 has at least 2 d

[OpenWrt-Devel] [PATCH v2] mxs: indention and whitespace fixes

2014-12-11 Thread Michael Heimpold
Align this file with the style of most other modules.mk. Signed-off-by: Michael Heimpold --- Rebased to latest head since usb was moved to common modules, see http://git.openwrt.org/?p=openwrt.git;a=commit;h=602ce5f770d3fb4b8f2c458a27579f9c87d46e82 target/linux/mxs/modules.mk | 73 ++

[OpenWrt-Devel] [PATCH] oxnas: use ARM BCJ filter for XZ decompression

2014-12-11 Thread Daniel Golle
Restoring the config for kernel 3.14 didn't contain that change already made to config-3.18. It is needed to make squashfs in the kernel match the compression settings for ARCH=arm in the framework. If set to ARMTHUMB, boot fails due to squashfs being unreadable if the filesystem was generated for

Re: [OpenWrt-Devel] Can we have "init" call for diag.sh (set_state)?

2014-12-11 Thread John Crispin
On 11/12/2014 20:59, Rafał Miłecki wrote: > Let me simplify booting process into following stages: > 1) preinit (LED blinking with medium freq) > 2) init (LED blinking with medium freq) > 3) done (LED state on) > > The problem is this duplicated "medium freq" and that diag.sh > (set_state) has o

[OpenWrt-Devel] Can we have "init" call for diag.sh (set_state)?

2014-12-11 Thread Rafał Miłecki
Let me simplify booting process into following stages: 1) preinit (LED blinking with medium freq) 2) init (LED blinking with medium freq) 3) done (LED state on) The problem is this duplicated "medium freq" and that diag.sh (set_state) has only two of above stages: 1) preinit 2) done So we can't si

Re: [OpenWrt-Devel] request for ar7 test hw / 3.14 testing

2014-12-11 Thread John Crispin
On 11/12/2014 20:43, Jonas Gorski wrote: > On Thu, Dec 11, 2014 at 8:39 PM, John Crispin wrote: >> >> >> On 11/12/2014 20:08, Jonas Gorski wrote: >>> procd: WDT failed to write: Bad file descriptor >> >> this is a bug in procd. i have a fix staged already and will push it >> tomorrow with 2 oth

[OpenWrt-Devel] lenovo Y1/S port mapping

2014-12-11 Thread John Crispin
Hi, any lenovo Y1S users around ? while looking into this ticket -> https://dev.openwrt.org/ticket/18528 i found this site -> http://show.smzdm.com/detail/94937 looking at the picture i think the port mapping is totally broken. we currently have y1 |\ y1s) ucid

Re: [OpenWrt-Devel] request for ar7 test hw / 3.14 testing

2014-12-11 Thread Jonas Gorski
On Thu, Dec 11, 2014 at 8:39 PM, John Crispin wrote: > > > On 11/12/2014 20:08, Jonas Gorski wrote: >> procd: WDT failed to write: Bad file descriptor > > this is a bug in procd. i have a fix staged already and will push it > tomorrow with 2 other fixes Great, thanks for the heads up. I just pus

Re: [OpenWrt-Devel] request for ar7 test hw / 3.14 testing

2014-12-11 Thread John Crispin
On 11/12/2014 20:08, Jonas Gorski wrote: > procd: WDT failed to write: Bad file descriptor this is a bug in procd. i have a fix staged already and will push it tomorrow with 2 other fixes John ___ openwrt-devel mailing list openwrt-devel@list

[OpenWrt-Devel] [PATCH] enable vlan filtering.

2014-12-11 Thread Jonathan Thibault
This is quite useful when you want to encapsulate l2 into a vpn and other things of that nature. I've called the package containing the 'bridge' command bridge2 (from iproute2) to avoid conflicting with old package 'bridge' which should really be called 'bridge-utils' and which provides 'brctl'.

Re: [OpenWrt-Devel] request for ar7 test hw / 3.14 testing

2014-12-11 Thread Jonas Gorski
Hi, On Mon, Dec 8, 2014 at 7:19 AM, John Crispin wrote: > Hi, > also if anyone feels like testing the 3.14 i would appreciate the effort. Flashed it onto my WAG354G, and it booted through with the expected module load issue of acx-mac80211, and an unexpected watchdog failure(?). Jonas Booti

Re: [OpenWrt-Devel] [PATCH v2 00/10] libubox: various minor fixes and enhancements.

2014-12-11 Thread Felix Fietkau
On 2014-11-12 14:59, Yousong Zhou wrote: > Yousong Zhou (10): > libubox: drop legacy json-c support > lua: do not hardcode /opt/local/include for Apple. > examples: fix build. > ustream: add function ustream_fill_with_read_buf(). > ustream: call notify_write() when bytes are written. >

Re: [OpenWrt-Devel] [PATCH v2 08/10] json_script: fix logic invert of handle_expr_not().

2014-12-11 Thread Felix Fietkau
On 2014-11-12 14:59, Yousong Zhou wrote: > Signed-off-by: Yousong Zhou > --- > json_script.c |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/json_script.c b/json_script.c > index 0ec7b38..0d51f79 100644 > --- a/json_script.c > +++ b/json_script.c > @@ -338,7 +338,7 @@

Re: [OpenWrt-Devel] [PATCH 2/3] Fix SSL negotiation being interrupted by .notify_write from BIO method.

2014-12-11 Thread Felix Fietkau
On 2014-11-11 11:34, Yousong Zhou wrote: > ustream_ssl_check_conn() may be called by .notify_write while a previous > SSL_connect() is still in process. This can happen because the > .notify_write callback will may be triggered by writes in the BIO > methods. > > Signed-off-by: Yousong Zhou > --

Re: [OpenWrt-Devel] [PATCH 5/5] ustream: call notify_write() when bytes are written.

2014-12-11 Thread Felix Fietkau
On 2014-11-11 11:51, Yousong Zhou wrote: > > Signed-off-by: Yousong Zhou The idea behind the notify_write callback was to notify callers of buffers being drained. What's the intended use case for this patch? - Felix ___ openwrt-devel mailing list openw

Re: [OpenWrt-Devel] [PATCH 4/5] ustream: add function ustream_fill_with_read_buf().

2014-12-11 Thread Felix Fietkau
On 2014-11-11 11:51, Yousong Zhou wrote: > Useful in the following use pattern. > > int available = ustream_pending_data(s, false); > if (available >= sizeof(struct msghdr)) { > struct msghdr h; > ustream_fill_with_read_buf(s, &h, sizeof(h)); > } > >

[OpenWrt-Devel] [PATCH] netifd: Set source IP for DHCP static routes as well

2014-12-11 Thread Hans Dedecker
Commit ce92f6650bd8a86db04c7a6cbb58e7fdb200a7e6 added source IP support for DHCP default routes. As a side effect of this change the default route could be present twice in netifd (once with source IP set and once with source IP unset) if it was sent by the server in both the router and static rout

[OpenWrt-Devel] [PATCH] kirkwood: enable EA4500 switch on 3.18

2014-12-11 Thread Claudio Leite
Signed-off-by: Claudio Leite --- target/linux/kirkwood/patches-3.18/160-ea4500.patch | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/target/linux/kirkwood/patches-3.18/160-ea4500.patch b/target/linux/kirkwood/patches-3.18/160-ea4500.patch index bf33756..7456b13

Re: [OpenWrt-Devel] Did you do any testing on 3.18?

2014-12-11 Thread Felix Fietkau
On 2014-12-09 22:02, Heiner Kallweit wrote: > Thanks, Trond. > With change set 43563 the kernel was updated to 3.14.26 so I guess that > all mpc85xx builds since then will face this problem caused by > commit cfd854909d7d68b752456137f14601bbae66d7d4. > > After having a brief look at this commit I

[OpenWrt-Devel] [PATCH] iwinfo: Fix incorrect buffer allocation in nl80211_get_ifcomb_cb()

2014-12-11 Thread Andrew McDonnell
This fixes a buffer overwrite, I found it when building with SSP enabled --- iwinfo_nl80211.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/iwinfo_nl80211.c b/iwinfo_nl80211.c index 2731b2b..be58c56 100644 --- a/iwinfo_nl80211.c +++ b/iwinfo_nl80211.c @@ -2446,15 +244

[OpenWrt-Devel] feeds.conf.default: telephony repository is now on github

2014-12-11 Thread Jiri Slachta
Signed-off-by: Jiri Slachta --- feeds.conf.default | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/feeds.conf.default b/feeds.conf.default index 30b9eed..7053240 100644 --- a/feeds.conf.default +++ b/feeds.conf.default @@ -1,7 +1,7 @@ src-git packages https://github.com/open

[OpenWrt-Devel] [BB] feeds.conf.default: telephony repository is now on github

2014-12-11 Thread Jiri Slachta
Signed-off-by: Jiri Slachta --- feeds.conf.default | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/feeds.conf.default b/feeds.conf.default index 4e6627b..7dfc9a8 100644 --- a/feeds.conf.default +++ b/feeds.conf.default @@ -1,7 +1,7 @@ src-git packages https://github.com/open