From owner-svn-src-stable-10@FreeBSD.ORG Thu Jun 26 12:18:00 2014 Return-Path: Delivered-To: svn-src-stable-10@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AD390F9D; Thu, 26 Jun 2014 12:18:00 +0000 (UTC) Received: from mail.mahoroba.org (ent.mahoroba.org [IPv6:2001:2f0:104:8010::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "asuka.mahoroba.org", Issuer "ca.mahoroba.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id B971E2290; Thu, 26 Jun 2014 12:17:59 +0000 (UTC) Received: from yuga.mahoroba.org (ume@yuga.mahoroba.org [IPv6:2001:2f0:104:8010:7258:12ff:fe22:d94b]) (user=ume mech=DIGEST-MD5 bits=0) by mail.mahoroba.org (8.14.9/8.14.9) with ESMTP/inet6 id s5QCHp1v018106 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Thu, 26 Jun 2014 21:17:52 +0900 (JST) (envelope-from ume@mahoroba.org) Date: Thu, 26 Jun 2014 21:17:59 +0900 Message-ID: From: Hajimu UMEMOTO To: "Alexander V. Chernikov" Subject: Re: svn commit: r267874 - stable/10/lib/libc/net In-Reply-To: <53AB0E0C.3050802@FreeBSD.org> References: <201406251710.s5PHAQ31026354@svn.freebsd.org> <53AB0E0C.3050802@FreeBSD.org> User-Agent: xcite1.60> Wanderlust/2.15.9 (Almost Unreal) Emacs/24.3 Mule/6.0 (HANACHIRUSATO) X-Operating-System: FreeBSD 9.3-PRERELEASE 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.4.3 (mail.mahoroba.org [IPv6:2001:2f0:104:8010::1]); Thu, 26 Jun 2014 21:17:52 +0900 (JST) X-Virus-Scanned: clamav-milter 0.98.4 at asuka.mahoroba.org X-Virus-Status: Clean X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,T_RP_MATCHES_RCVD autolearn=ham autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on asuka.mahoroba.org Cc: svn-src-stable@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, svn-src-stable-10@freebsd.org X-BeenThere: svn-src-stable-10@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for only the 10-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jun 2014 12:18:00 -0000 Hi, >>>>> On Wed, 25 Jun 2014 21:59:40 +0400 >>>>> "Alexander V. Chernikov" said: melifaro> Well, two socket() calls has some predictable cost, but getaddrinfo() melifaro> can be quite slow for system with many interfaces. It would be better to melifaro> introduce some kernel sysctls to report IPv4/IPv6 status... Yes, it should be better having some sysctls as you say. melifaro> It looks like style(9) needs to be altered, too.. melifaro> This is not correct. RFC 3493 talks about "loopback address" (and melifaro> specifies explicit IN6_IS_ADDR_LOOPBACK macro to test in IPv6 case) and melifaro> not about loopback interface. Yes, but the spec is still unclear about handling of link-local address especially on loopback interface. We have to exclude fe80::1%lo0 to make addrconfig() functional. I've committed the change: r267912. Sincerely, -- Hajimu UMEMOTO ume@mahoroba.org ume@{,jp.}FreeBSD.org http://www.mahoroba.org/~ume/