rom mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4W5H5x0yJXz5Nbsb for ; Fri, 21 Jun 2024 12:41:09 +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 4W5H5w6lKPz4fkS for ; Fri, 21 Jun 2024 12:41:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1718973668; a=rsa-sha256; cv=none; b=Tjw5JMY5xV5CKJk6T9v5CtPqevpo93v7eI9Cx/ME1gPTSVeROU7E86xDQTd3GVJapIJUh5 X37V6EFMqvhLdU+OddlyH1uf2y4BUQ5EeKGaZjK46JjyAyL/20sGbwQlX5w5LyMmjDCrDj XxETj9V8+powsYIiAeEQzE6gLhZZV76QV4k4LzDtvORhnDu6s2YNsnad3PXyvHMNDtQuK6 JcpI60tU7UpeCmIqoOjOL8FToLTdDV1Zzq8DhMheeX2JwTRGmczvSy8eBW29Wv7ln1ht5L B3WsudK8N5WX0fMIdVS8EmGqxKfhbJNG/8LOCGLXiFqh/f/9cEmdC6pgAEvG+A== 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=1718973668; 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=nz2xTzCcFo44rdNmS+G9ezzeF/tQxCTg+H7Qo3ZLF8c=; b=wXA6tmCJLZcO2K836KqFPGJDSAW/OxuRhAVzXiICp5IgYjX5JSRPmwFn+hQrWgDto3ksse CHDLRSGy43BaOXJfD+PnGSgCSKxbF9xC8AktMSKlU9Hg7LS2siD30SbIjcztHyf2B2+8JM YRvOjGm+ssDJ5CH2NyepOx5iP1c4+omMkpLqU4gH2wExejsThZTeZrgyW3Bu2TcxpNYXFY sT77yxjq/doDV0WCfI9u6KESSL+W2wW2jvHJWlW4mAgarLuoC+SpbJ+NOttmMHzJElrnNy 9AIFsSjXVhmSj/bYQWWRBynsDJlgPxekUK5GSn/epRJ205tWBEk5yEoG2owGgQ== 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 4W5H5w6LFWz17Ty for ; Fri, 21 Jun 2024 12:41:08 +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 45LCf8TF065693 for ; Fri, 21 Jun 2024 12:41:08 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 45LCf8nr065688 for bugs@FreeBSD.org; Fri, 21 Jun 2024 12:41:08 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 279881] socket support for IPv4-mapped IPv6 misbehave Date: Fri, 21 Jun 2024 12:41:08 +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.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: ae@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: Message-ID: In-Reply-To: References: 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=3D279881 --- Comment #2 from Andrey V. Elsukov --- So, I used attached test program: % clang main.c -o test % sudo ifconfig lo0 inet 10.0.0.1/24 alias % ./test main:74: sysctlbyname(net.inet6.ip6.v6only) =3D 1 test:29: socket fd =3D 3 test:35: getsockopt(IPV6_V6ONLY) =3D 1 test:41: setsockopt(IPV6_V6ONLY) -> 0 test:58: connect(::ffff:10.0.0.2) -> 0 test:60: ---------- test:29: socket fd =3D 3 test:35: getsockopt(IPV6_V6ONLY) =3D 1 test:56: connect(::ffff:10.0.0.2): Invalid argument test:60: ---------- % sudo sysctl net.inet6.ip6.v6only=3D0 net.inet6.ip6.v6only: 1 -> 0 % ./test main:74: sysctlbyname(net.inet6.ip6.v6only) =3D 0 test:29: socket fd =3D 3 test:35: getsockopt(IPV6_V6ONLY) =3D 0 test:58: connect(::ffff:10.0.0.2) -> 0 test:60: ---------- test:29: socket fd =3D 3 test:35: getsockopt(IPV6_V6ONLY) =3D 0 test:41: setsockopt(IPV6_V6ONLY) -> 1 test:56: connect(::ffff:10.0.0.2): Invalid argument test:60: ---------- 1. As you can see, getsockopt() returns default value of socket option, that depends on sysctl variable. 2. Depending on V6ONLY sockopt your app can or can not connect. Probably your problem is python related. --=20 You are receiving this mail because: You are the assignee for the bug.=