From dev-return-18480-apmail-apr-dev-archive=apr.apache.org@apr.apache.org Wed Jun 06 20:37:09 2007 Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 24832 invoked from network); 6 Jun 2007 20:37:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Jun 2007 20:37:07 -0000 Received: (qmail 49768 invoked by uid 500); 6 Jun 2007 20:37:11 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 49509 invoked by uid 500); 6 Jun 2007 20:37:10 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Delivered-To: moderator for dev@apr.apache.org Received: (qmail 67911 invoked by uid 99); 6 Jun 2007 19:57:32 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of gringocroco@gmail.com designates 64.233.162.224 as permitted sender) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=mNgRceWXIj6u5z1l9ErfUh43KFH3GZ+3RwI+RqvWFOdZvLQpTBEepJ3LMHkrlLTowK5EEE9UeBzymuBXnOSMv2VQhkRAwGjasZPIfYbcovYtX+/Vy5gev6e8HQye3WNxz1NdOvmewxxT0eSo6Nx8vVZ5uAaRU7WPilV/cI0ZGpI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=ZSUPD8Fco+1bpD4LYdumiEQK7/cfK9bUHUYXdKt5MG7KHevAEblocCBUtmdRsUQSQwXd4hxXT5Nrmu+yTWzNy2/Y54B08JjLFXsNxFoYM3wjp5ba1Aru55rXK1sz2/ulOPEfw9dkilwG0skam61NAzZwrBr0GjPAQZPWQkSpG3g= Message-ID: <4d45da050706061257ueb6940ka4553a5f83bfd156@mail.gmail.com> Date: Wed, 6 Jun 2007 22:57:00 +0300 From: "Lucian Adrian Grijincu" Reply-To: lucian.grijincu@gmail.com Sender: gringocroco@gmail.com To: "Davi Arnaut" Subject: Re: [Vote] Release APR 1.2.9/0.9.14 and apr-iconv 1.2.0 Cc: dev@apr.apache.org In-Reply-To: <466706A3.6000002@haxent.com.br> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <46649707.6010808@rowe-clan.net> <4d45da050706051709xcb3c061gfe56c73223a24ffc@mail.gmail.com> <466650B1.4060203@rowe-clan.net> <4d45da050706060140v73014bdr9784afab278526bd@mail.gmail.com> <4d45da050706060439n45645cbexd5aaf6389df6ceb8@mail.gmail.com> <4d45da050706060806u645e636q4124f1d0c02cfbea@mail.gmail.com> <20070606185610.GA18044@redhat.com> <466706A3.6000002@haxent.com.br> X-Google-Sender-Auth: 19cf30e7d2e5a3de X-Virus-Checked: Checked by ClamAV on apache.org On 6/6/07, Davi Arnaut wrote: > Joe Orton wrote: > > On Wed, Jun 06, 2007 at 06:06:44PM +0300, Lucian Adrian Grijincu wrote: > >> $>./test ::1 ssh > >> ./test: getaddrinfo: Address family for hostname not supported > >> > >> $> telnet ::1 ssh > >> Trying ::1... > >> Connected to ::1. > > > > That makes little sense. I presume you do in fact have the "ipv6" > > module loaded (lsmod | grep ipv6)? What version of glibc is this? Does > > it make any difference if you set ai_flags to 0 in your test program? > > > u@h:~$ lsmod | grep ipv6 ipv6 268960 12 I guess 2.5 :) Ubuntu reports it as 2.5-0ubuntu14 u@h:~$ ls -al /lib/libc.so.6 lrwxrwxrwx 1 root root 11 2007-05-18 01:12 /lib/libc.so.6 -> libc-2.5.so I think that telnet could see that "::1" is the IPv6 loopback string and replace it with "127.0.0.1" if it wanted. Haven' looked at the code, just why this behaviour may be possible. > In case anyone wanna try.. test attached. This is the output: getaddrinfo AF_UNSPEC/SOCK_STREAM/AI_ADDRCONFIG failed so, yes: hints.ai_flags = AI_ADDRCONFIG; makes getaddrinfo fail. -- Lucian Adrian Grijincu