Re: Corruption in ext4 root

2020-12-16 Thread Daniel Gröber
Hi Michael, On Tue, Dec 15, 2020 at 09:16:50PM -0600, W. Michael Petullo wrote: > I often find the OpenWrt image's root filesystem corrupt after running > "poweroff" and then restarting the DomU VM. What exactly do you mean by "corrupt"? Are files that you create before the poweroff just gone or

[PATCH v4] wireguard: Make IPv6 addrs available for automatic prefix assignment

2020-12-08 Thread Daniel Gröber
n' option proto 'static' option ip6assign '60' as is default the interface does not automatically receive the wg interface's prefix. For this to happen the proto needs to use proto_add_ipv6_prefix to register the fact that a prefix is available for

Re: [PATCH netifd] interface-ip: Normalise prefix address using netmask before using it

2020-11-25 Thread Daniel Gröber
On Wed, Nov 25, 2020 at 08:23:08PM +0100, Hans Dedecker wrote: > This is fixed in netifd by commit > https://git.openwrt.org/?p=project/netifd.git;a=commitdiff;h=645ceed0ed706b073edd6a0d5a2eb936208b48c9 Cool I didn't see that. Thanks! I'm a bit bummed you didn't just include the more detailed exp

[PATCH v3] wireguard: Make IPv6 addrs available for automatic prefix assignment

2020-11-25 Thread Daniel Gröber
e for assignment which is simple enough. Note that the addresses configured here usually include a non-zero host part but currently netifd handles this poorly when more than one interface should receive a sub-prefix. Signed-off-by: Daniel Gröber --- v3: Bump PKG_RELEASE, remove mention of netif

Re: [PATCH v2] wireguard: Make IPv6 addrs available for automatic prefix assignment

2020-11-25 Thread 'Daniel Gröber'
On Wed, Nov 25, 2020 at 07:28:25PM +0100, Adrian Schmutzler wrote: > > Note that the addresses configured here usually include a non-zero host part > > but currently netifd handles this poorly when more than one interface > > should receive a sub-prefix. > > > > The required fix can be found in "[

[PATCH v2] wireguard: Make IPv6 addrs available for automatic prefix assignment

2020-11-25 Thread Daniel Gröber
p: Normalise prefix address using netmask before using it" (Message-Id: <20201125173536.1175-1-d...@darkboxed.org>) Signed-off-by: Daniel Gröber --- package/network/utils/wireguard-tools/files/wireguard.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/package/network/utils/wireguard-tools/fil

[PATCH netifd] interface-ip: Normalise prefix address using netmask before using it

2020-11-25 Thread Daniel Gröber
] |= htonl(assignment->assigned); but we never masked the host address bits out of the address after parsing it using inet_pton. To fix this we simply mask away the host bits in the address before using it. Signed-off-by: Daniel Gröber --- interface-ip.c | 2 ++ 1 file changed, 2 insertions(+) d