From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5213 Path: news.gmane.org!not-for-mail From: orc Newsgroups: gmane.linux.lib.musl.general Subject: Re: ipv6 scope id support Date: Tue, 10 Jun 2014 07:49:48 +0800 Message-ID: <03d43876-72c7-4b4f-93e1-944f0a04bc1d@email.android.com> References: <20140609185337.GJ179@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1402357813 10794 80.91.229.3 (9 Jun 2014 23:50:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 9 Jun 2014 23:50:13 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-5218-gllmg-musl=m.gmane.org@lists.openwall.com Tue Jun 10 01:50:06 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1Wu9KH-0007d2-Gm for gllmg-musl@plane.gmane.org; Tue, 10 Jun 2014 01:50:05 +0200 Original-Received: (qmail 14280 invoked by uid 550); 9 Jun 2014 23:50:04 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 14272 invoked from network); 9 Jun 2014 23:50:03 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on webserver X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=NO_RECEIVED,NO_RELAYS autolearn=ham autolearn_force=no version=3.4.0 User-Agent: K-9 Mail for Android In-Reply-To: <20140609185337.GJ179@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:5213 Archived-At: 10 июня 2014 г. 2:53:37 KRAT, Rich Felker пишет: >On Mon, Jun 09, 2014 at 10:35:39PM +0800, orc wrote: >> Hi list! >> Great to see major changes towards dns code cleanup and rewrite! Here >another one: >> As I understand, this is a feature when you can specify destination >link-local address and from which interface packets are sent. The >address and interface are both specified, being separated by '%' (for >example, ff02::1%eth0) >> I've grepped into glibc sources and found that this step is performed >somewhere in dns resolver. >> >> Does musl support this? My current attempt to use it failed. > >Can you explain what you did that failed? getaddrinfo should always >accept %nnnn (numeric scope_id) following a numeric address string, >and accepts %ifname if the address has link-local scope (as determined >by IN6_IS_ADDR_LINKLOCAL || IN6_IS_ADDR_MC_LINKLOCAL). Likewise, >getnameinfo will reverse the scope_id to an interface name only fork >link-local addresses, and the reversal can be inhibited with the >NI_NUMERICSCOPE flag. > >For non-numeric addresses, scope_id is not parsed at all, but entries >in /etc/hosts can have a scope_id attached to them. > >If any of this logic seems incorrect to you, please explain what you >think should be changed. Oh, I am sorry, false alert. I was using 1.0.0 at that time. It lacks this. And the dns bug will motivate me to upgrade :-) > >Rich