[PATCH v2] wireguard-tools: allow generating private_key

2021-09-14 Thread Leonardo Mörlein
p. Signed-off-by: Leonardo Mörlein --- v2: Changes since v1: - The (recently introduced) uci flag "-t" is used to avoid interference with potentially existing uncommited user changes. This addresses Jo-Philipp Wich's concerns about v1 of the patch. - The functionality has been m

Re: [PATCH uci] delta: allow clearing delta path

2021-07-03 Thread Leonardo Mörlein
Hi all, Unfortunately this patch has not received much attention yet. I would like to get some comments on it. Actually, I plan to use this patch to resubmit a new version of [1]. The proposed change in [1] was only rejected because there was no way to change the uci configuration from scripts wi

[PATCH uci] delta: allow clearing delta path

2021-01-10 Thread Leonardo Mörlein
27;. - the lua method cur:clear_delta(). - the libuci function uci_clear_delta_path(). - a test case. To safely commit changes from shell scripts, use: local tmp="$(mktemp -d)" uci -P "$tmp" config.section.var=val uci -P "$tmp" -x commit rm -rf

Re: [PATCH] wireguard-tools: allow generating private_key

2021-01-08 Thread Leonardo Mörlein
Hi Jo, I see your point. I will solve this downstream, so this can be closed. Kind regards, Leo ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel

[PATCH] wireguard-tools: allow generating private_key

2021-01-07 Thread Leonardo Mörlein
p. Signed-off-by: Leonardo Mörlein --- package/network/utils/wireguard-tools/files/wireguard.sh | 5 + 1 file changed, 5 insertions(+) diff --git a/package/network/utils/wireguard-tools/files/wireguard.sh b/package/network/utils/wireguard-tools/files/wireguard.sh index 63261aea71..d874c4b

[PATCH v2 netifd] netifd-proto.sh: Add PROTO_DEBUG and proto_debug_*()

2021-01-05 Thread Leonardo Mörlein
emon.notice netifd: vx_mesh_vpn (25452): proto_vxlan6_setup(vx_mesh_vpn,) -> proto_add_data Wed Dec 30 00:04:07 2020 daemon.notice netifd: vx_mesh_vpn (25452): proto_vxlan6_setup(vx_mesh_vpn,) -> proto_close_data Wed Dec 30 00:04:07 2020 daemon.notice netifd: vx_mesh_vpn (25452):

[PATCH netifd] scripts: Add scripts/netifd-netinfo.sh

2020-12-30 Thread Leonardo Mörlein
) -e use regex for PATTERN matching ---snap--- Signed-off-by: Leonardo Mörlein --- scripts/netifd-netinfo.sh | 143 ++ 1 file changed, 143 insertions(+) create mode 100755 scripts/netifd-netinfo.sh diff --git a/scripts/netifd-netinfo.sh b

[PATCHv2 libubox] sh/jshn.sh: Add JSHN_DEBUG flag

2020-12-29 Thread Leonardo Mörlein
---stdout--- { "foo": "bar", "val": "12" } ---snap--- This is a preparatory commit to eventually allow debugging netifd protos in a better way. Signed-off-by: Leonardo Mörlein --- sh/jshn.sh | 69 -- 1

[PATCH netifd] netifd-proto.sh: Add PROTO_DEBUG and proto_debug_*()

2020-12-29 Thread Leonardo Mörlein
emon.notice netifd: vx_mesh_vpn (25452): proto_vxlan6_setup(vx_mesh_vpn,) -> proto_add_data Wed Dec 30 00:04:07 2020 daemon.notice netifd: vx_mesh_vpn (25452): proto_vxlan6_setup(vx_mesh_vpn,) -> proto_close_data Wed Dec 30 00:04:07 2020 daemon.notic

[PATCH libubox] sh/jshn.sh: Add JSHN_DEBUG flag

2020-12-29 Thread Leonardo Mörlein
---stdout--- { "foo": "bar", "val": "12" } ---snap--- This is a preparatory commit to eventually allow debugging netifd protos in a better way. Signed-off-by: Leonardo Mörlein --- sh/jshn.sh | 64 +- 1

[OpenWrt-Devel] [PATCH procd 1/2] jail: SIGSEGV must not be forwarded to the child process

2020-05-07 Thread Leonardo Mörlein
the jailed process [...] Signed-off-by: Leonardo Mörlein --- jail/jail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jail/jail.c b/jail/jail.c index 8ae477c..67d4cad 100644 --- a/jail/jail.c +++ b/jail/jail.c @@ -775,7 +775,7 @@ int main(int argc, char **argv

[OpenWrt-Devel] [PATCH procd 2/2] jail: unnamed jails can not have netns (fix segfault)

2020-05-07 Thread Leonardo Mörlein
Signed-off-by: Leonardo Mörlein --- jail/jail.c | 4 1 file changed, 4 insertions(+) diff --git a/jail/jail.c b/jail/jail.c index 67d4cad..a52c264 100644 --- a/jail/jail.c +++ b/jail/jail.c @@ -841,6 +841,10 @@ int main(int argc, char **argv) } if