From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20801 invoked by alias); 3 Aug 2012 16:12:22 -0000 Received: (qmail 20788 invoked by uid 22791); 3 Aug 2012 16:12:20 -0000 X-SWARE-Spam-Status: No, hits=-3.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 03 Aug 2012 16:12:07 +0000 From: "psimerda at redhat dot com" To: glibc-bugs@sources.redhat.com Subject: [Bug network/14415] AI_V4MAPPED is useless with AI_UNSPEC but they're used together as defaults when hints=NULL Date: Fri, 03 Aug 2012 16:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: network X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: psimerda at redhat dot com X-Bugzilla-Status: WAITING X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2012-08/txt/msg00011.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=3D14415 --- Comment #3 from Pavel =C5=A0imerda 2012-08= -03 16:12:06 UTC --- > My understanding is that because the default uses AF_UNSPEC that the call= er > accepts *any* address family thus AI_V4MAPPED is not useless because AF_U= NSPEC > can be treated as anything including AF_INET6. This is not the case. My tests say that AF_UNSPEC with AI_V4MAPPED returns regular IPv4 addresses, regular IPv6 addresses but *no* IPv4-mapped IPv6 addresses. So it actually behaves exactly like AF_UNSPEC without AI_V4MAPPE= D. > Does that clarify why we would set AI_V4MAPPED in the default? Unfortunately not. --=20 Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=3Demail ------- You are receiving this mail because: ------- You are on the CC list for the bug.