[LEDE-DEV] [PATCH v3] dnsmaq: add interface to ubus notification

2017-11-29 Thread Borja Salazar
Signed-off-by: Borja Salazar --- package/network/services/dnsmasq/Makefile | 2 +- package/network/services/dnsmasq/patches/240-ubus.patch | 12 +++- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/package/network/services/dnsmasq/Makefile b/package/network

[LEDE-DEV] [PATCH v2] dnsmaq: add interface to ubus notification

2017-11-29 Thread Borja Salazar
Signed-off-by: Borja Salazar --- package/network/services/dnsmasq/patches/240-ubus.patch | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/package/network/services/dnsmasq/patches/240-ubus.patch b/package/network/services/dnsmasq/patches/240-ubus.patch index

[LEDE-DEV] [PATCH v1] dnsmaq: add interface to ubus notification

2017-11-28 Thread Borja Salazar
--- package/network/services/dnsmasq/patches/240-ubus.patch | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/package/network/services/dnsmasq/patches/240-ubus.patch b/package/network/services/dnsmasq/patches/240-ubus.patch index 0e0b1dd1b0..0a380ca824 100644 --- a/

[LEDE-DEV] [PATCH odhcpd v2] dhcpv4: notify DHCP ACK and RELEASE via ubus

2017-11-28 Thread Borja Salazar
if the ubus object has any subscription notify DHCP ACK and DHCP RELEASE events using ubus notifications. Signed-off-by: Borja Salazar --- src/dhcpv4.c | 16 src/odhcpd.h | 2 ++ src/ubus.c | 24 3 files changed, 42 insertions(+) diff --git a/src

Re: [LEDE-DEV] [PATCH odhcpd] dhcpv4: notify DHCP ack messages via ubus

2017-11-28 Thread Borja Salazar
Hi, I will send a V2 patch. Thanks On Tue, Nov 28, 2017 at 8:36 AM, Hans Dedecker wrote: > On Mon, Nov 27, 2017 at 11:12 AM, Borja Salazar wrote: >> Hi, >> >> Our company is currently developing a service for controlling routers >> via ubus methods from a server. We

Re: [LEDE-DEV] [PATCH odhcpd] dhcpv4: notify DHCP ack messages via ubus

2017-11-27 Thread Borja Salazar
to know the first time a client is detected, so this would also work for us. Let me know what you think Thanks Borja On Mon, Nov 27, 2017 at 10:47 AM, Hans Dedecker wrote: > On Fri, Nov 24, 2017 at 11:56 AM, Borja Salazar wrote: >> Signed-off-by: Borja Salazar > Hi, > > Coul

[LEDE-DEV] [PATCH odhcpd] dhcpv4: notify DHCP ack messages via ubus

2017-11-24 Thread Borja Salazar
Signed-off-by: Borja Salazar --- src/dhcpv4.c | 8 src/odhcpd.h | 1 + src/ubus.c | 19 +++ 3 files changed, 28 insertions(+) diff --git a/src/dhcpv4.c b/src/dhcpv4.c index 166582e..ad8d338 100644 --- a/src/dhcpv4.c +++ b/src/dhcpv4.c @@ -870,6 +870,14 @@ static