Re: [LEDE-DEV] [PATCH] ubusd: Use linked list for queued messages

2018-05-03 Thread Alexandru Ardelean
On Wed, May 2, 2018 at 11:55 PM, Benjamin Hansmann wrote: > The fixed size array for queuing messages led to discarding messages > when it was full, using a linked list instead solves this issue. > > Having the list_head link in the ubus_msg_buf itself avoids the > allocation of

Re: [LEDE-DEV] [PATCH] wolfssl: fix options and add support for wpa_supplicant features

2018-05-02 Thread Alexandru Ardelean
On Sat, Apr 28, 2018 at 9:55 PM, Daniel Golle wrote: > Some options' default values have been changed upstream, others were > accidentally inverted (CONFIG_WOLFSSL_HAS_DES3). Also add options > needed to build hostapd/wpa_supplicant against wolfssl. Sorry for the late

Re: [LEDE-DEV] [PATCH] libjson-c: Update to 0.13

2018-04-03 Thread Alexandru Ardelean
On Tue, Apr 3, 2018 at 4:33 PM, Karl Palsson <ka...@tweak.net.au> wrote: > > Alexandru Ardelean <ardeleana...@gmail.com> wrote: >> On Sat, Mar 31, 2018 at 9:45 AM, Hans Dedecker >> <dedec...@gmail.com> wrote: >> > On Sat, Mar 31, 2018 at 12:25 AM, Ros

Re: [LEDE-DEV] [OpenWrt-Devel] kernel version status

2018-04-01 Thread Alexandru Ardelean
On Sun, Apr 1, 2018 at 5:48 PM, Hauke Mehrtens wrote: > The next OpenWrt release will use kernel 4.9 and kernel 4.14 depending > on the target. All targets that are *not* on either kernel 4.9 or 4.14 > will not be included in the next release. > > I did some overview of the

Re: [LEDE-DEV] [PATCH] libjson-c: Update to 0.13

2018-03-31 Thread Alexandru Ardelean
On Sat, Mar 31, 2018 at 9:45 AM, Hans Dedecker wrote: > On Sat, Mar 31, 2018 at 12:25 AM, Rosen Penev wrote: >> From: Daniel Engberg >> >> Update (lib)json-c to 0.13 > What are the changes? > Is there any size increase ? >

Re: [LEDE-DEV] [PATCH] uboot-envtools: Change download to git.

2018-02-28 Thread Alexandru Ardelean
On Mon, Feb 26, 2018 at 11:25 PM, Rosen Penev wrote: > Currently, the build system uses an openwrt mirror which does not currently > workand FTP can be unreliable under several circumstances (Ubuntu 16.04 WSL > being an example). This change implicitly allows using all the

Re: [LEDE-DEV] [PATCH] metadata: compile dependencies only when the package is selected

2018-02-27 Thread Alexandru Ardelean
On Wed, Feb 28, 2018 at 7:07 AM, Yousong Zhou wrote: > This is intended to reduce build time for situations like the following > where python and python-six and their dependencies could still be built > as long as any subpackage within the srcpackage was selected regardless

Re: [LEDE-DEV] [PATCH] uboot-envtools: Change download to git.

2018-02-22 Thread Alexandru Ardelean
On Fri, Feb 23, 2018 at 3:48 AM, Rosen Penev wrote: > Currently, the build system uses an openwrt mirror which does not currently > workand FTP can be unreliable under several circumstances (Ubuntu 16.04 WSL > being an example). This change implicitly allows using all the

Re: [LEDE-DEV] [OpenWrt-Devel] patchwork

2018-01-19 Thread Alexandru Ardelean
On Fri, Jan 19, 2018 at 10:09 AM, John Crispin <j...@phrozen.org> wrote: > > > On 19/01/18 08:55, Alexandru Ardelean wrote: >> >> On Fri, Jan 19, 2018 at 3:02 AM, Val Kulkov <val.kul...@gmail.com> wrote: >>> >>> On 18 January 2018 at 19:49,

Re: [LEDE-DEV] [OpenWrt-Devel] patchwork

2018-01-18 Thread Alexandru Ardelean
On Fri, Jan 19, 2018 at 3:02 AM, Val Kulkov wrote: > On 18 January 2018 at 19:49, Alberto Bursi wrote: >> >> >> >> On 01/19/2018 01:05 AM, Val Kulkov wrote: >>> >>> There is more than a handful of PRs currently bit-rotting in >>> openwrt/packages

Re: [LEDE-DEV] Bug when processing long lines

2018-01-11 Thread Alexandru Ardelean
On Thu, Jan 11, 2018 at 6:28 PM, Jakub Horák wrote: > Hello LEDE developers, > > I found a bug in procd that gets triggered when long lines are printed > by services whose stdout/stderr are being logged. The bug itself is > explained in the attached patch. > > However,

[LEDE-DEV] partial port of DPDK

2017-12-17 Thread Alexandru Ardelean
Hey, I remember seeing some interest a while back in DPDK. I started a port of DPDK for some experiment I wanted to do, but in the meantime I stopped because of reasons. Here's the current code so far: https://github.com/commodo/packages/tree/dpdk/net/dpdk It should build in the current master

[LEDE-DEV] [PATCH][netifd] handler: replace is_error() helper with NULL check

2017-12-08 Thread Alexandru Ardelean
The `is_error()` is just a macro that checks that object is NULL (which is considered an error in libjson-c terminology). Newer libjson-c versions have deprecated this. Signed-off-by: Alexandru Ardelean <ardeleana...@gmail.com> --- handler.c | 2 +- 1 file changed, 1 insertion(+), 1 de

Re: [LEDE-DEV] [PATCH] handler: replace is_error() helper with NULL check

2017-12-08 Thread Alexandru Ardelean
On Fri, Dec 8, 2017 at 4:19 PM, Alexandru Ardelean <ardeleana...@gmail.com> wrote: > The `is_error()` is just a macro that checks > that object is NULL (which is considered an error > in libjson-c terminology). > > Newer libjson-c versions have deprecated this. I forgot to

[LEDE-DEV] [PATCH] handler: replace is_error() helper with NULL check

2017-12-08 Thread Alexandru Ardelean
The `is_error()` is just a macro that checks that object is NULL (which is considered an error in libjson-c terminology). Newer libjson-c versions have deprecated this. Signed-off-by: Alexandru Ardelean <ardeleana...@gmail.com> --- handler.c | 2 +- 1 file changed, 1 insertion(+), 1 de

Re: [LEDE-DEV] [PATCH] jshn: add functionality to read big JSON

2017-11-19 Thread Alexandru Ardelean
On Sat, Nov 18, 2017 at 3:55 PM, Christian Beier <dontm...@sdf.org> wrote: > Am Fri, 17 Nov 2017 09:17:39 +0200 > schrieb Alexandru Ardelean <ardeleana...@gmail.com>: > >> On Thu, Nov 16, 2017 at 8:52 PM, Christian Beier <dontm...@freeshell.org> >> wrote: >

Re: [LEDE-DEV] [PATCH] jshn: add functionality to read big JSON

2017-11-16 Thread Alexandru Ardelean
On Thu, Nov 16, 2017 at 8:52 PM, Christian Beier wrote: > The existing read functionality feeds the complete JSON to jshn as a > cmdline argument, leading to `-ash: jshn: Argument list too long` > errors for JSONs bigger than ca. 100KB. > > This commit adds the ability to

Re: [LEDE-DEV] [PATCH] ubus: Remove unnecessary memset calls.

2017-11-07 Thread Alexandru Ardelean
On Tue, Nov 7, 2017 at 11:18 PM, Arjen de Korte wrote: > Citeren Rosen Penev : > >> I beg to differ. https://vorpus.org/blog/why-does-calloc-exist/ >> >> Section 2. > > > I don't care about theoretical gains, benchmarks please. How much do you > gain

Re: [LEDE-DEV] [PATCH] netifd-proto.sh: add ip4table & ip6table to `proto_add_dynamic_defaults()`

2017-09-10 Thread Alexandru Ardelean
On Sat, Sep 9, 2017 at 10:51 PM, Baptiste Jonglez <bapti...@bitsofnetworks.org> wrote: > On 09-09-17, Baptiste Jonglez wrote: >> On 05-09-17, Alexandru Ardelean wrote: >> > The `proto_add_dynamic_defaults()` seems to be called mostly >> > in the context of LTE/3G

Re: [LEDE-DEV] [PATCH] netifd-proto.sh: add ip4table & ip6table to `proto_add_dynamic_defaults()`

2017-09-05 Thread Alexandru Ardelean
On Tue, Sep 5, 2017 at 11:05 PM, Hans Dedecker <dedec...@gmail.com> wrote: > On Tue, Sep 5, 2017 at 1:39 PM, Alexandru Ardelean > <ardeleana...@gmail.com> wrote: >> The `proto_add_dynamic_defaults()` seems to be called mostly >> in the context of LTE/3G mod

[LEDE-DEV] [PATCH] netifd-proto.sh: add ip4table & ip6table to `proto_add_dynamic_defaults()`

2017-09-05 Thread Alexandru Ardelean
that. ip4table/ip6table are of string type in netifd to allow for `default`, `local` routing table names to be specified. Signed-off-by: Alexandru Ardelean <ardeleana...@gmail.com> --- scripts/netifd-proto.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/netifd-proto.sh b/scripts/

[LEDE-DEV] [RFC] kernel-packages: new package (adapted from `kernel` package from core)

2017-08-23 Thread Alexandru Ardelean
Hey, A while back I opened a PR: https://github.com/openwrt/packages/pull/4407 Etienne prompted me to try the ML too. The gist of it is: g1) LEDE core does not want to package all/certain in-tree kmods (bloat reasons, which is reasonable) g2) The `packages` feed would like to have certain

Re: [LEDE-DEV] Help me understand ubus extensions via C api

2017-07-06 Thread Alexandru Ardelean
On Thu, Jul 6, 2017 at 4:31 AM, Carlito Nueno wrote: > Hi all, > > I want to customize a small feature in how hostapd responds to probe > request and I was looking at > https://github.com/lede-project/source/blob/master/package/network/services/hostapd/src/src/ap/ubus.c >

[LEDE-DEV] [PATCH 3/3] ubusd_monitor: alloc & free the buffer outside of the loop

2017-07-05 Thread Alexandru Ardelean
Should save a few cycles, since the data that's being changed is only the seq number. And the `ub` is always created as shared. Signed-off-by: Alexandru Ardelean <ardeleana...@gmail.com> --- ubusd_monitor.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff

[LEDE-DEV] [PATCH 1/3] ubusd: don't free messages in ubus_send_msg() anymore

2017-07-05 Thread Alexandru Ardelean
places, where `ubus_msg_send(,,free=true)` an explicit `ubus_msg_free()` was added. Signed-off-by: Alexandru Ardelean <ardeleana...@gmail.com> --- ubusd.c | 8 ++-- ubusd.h | 2 +- ubusd_event.c | 2 +- ubusd_monitor.c | 3 ++- ubusd_proto.c

[LEDE-DEV] [PATCH 2/3] ubusd: rename goto label from `error` to `out`

2017-07-05 Thread Alexandru Ardelean
Semantic has changed a bit. Signed-off-by: Alexandru Ardelean <ardeleana...@gmail.com> --- ubusd_proto.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ubusd_proto.c b/ubusd_proto.c index 441d084..b084b86 100644 --- a/ubusd_proto.c +++ b/ubusd_proto.c @@ -

Re: [LEDE-DEV] [PATCH][ubus] ubusd_monitor: alloc & free the buffer outside of the loop

2017-07-05 Thread Alexandru Ardelean
On Wed, Jul 5, 2017 at 4:12 PM, Alexandru Ardelean <ardeleana...@gmail.com> wrote: > From: Alexandru Ardelean <ardeleana...@gmail.com> > > Should save a few cycles, since the data that's > being changed is only the seq number. > And the `ub` is always create

[LEDE-DEV] [PATCH][ubus] ubusd_monitor: alloc & free the buffer outside of the loop

2017-07-05 Thread Alexandru Ardelean
From: Alexandru Ardelean <ardeleana...@gmail.com> Should save a few cycles, since the data that's being changed is only the seq number. And the `ub` is always created as shared. Signed-off-by: Alexandru Ardelean <ardeleana...@gmail.com> --- ubusd_monitor.c | 8 +--- 1 fil

Re: [LEDE-DEV] [PATCH 2/3] ubusd: make `tx_queue` backlog dynamic

2017-06-12 Thread Alexandru Ardelean
On Wed, Jun 7, 2017 at 5:02 PM, Alexandru Ardelean <ardeleana...@gmail.com> wrote: > On Wed, Jun 7, 2017 at 4:48 PM, Felix Fietkau <n...@nbd.name> wrote: >> On 2017-06-07 15:44, Felix Fietkau wrote: >>> On 2017-06-07 13:09, Alexandru Ardelean wrote: >>>

Re: [LEDE-DEV] [PATCH 2/3] ubusd: make `tx_queue` backlog dynamic

2017-06-07 Thread Alexandru Ardelean
On Wed, Jun 7, 2017 at 4:48 PM, Felix Fietkau <n...@nbd.name> wrote: > On 2017-06-07 15:44, Felix Fietkau wrote: >> On 2017-06-07 13:09, Alexandru Ardelean wrote: >>> It's not very often that the tx_queue is used, >>> to store backlog messages to send to a clien

[LEDE-DEV] [PATCH 1/3] examples (test): add example/test that shows tx-queue-ing issue

2017-06-07 Thread Alexandru Ardelean
e tx_queue-ing issue occurs (also due to socket buffer size). Signed-off-by: Alexandru Ardelean <ardeleana...@gmail.com> --- lua/test_many_ubus_entries.lua | 43 ++ 1 file changed, 43 insertions(+) create mode 100755 lua/test_many_ubus_entries.l

[LEDE-DEV] [PATCH 2/3] ubusd: make `tx_queue` backlog dynamic

2017-06-07 Thread Alexandru Ardelean
writes during the tx_queue-ing (2). This patch implements (1). Signed-off-by: Alexandru Ardelean <ardeleana...@gmail.com> --- ubusd.c | 18 +- ubusd.h | 6 +++--- ubusd_proto.c | 1 + 3 files changed, 13 insertions(+), 12 deletions(-) diff --git a/ubusd.c b/u

[LEDE-DEV] [PATCH 3/3] ubusd: move global retmsg per client

2017-06-07 Thread Alexandru Ardelean
eep into this ; setting the `retmsg` object on the client struct seems to have resolved any hanging with the `ubus list` command. Signed-off-by: Alexandru Ardelean <ardeleana...@gmail.com> --- ubusd.h | 2 ++ ubusd_proto.c | 35 +++ 2 files changed, 25 insertio

Re: [LEDE-DEV] [OpenWrt-Devel] openwrt and lede - remerge proposal V3

2017-05-30 Thread Alexandru Ardelean
On Tue, May 30, 2017 at 8:38 AM, Felix Fietkau wrote: > On 2017-05-29 09:03, John Crispin wrote: >> (resend, this time as plain text) >> >> Hi, >> >> here is a V3 of the remerge proposal, I tried to fold all the comments >> people made into it, if anything is missing let me know.

Re: [LEDE-DEV] [PATCH][procd] ubus: use ubus_auto_connect() logic

2017-05-29 Thread Alexandru Ardelean
On Mon, May 29, 2017 at 10:19 AM, Felix Fietkau <n...@nbd.name> wrote: > On 2017-05-19 09:45, Alexandru Ardelean wrote: >> Admittedly, the semantic is a bit different, in the sense >> that there are no progressive retry timeouts. >> >> ubus_auto_connect() us

[LEDE-DEV] [PATCH][procd] ubus: use ubus_auto_connect() logic

2017-05-19 Thread Alexandru Ardelean
logic. This should cleanup the code a bit. For reference, the `ubus_add_uloop()` call is handled by ubus_auto_connect() as well. Signed-off-by: Alexandru Ardelean <ardeleana...@gmail.com> --- ubus.c | 55 +-- 1 file changed, 5 insertions(

Re: [LEDE-DEV] convention on uid/gid for packages

2017-05-15 Thread Alexandru Ardelean
On Sun, May 14, 2017 at 3:59 AM, Daniel Golle wrote: > Hi Val, > > On Sat, May 13, 2017 at 06:23:29PM -0400, Val Kulkov wrote: >> Is there any convention on the use of uid and gid when creating new >> users or groups? Can someone point me to it, if it exists? >> >> I

[LEDE-DEV] [PATCH][opkg-lede][V3] opkg: add --no-check-certificate argument

2017-05-11 Thread Alexandru Ardelean
to support setting it if needed/configured. Signed-off-by: Alexandru Ardelean <ardeleana...@gmail.com> --- libopkg/opkg_conf.c | 1 + libopkg/opkg_conf.h | 1 + libopkg/opkg_download.c | 5 - src/opkg-cl.c | 7 +++ 4 files changed, 13 insertions(+), 1 deletion(-) diff

Re: [LEDE-DEV] [PATCH] opkg: add --no-check-certificate argument

2017-05-11 Thread Alexandru Ardelean
On Thu, May 11, 2017 at 6:42 PM, Jo-Philipp Wich wrote: > Hi, > > comments inline. > >> --- >> libopkg/opkg_conf.c | 1 + >> libopkg/opkg_conf.h | 1 + >> libopkg/opkg_download.c | 5 - >> src/opkg-cl.c | 6 ++ >> 4 files changed, 12 insertions(+), 1

[LEDE-DEV] [PATCH] opkg: add --no-check-certificate argument

2017-05-11 Thread Alexandru Ardelean
to support setting it if needed/configured. Signed-off-by: Alexandru Ardelean <ardeleana...@gmail.com> --- libopkg/opkg_conf.c | 1 + libopkg/opkg_conf.h | 1 + libopkg/opkg_download.c | 5 - src/opkg-cl.c | 6 ++ 4 files changed, 12 insertions(+), 1 deletion(-) diff

[LEDE-DEV] [PATCH][opkg-lede] opkg: add --force-ssl argument

2017-05-11 Thread Alexandru Ardelean
to support setting it if needed/configured. Signed-off-by: Alexandru Ardelean <ardeleana...@gmail.com> --- libopkg/opkg_conf.c | 1 + libopkg/opkg_conf.h | 1 + libopkg/opkg_download.c | 5 - src/opkg-cl.c | 6 ++ 4 files changed, 12 insertions(+), 1 deletion(-) diff

Re: [LEDE-DEV] [PATCH] kernel: update kernel 4.9 to 4.9.25

2017-05-08 Thread Alexandru Ardelean
Hey, You can also Reject your patch here: http://patchwork.ozlabs.org/project/lede/list/ Specifically, this patch is: http://patchwork.ozlabs.org/patch/756400/ And [for reference] you can see all patches submitted by you [from your email account]:

Re: [LEDE-DEV] What optimizations does low-end MIPS userspace need?

2017-04-16 Thread Alexandru Ardelean
On Sun, Apr 16, 2017 at 1:47 AM, Jay Carlson <n...@nop.com> wrote: > >> On Apr 15, 2017, at 1:57 AM, Alexandru Ardelean <ardeleana...@gmail.com> >> wrote: >> >> On Sat, 15 Apr 2017 at 02:01, Jay Carlson <n...@nop.com> wrote: >> >>> I’v

[LEDE-DEV] [PATCH] base-files: use restart if no reload hook for service

2017-03-31 Thread Alexandru Ardelean
, and it would restart the service. [ New semantic ] The default reload hook calls restart. Services can implement their own reload. If reload fails, then the '/etc/init.d/ reload' would return a non-zero code, and the caller can choose a way to handle this. Signed-off-by: Alexandru Ardelean

Re: [LEDE-DEV] [PATCH 2/3][RFC] base-files: add option to rc.common to disable default reload behavior

2017-03-29 Thread Alexandru Ardelean
On Tue, Mar 28, 2017 at 11:36 PM, Hans Dedecker <dedec...@gmail.com> wrote: > On Mon, Mar 20, 2017 at 3:08 PM, Alexandru Ardelean > <ardeleana...@gmail.com> wrote: >> From: Alexandru Ardelean <ardeleana...@gmail.com> >> >> Traditionally if a reload

Re: [LEDE-DEV] [PATCH] openssl: Remove RIPEMD-160 from OpenSSL

2017-03-28 Thread Alexandru Ardelean
On Tue, Mar 28, 2017 at 1:45 AM, txt.file wrote: > The topic and patch is about OpenSSL but description is about OpenSSH. > What has OpenSSL to do with OpenSSH? > > kind regards > txt.file > -- > This message is signed. > > Rosen Penev: >> The commit that removed no-ripemd

[LEDE-DEV] [PATCH][V4] netifd: propagate error code on netifd_reload()

2017-03-27 Thread Alexandru Ardelean
or missing for /etc/config/network. Signed-off-by: Alexandru Ardelean <ardeleana...@gmail.com> --- config.c | 10 -- config.h | 2 +- main.c | 4 ++-- netifd.h | 2 +- ubus.c | 5 +++-- 5 files changed, 15 insertions(+), 8 deletions(-) diff --git a/config.c b/config.c

Re: [LEDE-DEV] [PATCH 1/3][RFC] netifd: propagate error code on netifd_reload()

2017-03-26 Thread Alexandru Ardelean
On Sun, Mar 26, 2017 at 7:06 PM, Hans Dedecker <dedec...@gmail.com> wrote: > On Mon, Mar 20, 2017 at 3:08 PM, Alexandru Ardelean > <ardeleana...@gmail.com> wrote: >> From: Alexandru Ardelean <ardeleana...@gmail.com> >> >> The context is that we generat

Re: [LEDE-DEV] [PATCH 1/3][RFC] netifd: propagate error code on netifd_reload()

2017-03-20 Thread Alexandru Ardelean
On Mon, Mar 20, 2017 at 4:08 PM, Alexandru Ardelean <ardeleana...@gmail.com> wrote: > From: Alexandru Ardelean <ardeleana...@gmail.com> > > The context is that we generate some of the UCI config > for netifd via scripts/programs. > > Every once in a while, there'

[LEDE-DEV] [PATCH 3/3][RFC] netifd: don't restart on reload error

2017-03-20 Thread Alexandru Ardelean
From: Alexandru Ardelean <ardeleana...@gmail.com> We just want netifd to return a non-zero err-code. Reload has failed, a restart will not make it better necessarily. Signed-off-by: Alexandru Ardelean <ardeleana...@gmail.com> --- package/network/config/netifd/files/etc/init.d/networ

[LEDE-DEV] [PATCH 1/3][RFC] netifd: propagate error code on netifd_reload()

2017-03-20 Thread Alexandru Ardelean
From: Alexandru Ardelean <ardeleana...@gmail.com> The context is that we generate some of the UCI config for netifd via scripts/programs. Every once in a while, there's a goof when doing that UCI generation, and netifd prints out the error at stderr, but returns 0 (success) er

[LEDE-DEV] [PATCH 2/3][RFC] base-files: add option to rc.common to disable default reload behavior

2017-03-20 Thread Alexandru Ardelean
From: Alexandru Ardelean <ardeleana...@gmail.com> Traditionally if a reload script fails, it will fallback to restart. That seems to be the default behavior in case no reload handler has been specified, and `reload` will return 1. That also has the disadvantage of masking reload error

Re: [LEDE-DEV] Kodi

2017-03-15 Thread Alexandru Ardelean
I'd just add an opinion here. Please take it as such. I think with Kodi [ specifically ] it's one of those sugar-features/packages that could be interesting for tinker-ers to try out when trying LEDE/OpenWrt. Not sure how intensive it would be on the build infrastructure. If you decide to

[LEDE-DEV] [PATCH][V2][netifd] ubus: propagate error code on netifd_reload()

2017-03-10 Thread Alexandru Ardelean
-off-by: Alexandru Ardelean <ardeleana...@gmail.com> --- config.c | 10 -- config.h | 2 +- main.c | 4 ++-- netifd.h | 2 +- ubus.c | 5 +++-- 5 files changed, 15 insertions(+), 8 deletions(-) diff --git a/config.c b/config.c index 0d965d3..d70747c 100644 --- a/config.c +++

[LEDE-DEV] [PATCH] netifd: propagate error code on netifd_reload()

2017-03-10 Thread Alexandru Ardelean
-off-by: Alexandru Ardelean <ardeleana...@gmail.com> --- config.c | 10 -- config.h | 2 +- main.c | 4 ++-- netifd.h | 2 +- ubus.c | 3 +-- 5 files changed, 13 insertions(+), 8 deletions(-) diff --git a/config.c b/config.c index 0d965d3..d70747c 100644 --- a/config.c +++

[LEDE-DEV] [PATCH][RFC] ubus: propagate error code on netifd_reload()

2017-03-10 Thread Alexandru Ardelean
-off-by: Alexandru Ardelean <ardeleana...@gmail.com> --- config.c | 10 -- config.h | 2 +- main.c | 4 ++-- netifd.h | 2 +- ubus.c | 3 +-- 5 files changed, 13 insertions(+), 8 deletions(-) diff --git a/config.c b/config.c index 0d965d3..d70747c 100644 --- a/config.c +++

Re: [LEDE-DEV] Identifying kernel version (major) during build (.mk file)

2017-02-18 Thread Alexandru Ardelean
Hey Mauro, Your case seems a bit specific. But I guess you can try a few things and inspire yourself from include/kernel-version.mk https://github.com/lede-project/source/blob/master/include/kernel-version.mk Not sure if the KERNEL_BASE variable is what you need. i.e. I can't tell what the

Re: [LEDE-DEV] [PATCH] libubus: initialize list member for ubus_auto_conn's timer

2016-12-13 Thread Alexandru Ardelean
On Tue, Dec 13, 2016 at 9:52 AM, Felix Fietkau <n...@nbd.name> wrote: > On 2016-12-13 08:41, Alexandru Ardelean wrote: >> Every once in a while, we'll get stacktrace: >> ``` >> (gdb) bt >> \#0 0xb7bc4668 in _list_del (entry=0x10015688 <conn+116>) at &g

[LEDE-DEV] [PATCH] libubus: initialize list member for ubus_auto_conn's timer

2016-12-12 Thread Alexandru Ardelean
t the list element of the `timer` of the `ubus_auto_conn` struct. Signed-off-by: Alexandru Ardelean <ardeleana...@gmail.com> --- libubus.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libubus.c b/libubus.c index 8163ff7..faa30d3 100644 --- a/libubus.c +++ b/libubus.c @@ -337

Re: [LEDE-DEV] [PATCH] kernel: update to v4.4.23

2016-11-13 Thread Alexandru Ardelean
On Sun, Nov 13, 2016 at 10:47 PM, Giuseppe Lippolis wrote: > From: Álvaro Fernández Rojas > > Refresh patches for all targets that support kernel 4.4. > compile/run-tested on brcm2708/bcm2710 only. > > Signed-off-by: Álvaro Fernández Rojas

Re: [LEDE-DEV] lots of broken packages

2016-10-31 Thread Alexandru Ardelean
On Mon, Oct 31, 2016 at 12:36 AM, Torbjorn Jansson wrote: > On 2016-10-29 20:00, Torbjorn Jansson wrote: >> >> Hello >> >> looks like there are lots of broken packages currently. >> was going to install i2c-tools but it looks like it failed with lots of >>

Re: [LEDE-DEV] Need help with package dependencies

2016-10-19 Thread Alexandru Ardelean
On Tue, Oct 18, 2016 at 2:09 PM, Zefir Kurtisi wrote: > > Hi, > > to those understanding the package dependency logic by heart, I'm trying to > achieve something I assumed to be common, but fail to get there with the help > of > the available documentation. > > The

Re: [LEDE-DEV] [PATCH] ubus cli: wait_for: fix race causing false timeouts

2016-10-07 Thread Alexandru Ardelean
On Fri, Oct 7, 2016 at 3:09 PM, Felix Fietkau wrote: > On 2016-10-07 13:57, Zefir Kurtisi wrote: >> In ubus_cli_wait_for() there is a critical section between >> initially checking for the requested services and the >> following handling of 'ubus.object.add' events. >> >> In our

[LEDE-DEV] [PATCH 1/2] ubox/logd: free regex's on log_shutdown() call

2016-09-24 Thread Alexandru Ardelean
Signed-off-by: Alexandru Ardelean <ardeleana...@gmail.com> --- log/syslog.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/log/syslog.c b/log/syslog.c index e8b6774..ac4f1ae 100644 --- a/log/syslog.c +++ b/log/syslog.c @@ -300,4 +300,6 @@ log_shutdown(void) close(slog

[LEDE-DEV] [PATCH 2/2] ubox/logd: free ubus context on exit

2016-09-24 Thread Alexandru Ardelean
Signed-off-by: Alexandru Ardelean <ardeleana...@gmail.com> --- log/logd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/log/logd.c b/log/logd.c index 58a1dec..0175a5c 100644 --- a/log/logd.c +++ b/log/logd.c @@ -226,6 +226,7 @@ main(int argc, char **argv) ulo

Re: [LEDE-DEV] can swconfig turn out the LEDs?

2016-09-14 Thread Alexandru Ardelean
On Wed, Sep 14, 2016 at 8:51 PM, Dave Taht wrote: > recently a whole bunch of posts went around on network world, > slashdot, and elsewhere, about how to go about disabling or dimming > the leds. > >

Re: [LEDE-DEV] [UBUS] [PATCH] Issue of msgbuf_data_len in ubus_context

2016-06-22 Thread Alexandru Ardelean
On Sun, Jun 19, 2016 at 7:21 AM, Wang Linetkux wrote: > Sorry, forgot to paste the patch in the email for easy reading. > > --- > > libubus-io.c | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/libubus-io.c b/libubus-io.c > > index 9320bf3..0582ff7 100644 > >

Re: [LEDE-DEV] [PATCH 1/3] [ubox] remove unnecessary size struct between messages

2016-06-04 Thread Alexandru Ardelean
On Fri, Jun 3, 2016 at 2:27 PM, Conor O'Gorman wrote: > On 03/06/16 11:59, Dan Bugnar wrote: >> >> From: Dan Bugnar >> >> The next message needs to be written after the data of current message. >> This was adding "sizeof(struct log_head)" bytes between

[LEDE-DEV] Fwd: [PATCH 2/2] [ubox] logd: add ubus reload method

2016-05-14 Thread Alexandru Ardelean
://david.woodhou.se/email.html === -- Forwarded message -- From: Alexandru Ardelean <ardeleana...@gmail.com> Date: Sat, May 14, 2016 at 11:05 AM Subject: Re: [LEDE-DEV] [PATCH 2/2] [ubox] logd: add ubus reload method To: David Lang <da..

Re: [LEDE-DEV] [PATCH 1/2] [ubox] syslog: use realloc to change log buffer size

2016-05-13 Thread Alexandru Ardelean
On Thu, May 12, 2016 at 3:09 PM, Dan Bugnar wrote: > From: Dan Bugnar > > Change the log buffer size and copy the messages. > > Signed-off-by: Dan Bugnar > --- > log/syslog.c | 37 +++-- > log/syslog.h

Re: [LEDE-DEV] [PATCH 2/2] [ubox] logd: add ubus reload method

2016-05-13 Thread Alexandru Ardelean
et> [13.05.2016 11:52]: >>>> >>>> On 13/05/16 07:23, Alexandru Ardelean wrote: >>>>> >>>>> Short version is: we have a configuration management system on top of >>>>> OpenWrt ; system boots with default settings (on every boot), a

Re: [LEDE-DEV] [PATCH 2/2] [ubox] logd: add ubus reload method

2016-05-13 Thread Alexandru Ardelean
On Fri, May 13, 2016 at 12:14 AM, Karl Palsson <ka...@tweak.net.au> wrote: > > Alexandru Ardelean <ardeleana...@gmail.com> wrote: >> >> Changing the log size dynamically at runtime is a use case that >> we have. > > I'm sorry, but can you talk to me like

[LEDE-DEV] Fwd: [PATCH 2/2] [ubox] logd: add ubus reload method

2016-05-12 Thread Alexandru Ardelean
On Thu, May 12, 2016 at 5:30 PM, Karl Palsson wrote: > > > Dan Bugnar wrote: > > From: Dan Bugnar > > > > Add logd link to uci library, to read the system config file > > and get the buffer size. Remove the -S option support and use >