From owner-freebsd-doc@FreeBSD.ORG Tue Jul 15 15:44:18 2014 Return-Path: Delivered-To: freebsd-doc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E29FC8A2 for ; Tue, 15 Jul 2014 15:44:18 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C9E3923EF for ; Tue, 15 Jul 2014 15:44:18 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.8/8.14.8) with ESMTP id s6FFiImk019900 for ; Tue, 15 Jul 2014 15:44:18 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-doc@FreeBSD.org Subject: [Bug 189268] 3 getaddrinfo(3) - hostanme="localhost", but it returns IN_ADDR_ANY (0.0.0.0) Date: Tue, 15 Jul 2014 15:44:18 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Documentation X-Bugzilla-Component: Documentation X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: bjk@FreeBSD.org X-Bugzilla-Status: In Discussion X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: freebsd-doc@FreeBSD.org X-Bugzilla-Target-Milestone: --- 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 MIME-Version: 1.0 X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jul 2014 15:44:19 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D189268 --- Comment #10 from Benjamin Kaduk --- (In reply to dreamcat4 from comment #9) > For PF_INET6 hints, the returned structure says it is of type ai_family > '0x1C' (which is '28' in decimal base 10). >=20 > If we look in the header file '/usr/include/sys/socket.h', we see that > returned type is: AF_ISDN >=20 > :/ >=20 > Maybe that aught to be a returned value of type '30' (0x1E) for PF_INET6. > Since that was the type we actually requested? >=20 >=20 > #define pseudo_AF_PIP 25 /* Help Identify PIP packets */ > #ifdef __APPLE__ > /*define pseudo_AF_BLUE 26 Identify packets for Blue Box - Not used */ > #define AF_NDRV 27 /* Network Driver 'raw' access */ > #endif > #define AF_ISDN 28 /* Integrated Services Digital Network*/ > #define AF_E164 AF_ISDN /* CCITT E.164 recommendation */ > #define pseudo_AF_KEY 29 /* Internal key-management function */ > #endif /* (!_POSIX_C_SOURCE || _DARWIN_C_SOURCE) */ > #define AF_INET6 30 /* IPv6 */ > #if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE) > #define AF_NATM 31 /* native ATM access */ > #ifdef __APPLE__ > #define AF_SYSTEM 32 /* Kernel event messages */ I think you are looking at the /usr/include/sys/socket.h from an OS X machi= ne, not a FreeBSD machine. On my FreeBSD machine, AF_INET6 is decimal 28, matc= hing the 0x1c you see. --=20 You are receiving this mail because: You are the assignee for the bug.=