From nobody Fri Dec 15 12:25:16 2023 X-Original-To: bugs@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 4Ss7hs05FZz52l1j for ; Fri, 15 Dec 2023 12:25:17 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Ss7hr5y27z3bVJ for ; Fri, 15 Dec 2023 12:25:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1702643116; a=rsa-sha256; cv=none; b=ioSBS9GINUxSrs28BTY79QCIWInU85Q1FUWHwkqajglfBJJkzYq/XXO0QASJe4plQJC6LL 2xbJPG0ezLuaM30BWVzzzBBRZ36Pk+++qxbHxCPuGN5s3YVNxc8zX2RHIuCNvDBblrvlDn 91/oY9qQFS/APeu99PdY5ZUJ29tfbsUAxGRNeGr93Wkt7oVjN3nbCc4ZLkdEuFroANAxPK 4PztV8iDaImsFuoQXwtvudp0EsHZrSwV2aDzYZM/g5BIz/QPDEiJ2XzP9qbZUg+g2YM6XT EdZ6Jy0sFHIX5OGF//lVRDybMrmNqw1buiGb77FboahbmSOIC4zGkKyoReo2iw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1702643116; 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; bh=+rFDQ9m0UtvU8NUgL0UOHvMKYhoLF3GarUHZ4ioBbMU=; b=x9U37kZiHmkadTQgzeuHPTX3oHqDbnXpzA7wam9/NUhSnGAwaboEJ7FhaGM/iylBuKOvuf uZb5qo5syp82PuUzVtz4jbQfyPXsiBnCSH7WZ7I7IeCxhdcpfLaZdi8/f4xf/VbXA7aRbc nMjHaT3yAX1xLpnKQjtj0Su3cgbTUjG4INDKG/2TLAWC1/E2I+CoeEAvC6SWSzQVMWWXYk 19yQpERVfTXYW/ATDX8zo0iYFLy0jR6vmWORG+EtoYHEsKxGv8byrizOdDAtgsLchFZViq IpE9x30dOaSOI65vfbF7ARV3rVyuVRrDb+s8fDHJ8NfpYRP7PbNlHK88r8d+xQ== 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 4Ss7hr518Wz19NT for ; Fri, 15 Dec 2023 12:25:16 +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 3BFCPGp6071145 for ; Fri, 15 Dec 2023 12:25:16 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3BFCPGN2071144 for bugs@FreeBSD.org; Fri, 15 Dec 2023 12:25:16 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: bugs@FreeBSD.org Subject: [Bug 275774] IPv4 Mapper address problem Date: Fri, 15 Dec 2023 12:25:16 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 15.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: manu@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.mimetype attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D275774 Bug ID: 275774 Summary: IPv4 Mapper address problem Product: Base System Version: 15.0-CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: manu@freebsd.org Attachment #247054 text/plain mime type: Created attachment 247054 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D247054&action= =3Dedit udptest Hi, We have a problem at work with IPv4-Mapped address. Attached is two test program, udptest and udptest_recv. The first one send a udp datagram to 127.0.0.1 and if a response is receive= d it will send another one to the given ip address given in the first args. So we have machine A and machine B. - Start udptest_recv on machine A - Start udptest_recv on machine B - tcpdump -i lo0 on machine A - Start udptest XXX.XXX.XXX.XXX (ipv4 of machine B) on machine A What is expected : - machine A send 'abcd' to 127.0.0.1 - machine A receive 'abcd' - machine A sends back 'abcd' to machine A - machine A send 'efgh' to machine B - machine B receive 'efgh' from machine A What is happening : - machine A send 'abcd' to 127.0.0.1 - machine A receive 'abcd' - machine A sends back 'abcd' to machine A - machine A send 'efgh' to machine A - machine A receive 'efgh' from machine A - machine B receives nothing tcpdump -i lo0 on machine A gives us : tcpdump: verbose output suppressed, use -v[v]... for full protocol decode listening on lo0, link-type NULL (BSD loopback), snapshot length 262144 byt= es 13:17:46.418063 IP 127.0.0.1.34254 > 127.0.0.1.1234: UDP, length 4 13:17:46.418233 IP 127.0.0.1.1234 > 127.0.0.1.34254: UDP, length 4 13:17:46.418341 IP 192.168.1.51.34254 > 192.168.1.50.1234: UDP, length 4 192.168.1.51 is the IPv4 of machine A and 192.168.1.50 the one of machine B So the second udp packet is send via lo0 Attached is also a patch that fixes it but we're not sure if that's the best way or not as we don't have much knowledge of our IP stack. On 13.2 the correct behavior is happening. On 15-CURRENT (3494f7c019fc6558a99f63 from December 8 2023) it doesn't work. Not tested on 14.0 (yet). --=20 You are receiving this mail because: You are the assignee for the bug.=