[OpenWrt-Devel] [PATCH v2][libubox] ustream-fd: handle uloop errors

2015-07-12 Thread Philip Craig
The default uloop error handling is to delete the fd. Continue to do that, but also set the write_error flag and notify the user. Signed-off-by: Philip Craig --- ustream-fd.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ustream-fd.c b/ustream-fd.c index 5ffca53

Re: [OpenWrt-Devel] [PATCH][libubox] ustream-fd: handle uloop errors

2015-07-12 Thread Philip Craig
On 10/07/15 21:26, Felix Fietkau wrote: > On 2015-07-10 09:23, Philip Craig wrote: >> Otherwise uloop will delete the fd and the ustream will receive no >> notification of the error. >> >> Signed-off-by: Philip Craig > I think this fix is incomplete. When an e

[OpenWrt-Devel] [PATCH][libubox] ustream-fd: handle uloop errors

2015-07-10 Thread Philip Craig
Otherwise uloop will delete the fd and the ustream will receive no notification of the error. Signed-off-by: Philip Craig --- ustream-fd.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ustream-fd.c b/ustream-fd.c index 5ffca53..2c15b42 100644 --- a/ustream-fd.c

[OpenWrt-Devel] [PATCH netifd] interface: set subnet route source when using metric

2014-07-06 Thread Philip Craig
If an interface has a metric set, then netifd deletes the automatic kernel route for the interface subnet, and adds it back with the metric set. However, the newly added route didn't have the preferred source set. Signed-off-by: Philip Craig --- interface-ip.c | 1 + interface-ip.h