From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 39245385DC3E; Tue, 7 Apr 2020 19:53:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 39245385DC3E From: "gavin at matician dot com" To: glibc-bugs@sourceware.org Subject: [Bug network/14413] nsswitch doesn't implement getaddrinfo(), plugins cannot provide full getaddrinfo features Date: Tue, 07 Apr 2020 19:53:29 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: network X-Bugzilla-Version: 2.17 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gavin at matician dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Apr 2020 19:53:29 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D14413 Gavin changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gavin at matician dot com --- Comment #8 from Gavin --- Confirming that this issue still exists as of 2.31. ssh -v host.local works: OpenSSH_8.2p1, OpenSSL 1.1.1f 31 Mar 2020 debug1: Reading configuration data /home/gavin/.ssh/config debug1: Reading configuration data /etc/ssh/ssh_config debug1: Connecting to host.local [fe80::88aa:55ff:fec5:dd9%wlan0] port 22. debug1: Connection established. ssh -v -6 host.local does not work: OpenSSH_8.2p1, OpenSSL 1.1.1f 31 Mar 2020 debug1: Reading configuration data /home/gavin/.ssh/config debug1: Reading configuration data /etc/ssh/ssh_config debug1: Connecting to host.local [fe80::88aa:55ff:fec5:dd9] port 22. debug1: connect to address fe80::88aa:55ff:fec5:dd9 port 22: Invalid argume= nt The first case calls get getaddrinfo() with hints->ai_family=3DAF_UNSPEC, t= he second case calls it with hints->ai_family=3DAF_INET6. As a workaround until gethostbyname5 comes along, would it make sense to mo= dify gethostbyname3 such that it stuffs a whole sockaddr_in6 into h_addr, sets h_length to sizeof(sockaddr_in6), and glibc can take care of it accordingly depending on the value of h_length? --=20 You are receiving this mail because: You are on the CC list for the bug.=