On Sun, 21 Sep 2025 18:02:24 +0200, Guido Falsi wrote: > > Yes, I now see recompiling would not have helped in this case. > > A C program would have included the system include and noticed the > change, but this software has hardcoded the struct in go code and > requires patching. > > I'm attaching a simple patch for the ports tree for this port, it > compiles but I've not tested it at runtime, could you try applying > this patch to the ports tree and recompile the port, and report back? > > Please note this is not a proper patch for the ports tree, it just > fixes the problem, but would break it for anyone else, I'll produce a > proper patch for the ports tree once I have confirmed the approach > woks. > > Thanks in advance! > > -- > Guido Falsi <[email protected]> > From 5470f8e3f05c21bb0812ee0100ca3372e2f75ede Mon Sep 17 00:00:00 2001 > From: Guido Falsi <[email protected]> > Date: Sun, 21 Sep 2025 17:47:08 +0200 > Subject: [PATCH] security/netbird: Test fix > > --- > ...ndor_golang.zx2c4.com_wireguard_tun_tun__freebsd.go | 10 ++++++++++ > 1 file changed, 10 insertions(+) > create mode 100644 > security/netbird/files/patch-vendor_golang.zx2c4.com_wireguard_tun_tun__freebsd.go > > diff --git > a/security/netbird/files/patch-vendor_golang.zx2c4.com_wireguard_tun_tun__freebsd.go > > b/security/netbird/files/patch-vendor_golang.zx2c4.com_wireguard_tun_tun__freebsd.go > new file mode 100644 > index 000000000000..513b1217fa2c > --- /dev/null > +++ > b/security/netbird/files/patch-vendor_golang.zx2c4.com_wireguard_tun_tun__freebsd.go > @@ -0,0 +1,10 @@ > +--- vendor/golang.zx2c4.com/wireguard/tun/tun_freebsd.go.orig > 2025-09-21 11:04:17 UTC > ++++ vendor/golang.zx2c4.com/wireguard/tun/tun_freebsd.go > +@@ -65,6 +65,7 @@ type nd6Req struct { > + Randomseed0 [8]byte > + Randomseed1 [8]byte > + Randomid [8]byte > ++ Dad_failures *uint64 > + } > + > + type NativeTun struct { > -- > 2.51.0
Sorry, this patch doesn't resolve the issue. I get the same error. (Netbird still works with this patch on stable/15.)
