From owner-freebsd-bugs@freebsd.org Thu Aug 10 08:30:58 2017 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 45991DCB99A for ; Thu, 10 Aug 2017 08:30:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 33D047700A for ; Thu, 10 Aug 2017 08:30:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v7A8Uwan043332 for ; Thu, 10 Aug 2017 08:30:58 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 221385] [Regression] v6 mapped v4 addresses not working in 11.1 Date: Thu, 10 Aug 2017 08:30:58 +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: 11.1-RELEASE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: seb@struchtrup.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status keywords bug_severity priority component assigned_to reporter 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 MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Aug 2017 08:30:58 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D221385 Bug ID: 221385 Summary: [Regression] v6 mapped v4 addresses not working in 11.1 Product: Base System Version: 11.1-RELEASE Hardware: Any OS: Any Status: New Keywords: regression Severity: Affects Only Me Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: seb@struchtrup.com Keywords: regression Created attachment 185224 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D185224&action= =3Dedit Test case to reproduce the problem Having set sysctl net.inet6.ip6.v6only=3D0, v6-mapped v4 addresses used to = work on 11.0 and on previous versions. On 11.1-RELEASE, I am now getting EAFNOSUPPORT on connect() when using a v6-mapped address on a PF_INET6 socket. Adding an extra setsockopt to clear IPV6_V6ONLY will work around this. # sysctl net.inet6.ip6.v6only net.inet6.ip6.v6only: 0 # uname -a FreeBSD s5.struchtrup.com 11.1-RELEASE FreeBSD 11.1-RELEASE #0 r321309: Fri= Jul 21 02:08:28 UTC 2017=20=20=20=20 root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 truss output (stripped) - failing case w/o setsockopt: socket(PF_INET6,SOCK_STREAM,0) =3D 3 (0x3) connect(3,{ AF_INET6 [::ffff:127.0.0.1]:1234 },28) ERR#47 'Address family n= ot supported by protocol family' truss output with setsockopt: socket(PF_INET6,SOCK_STREAM,0) =3D 3 (0x3) setsockopt(3,IPPROTO_IPV6,IPV6_V6ONLY,0x7fffffffea94,4) =3D 0 (0x0) connect(3,{ AF_INET6 [::ffff:127.0.0.1]:1234 },28) =3D 0 (0x0) --=20 You are receiving this mail because: You are the assignee for the bug.=