[LEDE-DEV] [PATCH netifd] interface: fix "ifup-failed" hotplug event handling

2018-04-09 Thread Martin Schiller
The ifup-failed event should only be triggered when the former interface state is IFS_SETUP. Otherwise, there will also be an ifup-failed event in the IFS_TEARDOWN stateif you do an manual ifdown . Signed-off-by: Martin Schiller <m...@dev.tdt.de> --- interface.c | 10 -- 1 file c

Re: [LEDE-DEV] [PATCH netifd] system-linux: add support for hotplug event 'move'

2017-09-29 Thread Martin Schiller
On 2017-09-29 00:36, Philip Prindeville wrote: Inlineā€¦ On Sep 28, 2017, at 2:32 AM, Martin Schiller <m...@dev.tdt.de> wrote: If you rename a network interface, there is a move uevent invoked instead of remove/add. This patch adds support for this kind of event. Signed-off-by:

[LEDE-DEV] [PATCH netifd] system-linux: add support for hotplug event 'move'

2017-09-28 Thread Martin Schiller
If you rename a network interface, there is a move uevent invoked instead of remove/add. This patch adds support for this kind of event. Signed-off-by: Martin Schiller <m...@dev.tdt.de> --- system-linux.c | 31 --- 1 file changed, 28 insertions(+), 3 del

Re: [LEDE-DEV] [PATCH netifd] interface: add new "ifup-failed" hotplug event

2017-05-07 Thread Martin Schiller
On 2017-05-06 14:47, Jo-Philipp Wich wrote: Hi, Are there any comments about this patch? can't you achieve the same by simply watching ifdown events and checking ifstatus/devstatus indicators? No, unfortunately not. An ifdown event is only generated when the interface has already been

Re: [LEDE-DEV] [PATCH netifd] interface: add new "ifup-failed" hotplug event

2017-05-05 Thread Martin Schiller
Are there any comments about this patch? I still want to get this feature into netifd. On 2017-03-31 08:31, Martin Schiller wrote: This hook makes it possible to do some helper work in hotplug scripts when a connection is not established successfully. example: try several username/passwords

[LEDE-DEV] [PATCH netifd] interface: add new "ifup-failed" hotplug event

2017-03-31 Thread Martin Schiller
-off-by: Martin Schiller <m...@dev.tdt.de> --- interface-event.c | 2 ++ interface.c | 4 interface.h | 1 + 3 files changed, 7 insertions(+) diff --git a/interface-event.c b/interface-event.c index 4976c2c..86e8f54 100644 --- a/interface-event.c +++ b/interface-event.c @@

[LEDE-DEV] [PATCH v2] libpcap: add optional netfilter support

2017-02-19 Thread Martin Schiller
This is needed to use the nflog interface with tcpdump Signed-off-by: Martin Schiller <mschil...@tdt.de> --- package/libs/libpcap/Config.in | 4 package/libs/libpcap/Makefile | 7 +-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/package/libs/libpcap/Confi

[LEDE-DEV] [PATCH] libpcap: add optional netfilter support

2017-02-16 Thread Martin Schiller
This is needed to use the nflog interface with tcpdump Signed-off-by: Martin Schiller <mschil...@tdt.de> --- package/libs/libpcap/Config.in | 5 + package/libs/libpcap/Makefile | 7 +-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/package/libs/libpcap/Confi

[LEDE-DEV] [PATCH 2/3] ltq-deu: fix handling of data blocks with sizes != AES/DES block size

2016-08-18 Thread Martin Schiller
This fix is a backport from the lantiq UGW-6.1.1-MR1 Signed-off-by: Martin Schiller <mschil...@tdt.de> --- package/kernel/lantiq/ltq-deu/src/ifxmips_aes.c | 124 ++-- package/kernel/lantiq/ltq-deu/src/ifxmips_des.c | 28 +++--- 2 files changed, 108 insertions(

[LEDE-DEV] [PATCH 3/3] ltq-deu: fix cra_priority

2016-08-18 Thread Martin Schiller
With the default priority of 0, the DEU algos would be overlapped by the generic algos (if available). To fix this, set the cra_priority of the hardware algos to the recommended value of 300/400. Signed-off-by: Martin Schiller <mschil...@tdt.de> --- package/kernel/lantiq/ltq-d

[LEDE-DEV] [PATCH] lantiq/xrx200-net: Add support for eth0 as WAN interface

2016-08-15 Thread Martin Schiller
Use priv->wan instead of priv->id as indicator if packets should go to the Ethernet WAN group (DPID=1) or not (DPID=0). This way, it's independant of interface names or indexes. Signed-off-by: Martin Schiller <mschil...@tdt.de> --- .../linux/lantiq/patches-4.4/0025-NET-MIPS-lantiq