Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Jun 2000 05:28:04 +0900 (JST)
From:      Hajimu UMEMOTO (=?iso-2022-jp?B?GyRCR19LXBsoQiAbJEJIJRsoQg==?=) <ume@mahoroba.org>
To:        ache@freebsd.org
Cc:        itojun@itojun.org
Subject:   Re: cvs commit: src/lib/libc/net res_init.c res_send.c
Message-ID:  <20000616.052804.41631317.ume@mahoroba.org>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
----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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000616.052804.41631317.ume>