Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 60744 invoked from network); 6 Jun 2007 23:09:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Jun 2007 23:09:28 -0000 Received: (qmail 46144 invoked by uid 500); 6 Jun 2007 23:09:30 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 46102 invoked by uid 500); 6 Jun 2007 23:09:30 -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 Received: (qmail 46091 invoked by uid 99); 6 Jun 2007 23:09:30 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jun 2007 16:09:30 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [85.91.5.16] (HELO infiltrator.stdlib.net) (85.91.5.16) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jun 2007 16:09:26 -0700 Received: from colmmacc by infiltrator.stdlib.net with local (Exim 4.60) (envelope-from ) id 1Hw4ci-0005Yn-Vz for dev@apr.apache.org; Thu, 07 Jun 2007 00:09:05 +0100 Date: Thu, 7 Jun 2007 00:09:04 +0100 From: Colm MacCarthaigh To: dev@apr.apache.org Subject: Re: getaddrinfo on Ubuntu Message-ID: <20070606230904.GC20426@infiltrator.gizzard.com> Reply-To: colm@stdlib.net 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> <4d45da050706061257ueb6940ka4553a5f83bfd156@mail.gmail.com> <20070606211840.GB18044@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20070606211840.GB18044@redhat.com> User-Agent: Mutt/1.5.11 X-Virus-Checked: Checked by ClamAV on apache.org On Wed, Jun 06, 2007 at 10:18:41PM +0100, Joe Orton wrote: > On Wed, Jun 06, 2007 at 10:57:00PM +0300, Lucian Adrian Grijincu wrote: > > This is the output: > > getaddrinfo AF_UNSPEC/SOCK_STREAM/AI_ADDRCONFIG failed > > so, yes: hints.ai_flags = AI_ADDRCONFIG; makes getaddrinfo fail. > > Just so I can understand the precise nuances of this, can you post the > output of: > > wget http://people.apache.org/~jorton/gai.c This won't help this time :/ The key thing is that AI_ADDRCONFIG makes getaddrinfo behave differently based on what addresses are configured on your systems interfaces, not based on any other parameters to getaddrinfo. -- Colm MacC�rthaigh Public Key: colm+pgp@stdlib.net