From owner-cvs-all Thu Apr 20 21: 2: 2 2000 Delivered-To: cvs-all@freebsd.org Received: from fgwmail7.fujitsu.co.jp (fgwmail7.fujitsu.co.jp [192.51.44.37]) by hub.freebsd.org (Postfix) with ESMTP id F1D0237B543; Thu, 20 Apr 2000 21:01:51 -0700 (PDT) (envelope-from shin@nd.net.fujitsu.co.jp) Received: from m1.gw.fujitsu.co.jp by fgwmail7.fujitsu.co.jp (8.9.3/3.7W-MX0002-Fujitsu Gateway) id NAA07713; Fri, 21 Apr 2000 13:02:08 +0900 (JST) (envelope-from shin@nd.net.fujitsu.co.jp) Received: from chisato.nd.net.fujitsu.co.jp by m1.gw.fujitsu.co.jp (8.9.3/3.7W-0003-Fujitsu Domain Master) id NAA17945; Fri, 21 Apr 2000 13:01:44 +0900 (JST) Received: from localhost (dhcp7173.nd.net.fujitsu.co.jp [10.18.7.173]) by chisato.nd.net.fujitsu.co.jp (8.8.5+2.7Wbeta5/3.3W8chisato-970826) with ESMTP id NAA10500; Fri, 21 Apr 2000 13:01:43 +0900 (JST) To: green@FreeBSD.org Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/lib/libc/net getaddrinfo.c name6.c In-Reply-To: References: <20000421093912D.shin@nd.net.fujitsu.co.jp> X-Mailer: Mew version 1.94 on Emacs 20.4 / Mule 4.0 (HANANOEN) X-Prom-Mew: Prom-Mew 1.93.4 (procmail reader for Mew) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20000421130248I.shin@nd.net.fujitsu.co.jp> Date: Fri, 21 Apr 2000 13:02:48 +0900 From: Yoshinobu Inoue X-Dispatcher: imput version 990905(IM130) Lines: 27 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > I have one question about the patches. > > [...] > > What "type" value is supposed in doinet6first case? > > I suppose that someone is calling > > gethostbyname_internal(name, AF_INET, 1) > > at somewhere, but the part of diff seems to be missing. > > Try using patch -R; I reversed the diff accidentally, since I am used > to typing .orig first, usually. It's all there, though; here's the > caller: > > + return (gethostbyname_internal(name, AF_INET, > + (_res.options & RES_USE_INET6) != 0)); OK, thanks, I understand the patches. However, as the gethostbyname() original problem, using gethostbyname() for either of IPv4 and IPv6 still seems to be difficult because it doesn't return sockaddr, but actual protocol dependent address structure. But there might be also some useful case which I don't know yet. Do you have some plan or idea about it? Thanks, Yoshinobu Inoue To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message