From owner-freebsd-questions Fri Jul 20 13:19:36 2001 Delivered-To: freebsd-questions@freebsd.org Received: from voyager.galileo.edu (samsara.galileo.edu [216.230.140.134]) by hub.freebsd.org (Postfix) with SMTP id CB5AD37B405 for ; Fri, 20 Jul 2001 13:19:31 -0700 (PDT) (envelope-from obonilla@galileo.edu) Received: (qmail 9146 invoked by uid 1001); 20 Jul 2001 20:19:57 -0000 Date: Fri, 20 Jul 2001 14:19:57 -0600 From: Oscar Bonilla To: freebsd-questions@freebsd.org Subject: PF_LOCAL in getaddrinfo Message-ID: <20010720141957.A9133@galileo.edu> Mail-Followup-To: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-Mailer: Mutt 1.2i (2000-05-09) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I was trying to compile OpenLDAP 2 with support for ldapi:/// which uses the PF_LOCAL family. However, I've discovered that the PF_LOCAL entry in getaddrinfo is ifdef'd out. This is the relevant code for /usr/src/lib/libc/net/getaddrinfo.c #if 0 { PF_LOCAL, 0, ANY, ANY, NULL, 0x01 }, #endif This causes a getaddrinfo call made by openldap with hints.ai_family set to AF_LOCAL to fail with an "ai_family not supported" error message. Is this an error in the way OpenLDAP uses getaddrinfo or is there a reason for not supporting AF_LOCAL in calls to getaddrinfo? Thanks, -Oscar -- pgp public key: finger obonilla@galileo.edu pgp fingerprint: 9735 2F52 D499 17E2 D03B 5960 241D 09EA 349F 923E To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message