[LEDE-DEV] [PATCH] iptables: link extension libraries with -lm

2018-04-24 Thread Alin Nastac
This fixes an iptables link error when kernel config include CONFIG_NETFILTER_XT_MATCH_STATISTIC=y related to the missing -lm argument on the linker command line. Error is caused by the odd looking linker argument ${$*_LIBADD} which get expanded to an empty string. Signed-off-by: Alin Nastac

[LEDE-DEV] [PATCHv2] firewall: fix logging of dropped & rejected packets

2018-04-03 Thread Alin Nastac
From: Alin Nastac <alin.nas...@gmail.com> Reproduction scenario: - use 3 interfaces with 3 different zones - lan, wan and guest - configure firewall to allow forwarding from lan to wan - add DROP rule to prevent forwarding from lan to guest - although packets are forwarded from lan

[LEDE-DEV] [PATCH] firewall: fix logging of dropped & rejected packets

2018-04-03 Thread Alin Nastac
generated by zone_guest_dest_DROP chain Signed-off-by: Alin Nastac <alin.nas...@gmail.com> --- zones.c | 74 ++--- 1 file changed, 62 insertions(+), 12 deletions(-) diff --git a/zones.c b/zones.c index e00d527..1f55aa6 100644 ---

[LEDE-DEV] [PATCHv2] netifd: allow negative neighlocktime values

2017-08-17 Thread Alin Nastac
When -1 is written in /proc/sys/net/ipv4/neigh//locktime, kernel disables ARP trashing protection. A value of 0 does not completely disable this protection, a second ARP update being discarded if it is processed during the same jiffie as the first update. Signed-off-by: Alin Nastac <alin.

[LEDE-DEV] [PATCH] procd: service gets deleted when its last instance is freed

2017-02-27 Thread Alin Nastac
s obtained, sysntpd would be stopped Because sysntpd service is deleted when last instance is freed, its triggers will also be released. Without these triggers in place, sysntpd will not be reloaded when a new DHCP lease containing option 42 will be received. Signed-off-by: Alin Nastac <alin.nas

[LEDE-DEV] [PATCH] procd: service gets deleted when its last instance is freed

2017-02-24 Thread Alin Nastac
Signed-off-by: Alin Nastac <alin.nas...@gmail.com> --- service/service.c | 5 - service/service.h | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/service/service.c b/service/service.c index 0584ee0..9675ba2 100644 --- a/service/service.c +++ b/service/service.c @@

[LEDE-DEV] [PATCH] procd: stop service using SIGKILL if SIGTERM failed to do so

2017-02-09 Thread Alin Nastac
SIGKILL is sent if instance process is still running after seconds after SIGTERM has been sent. To prevent another daemon process being launched before old process dies, the instance is kept until SIGCHLD confirms that service has been stopped. Signed-off-by: Alin Nastac <alin.nas...@gmail.

[LEDE-DEV] [PATCH] netifd: Add option to configure locktime for each device

2017-01-17 Thread Alin Nastac
in the NA packet. Signed-off-by: Alin Nastac <alin.nas...@gmail.com> --- device.c | 10 ++ device.h | 3 +++ system-linux.c | 20 3 files changed, 33 insertions(+) diff --git a/device.c b/device.c index 43881e5..306496c 100644 --- a/device.c +++ b/de

[LEDE-DEV] [PATCH] libnetfilter_queue: fix UDP checksum computation

2016-06-15 Thread Alin Nastac
This patch was copied from http://www.spinics.net/lists/netfilter/msg56704.html . --- .../patches/100-udp_checksum_computation.patch | 95 ++ 1 file changed, 95 insertions(+) create mode 100644 package/libs/libnetfilter-queue/patches/100-udp_checksum_computation.patch

[LEDE-DEV] [PATCH] netifd: Add option to configure gc_stale_time for each device

2016-05-24 Thread Alin Nastac
The UCI parameter neighgcstaletime allows to control how much time will STALE entries be kept in the neighbour table for both IPv4 and IPv6. Signed-off-by: Alin Nastac <alin.nas...@gmail.com> --- device.c | 14 ++ device.h | 4 system-linux.