From owner-freebsd-net Sat Oct 28 14:39:21 2000 Delivered-To: freebsd-net@freebsd.org Received: from gw.nectar.com (gw.nectar.com [208.42.49.153]) by hub.freebsd.org (Postfix) with ESMTP id 51D2537B479 for ; Sat, 28 Oct 2000 14:39:18 -0700 (PDT) Received: from hamlet.nectar.com (hamlet.nectar.com [10.0.1.102]) by gw.nectar.com (Postfix) with ESMTP id 096D7193F1 for ; Sat, 28 Oct 2000 16:39:09 -0500 (CDT) Received: (from nectar@localhost) by hamlet.nectar.com (8.11.1/8.9.3) id e9SLdAF77433 for freebsd-net@freebsd.org; Sat, 28 Oct 2000 16:39:10 -0500 (CDT) (envelope-from nectar@spawn.nectar.com) Date: Sat, 28 Oct 2000 16:39:10 -0500 From: "Jacques A. Vidrine" To: freebsd-net@freebsd.org Subject: getaddrinfo and the UNIX domain Message-ID: <20001028163909.A77420@hamlet.nectar.com> Mail-Followup-To: "Jacques A. Vidrine" , freebsd-net@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-Url: http://www.nectar.com/ Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, Calling getaddrinfo like the following: memset(&hints, 0, sizeof(hints)); hints.ai_flags = AI_PASSIVE; hints.ai_family = PF_UNSPEC; hints.ai_socktype = SOCK_STREAM; getaddrinfo(NULL, "/tmp/some-socket", &hints, &res); will result in `servname not supported for ai_socktype'. How should this work? OpenLDAP 2.x uses getaddrinfo in this fashion. I note that calling getaddrinfo with ai_family = PF_UNIX also fails. Thanks, -- Jacques Vidrine / n@nectar.com / jvidrine@verio.net / nectar@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message