From nobody Tue Nov 4 16:40:19 2025 X-Original-To: net@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 4d1Dhg6HT9z6GMKd for ; Tue, 04 Nov 2025 16:40:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4d1Dhg5j2xz3fPN for ; Tue, 04 Nov 2025 16:40:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1762274419; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=155DmEDrA+JdVVCaWRSW/gIBLGln4vqyO8exh6etZ7Y=; b=u6SMYW+esAKbJGOmqNxxaOYb1lvNN4RQl3JkITsuQhdVJOoqZBgLz3lABc+e8IzN3aSlXj 9ZkFrRIsc6oXZLUT8x6Xzrxw+DEL4xOhaot8+zZJN1Cg9qpGAqpeTsGpdzENce6Oe1Oq28 2hMMy/puvdjxCrTvRSFSt/h+6hrE0Lpfrq4Fe+GJLQvRHbjbxqQv/VeLMmZNfGaNloEYTs QMOQQdJOhKJZco3jUoi3gKTQ47HFhL78o8Gz2BIc4ird3ZQUbeorHW5TbKrUaaOKLEJjaJ w0/O1lJe2WmTNMrczdA50ukIz5nRyMvFBcM6EQ5RZk3nXwaal8/a7wMbKNBvFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1762274419; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=155DmEDrA+JdVVCaWRSW/gIBLGln4vqyO8exh6etZ7Y=; b=iX73+lDCpT4WYUhLeWQvgGGfj/Iwhya+kFGePLCWyr3pdBlci1UqjYCk/Uw72TZC5cLR24 L8lUpKrmLvMR2KrCwbxH96tcMkFY1KFpI6HabOieWWIx81coqk/fVS0ag5eXKyJCoqrBtD HDrz2hshjta6n/Z3rQ6Uqbfpdfn7QnIfU7DdF4UQo2obTbSFrlAbonFxxhhtTxWvTcuXd5 Nz/n9Umr1RH2lxDYtYowsGOoPJ0CxSQC/fq1b0Ldo67yTikhX0gbGv3xuriHFo8s9vVup/ xZkFZoILZPa5s2k34PepjfQCunJLAAqcanxVhur/f10ahFZkd2dbSc05FrWy9w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1762274419; a=rsa-sha256; cv=none; b=ATG+jcoOCJy5JxUELYJ40ZvKEOvqXmQBdHIz6fOqRsB3ToYvNh4okDt2ySevIK0gYo2K4X OyH4+wVFn7oLUCN8tTCHKx0/MCOHUOM+SDUO/sWIppDC2mO6UUX/8BTnE6hakfjc9tTyyU opP5W5yDMiCnbQdp2oPgLhcMr6zBSCML25jzXl/p+bhemAQRAGfidyjHchtfxBkON6qpuE aZsYUlMpvkmG0GjUUFdCqxmj08stNKbiDCXCGqhemx6M+d+vHUoxh8s5ykiwTSfFk53lGa ZFZJM+yyEkj5X1Kk2rF/dT5GKCE95NNWbLYX8bIIOawmbNkU+SHr0O2Aacggcw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4d1Dhg4wbQz14wv for ; Tue, 04 Nov 2025 16:40:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 5A4GeJuq012973 for ; Tue, 4 Nov 2025 16:40:19 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 5A4GeJEn012972 for net@FreeBSD.org; Tue, 4 Nov 2025 16:40:19 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 290768] if_wg(4): handshake response has src and dst reverse Date: Tue, 04 Nov 2025 16:40:19 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 14.3-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: it@vineyard-sha.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D290768 --- Comment #2 from relvy --- More verbose tcpdump output: tcpdump: verbose output suppressed, use -v[v]... for full protocol decode listening on igc0, link-type EN10MB (Ethernet), snapshot length 262144 bytes 17:23:13.401182 e0:28:6d:89:6b:02 > 00:00:5e:00:01:01, ethertype IPv4 (0x08= 00), length 190: a.b.c.d.18457 > 192.168.178.2.51820: UDP, length 148 17:23:13.401227 00:90:27:e6:33:13 > e0:28:6d:89:6b:02, ethertype IPv4 (0x08= 00), length 190: a.b.c.d.18457 > 192.168.178.2.51820: UDP, length 148 a.b.c.d is the public IP address of my peer. 192.168.178.2 is my CARP addre= ss on the WAN side. The first line is the handshake initiation from the peer. The second line is the response thereof. Notice, the src IP and dst IP are reversed while the MAC-Addresses are ok. Layer 2 is ok. The problem is in layer 3. Maybe there is a bcopy() or memcpy() somewhere with src and dst arguments swapped? --=20 You are receiving this mail because: You are the assignee for the bug.=