From owner-freebsd-current@FreeBSD.ORG Mon Mar 13 17:09:09 2006 Return-Path: X-Original-To: current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BC88A16A430; Mon, 13 Mar 2006 17:09:07 +0000 (UTC) (envelope-from ume@mahoroba.org) Received: from ameno.mahoroba.org (gw4.mahoroba.org [218.45.22.175]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7AFF443D5E; Mon, 13 Mar 2006 17:09:00 +0000 (GMT) (envelope-from ume@mahoroba.org) Received: from kasuga.mahoroba.org (IDENT:Pjc4oGZGxqH4hVGdTGl8Rt3lpxTfxpgaHxEsVkuRhOvfqqgXYNNzc3mljIWjjKy+@kasuga-iwi.mahoroba.org [IPv6:3ffe:501:185b:8010:212:f0ff:fe52:6ac]) (user=ume mech=CRAM-MD5 bits=0) by ameno.mahoroba.org (8.13.4/8.13.4) with ESMTP/inet6 id k2DH8o46037313 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 14 Mar 2006 02:08:54 +0900 (JST) (envelope-from ume@mahoroba.org) Date: Tue, 14 Mar 2006 02:08:50 +0900 Message-ID: From: Hajimu UMEMOTO To: arch@FreeBSD.org, current@FreeBSD.org User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/22.0.50 (i386-unknown-freebsd6.1) MULE/5.0 (SAKAKI) X-Operating-System: FreeBSD 6.1-PRERELEASE X-PGP-Key: http://www.imasy.or.jp/~ume/publickey.asc X-PGP-Fingerprint: 1F00 0B9E 2164 70FC 6DC5 BF5F 04E9 F086 BF90 71FE Organization: Internet Mutual Aid Society, YOKOHAMA MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.1.3 (ameno.mahoroba.org [IPv6:3ffe:501:185b:8010::1]); Tue, 14 Mar 2006 02:08:55 +0900 (JST) X-Virus-Scanned: by amavisd-new X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on ameno.mahoroba.org Cc: Hajimu UMEMOTO Subject: [CFR] Upgrading base version of our resolver in libc to BIND9 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Mar 2006 17:09:09 -0000 Hi, I wish to upgrade the base version of our resolver in libc to BIND9's one. Since, our resolver is already thread-safe, it doesn't bring in major benefit for us. However, it makes chasing updating of BIND9 bit easier. Further, new res_n*() functions are used in some applications these days. Since, our resolver has many local changes, we cannot simply use contrib/bind9/lib/bind. So, I'll import it into lib/libc, then merge our local changes into it. I'll separate isc, nameser and resolv directories from net, as NetBSD did. Since, res_sendsigned(3) and the friends use MD5 functions, it is hard to include them without having MD5 functions in libc. So, I'll not merge them into libc. Since, res_update(3) in BIND9 is not binary compatible with our res_update(3), I'll leave our res_update(3) as is, except some necessary modifications. The res_update(3) and the friends are not essential part of the resolver. They are not defined in resolv.h but defined in res_update.h separately in BIND9. Further, they are not called from our tree. So, I'll hide them from our resolv.h, but leave them only for binary backward compatibility (perhaps, no one calls them). Since, struct __res_state_ext is not exposed in BIND9, I'll hide it from our resolv.h. And, I'll remove global variable _res_ext. It breaks binary backward compatibility. But, since it is not used from outside of our libc, I think it is safe. The patches are: http://www.imasy.or.jp/~ume/FreeBSD/libc-bind9-7c-20060313.diff.gz (for HEAD as of today) http://www.imasy.or.jp/~ume/FreeBSD/libc-bind9-6s-20060313.diff.gz (for RELENG_6 as of today) You need to remove some obsolete files. Please refer the instruction written in the head of the patch. Sincerely, -- Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan ume@mahoroba.org ume@{,jp.}FreeBSD.org http://www.imasy.org/~ume/