From owner-cvs-all Thu Jun 15 13:29:12 2000 Delivered-To: cvs-all@freebsd.org Received: from light.imasy.or.jp (light.imasy.or.jp [202.227.24.4]) by hub.freebsd.org (Postfix) with ESMTP id AB7B737B763; Thu, 15 Jun 2000 13:29:06 -0700 (PDT) (envelope-from ume@mahoroba.org) Received: (from uucp@localhost) by light.imasy.or.jp (8.9.3+3.2W/3.7W-light/smtpfeed 1.02) with UUCP id FAA25052; Fri, 16 Jun 2000 05:29:00 +0900 (JST) (envelope-from ume@mahoroba.org) Received: from localhost (peace.mahoroba.org [202.227.26.34]) by mail.mahoroba.org (8.10.2/3.7W-chaos) with ESMTP id e5FKS4S08124; Fri, 16 Jun 2000 05:28:04 +0900 (JST) (envelope-from ume@mahoroba.org) Date: Fri, 16 Jun 2000 05:28:04 +0900 (JST) Message-Id: <20000616.052804.41631317.ume@mahoroba.org> To: ache@freebsd.org Cc: alex@big.endian.de, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Cc: itojun@itojun.org Subject: Re: cvs commit: src/lib/libc/net res_init.c res_send.c From: Hajimu UMEMOTO (=?iso-2022-jp?B?GyRCR19LXBsoQiAbJEJIJRsoQg==?=) In-Reply-To: <20000616.044143.71082986.ume@mahoroba.org> References: <20000615111427.A20272@freebsd.org> <20000616.034310.74757991.ume@mahoroba.org> <20000616.044143.71082986.ume@mahoroba.org> X-Mailer: xcite1.20> Mew version 1.95b38 on Emacs 20.6 / Mule 4.0 =?iso-2022-jp?B?KBskQjJWMWMbKEIp?= X-PGP-Public-Key: http://www.imasy.org/~ume/publickey.asc X-PGP-Fingerprint: 6B 0C 53 FC 5D D0 37 91 05 D0 B3 EF 36 9B 6A BC X-URL: http://www.imasy.org/~ume/ X-OS: FreeBSD 5.0-CURRENT Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Fri_Jun_16_05:28:04_2000_080)--" Content-Transfer-Encoding: 7bit Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG ----Next_Part(Fri_Jun_16_05:28:04_2000_080)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit ume> Now, default is AF_INET. ume> I attach the diff. Please review it. ume> Sorry, I need further work. Now, it is working without /etc/resolv.conf in my box. The fix is attached. This patch is for res_init.c with my previous patch applied. ----Next_Part(Fri_Jun_16_05:28:04_2000_080)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Description: res_init.c.diff Content-Disposition: attachment; filename="res_init.c.diff" --- res_init.c Thu Jun 15 20:15:45 2000 +++ /usr/home/ume/tmp/res_init.c Fri Jun 16 05:09:41 2000 @@ -194,6 +194,7 @@ #endif _res.nsaddr.sin_family = AF_INET; _res.nsaddr.sin_port = htons(NAMESERVER_PORT); + _res.nsaddr.sin_len = sizeof(struct sockaddr_in); if (sizeof(_res_ext.nsaddr) >= _res.nsaddr.sin_len) memcpy(&_res_ext.nsaddr, &_res.nsaddr, _res.nsaddr.sin_len); _res.nscount = 1; ----Next_Part(Fri_Jun_16_05:28:04_2000_080)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Description: My Signature Content-Disposition: attachment; filename=".signature-world" Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan ume@mahoroba.org ume@bisd.hitachi.co.jp ume@FreeBSD.org http://www.imasy.org/~ume/ ----Next_Part(Fri_Jun_16_05:28:04_2000_080)---- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message