From owner-freebsd-stable@FreeBSD.ORG Thu Jan 10 14:28:51 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 62C10786 for ; Thu, 10 Jan 2013 14:28:51 +0000 (UTC) (envelope-from ume@mahoroba.org) Received: from mail.mahoroba.org (ent.mahoroba.org [IPv6:2001:2f0:104:8010::1]) by mx1.freebsd.org (Postfix) with ESMTP id 23CBCFC5 for ; Thu, 10 Jan 2013 14:28:51 +0000 (UTC) Received: from yuga.mahoroba.org (ume@yuga-m.mahoroba.org [IPv6:2001:2f0:104:8016:7258:12ff:fe22:d94b]) (user=ume mech=DIGEST-MD5 bits=0) by mail.mahoroba.org (8.14.6/8.14.6) with ESMTP/inet6 id r0AESeGe049865 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Thu, 10 Jan 2013 23:28:44 +0900 (JST) (envelope-from ume@mahoroba.org) Date: Thu, 10 Jan 2013 23:28:27 +0900 Message-ID: From: Hajimu UMEMOTO To: Ben Morrow Subject: Re: sendmail vs ipv6 broken after upgrade to 9.1 In-Reply-To: <20130110002257.GA84246@anubis.morrow.me.uk> References: <20130108151837.GF35868@acme.spoerlein.net> <50EC5922.5030600@boland.org> <20130108184051.GI35868@acme.spoerlein.net> <20130109.073354.730245417155474512.hrs@allbsd.org> <20130109162900.GA81522@anubis.morrow.me.uk> <20130110002257.GA84246@anubis.morrow.me.uk> User-Agent: xcite1.60> Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-2022-JP-2?B?R29qGyQoRCtXGyhC?=) APEL/10.8 Emacs/24.2 (i386-portbld-freebsd9.1) MULE/6.0 (HANACHIRUSATO) X-Operating-System: FreeBSD 9.1-STABLE X-PGP-Key: http://www.mahoroba.org/~ume/publickey.asc X-PGP-Fingerprint: 1F00 0B9E 2164 70FC 6DC5 BF5F 04E9 F086 BF90 71FE MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (mail.mahoroba.org [IPv6:2001:2f0:104:8010::1]); Thu, 10 Jan 2013 23:28:44 +0900 (JST) X-Virus-Scanned: clamav-milter 0.97.6 at asuka.mahoroba.org X-Virus-Status: Clean X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on asuka.mahoroba.org Cc: freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jan 2013 14:28:51 -0000 Hi, >>>>> On Thu, 10 Jan 2013 00:23:01 +0000 >>>>> Ben Morrow said: ben> ip6addrctl does more than just order v4 vs v6: it also sorts the v6 ben> addresses, in a way which can be quite important. IMHO both the v6 ben> addresses returned from getipnodebyname and the addresses returned from ben> gethostbyname2(AF_INET6) ought to be sorted according to ip6addrctl, ben> even if getipnodebyname special-cases the v4-mapped addresses to appear ben> last. Okay, it seems reasonable. I've just committed to obey ip6addrctl only for IPv6 address: http://svnweb.freebsd.org/changeset/base/245256 As for gethostbyname2, it doesn't obey ip6addrctl in the first place, and it is hard to obey ip6addrctl. So, I leave it as is. ben> Well, if important applications like Sendmail are still using it it's ben> probably important it works consistently with the rest of the system's ben> IPv6 support. I'd rather see it removed, or reimplemented as a wrapper ben> around getaddrinfo, than left in a broken state. I don't think our getipnodebyname is broken. We tried to implement getipnodebyname with getaddrinfo backend without success in years past. As the result, implementation of getipnodebyname has become like now. Sincerely, -- Hajimu UMEMOTO ume@mahoroba.org ume@{,jp.}FreeBSD.org http://www.mahoroba.org/~ume/