From nobody Sun Sep 21 16:30:33 2025 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4cVBZV0gMVz68K9r; Sun, 21 Sep 2025 16:31:14 +0000 (UTC) (envelope-from herbert@gojira.at) Received: from mout-p-101.mailbox.org (mout-p-101.mailbox.org [IPv6:2001:67c:2050:0:465::101]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4cVBZT42vYz467V; Sun, 21 Sep 2025 16:31:13 +0000 (UTC) (envelope-from herbert@gojira.at) Authentication-Results: mx1.freebsd.org; none Received: from smtp202.mailbox.org (smtp202.mailbox.org [IPv6:2001:67c:2050:b231:465::202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4cVBZD27Jbz9svN; Sun, 21 Sep 2025 18:31:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gojira.at; s=MBO0001; t=1758472260; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=QreNOkWhrUY/DAQl1cvJfQtshV/hcMFF1NGifsIfw9Q=; b=13LdFWvjl414KF2uTXqt3Hr/9jD70hTQPr3eQHisUw78uo/Cdvpqo0MQuXvqoqKezrUjKC dWBxdloGr7KEWmfZ2up9lFyfJMxBvcM1Fftw2j/7q3Jbpv3UUSKubHSGFjd3jYD0Sup5XU ggLmRLb5C8PKQbxGkiD/DukqAoarhKNPDawo6vPSVlrNv4VPpYKpHawVMWmu5SfcI1/vkL QAkVPQrYSWyqrP2HRG0Nd31MGyvNnzDmw0XQkANsl8+fJRnXD+jY0vB+hr5IcLDNg1PdGj W7X5PLRhKaLCc5rqMe3X1hiEAq73h/+TwohsXac+Z+qfQJHdTTbufH8bkDuWIQ== Date: Sun, 21 Sep 2025 18:30:33 +0200 Message-ID: <87ikhbdaza.wl-herbert@gojira.at> From: "Herbert J. Skuhra" To: Guido Falsi Cc: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: Re: git: 31ec8b6407fd - main - sys/netinet6: Implement RFC 7217 In-Reply-To: <31da7dd5-ae67-4fb4-aa47-81e57f460c9d@FreeBSD.org> References: <202509201231.58KCVqBC047480@gitrepo.freebsd.org> <874iswhip4.wl-herbert@gojira.at> <07503de1-785e-4e4d-b4e4-0524aeb064e1@FreeBSD.org> <87jz1sc9fr.wl-herbert@gojira.at> <31da7dd5-ae67-4fb4-aa47-81e57f460c9d@FreeBSD.org> List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:199118, ipnet:2001:67c:2050::/48, country:DE] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Queue-Id: 4cVBZT42vYz467V 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 > From 5470f8e3f05c21bb0812ee0100ca3372e2f75ede Mon Sep 17 00:00:00 2001 > From: Guido Falsi > 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.)