From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10084 Path: news.gmane.org!not-for-mail From: John Mudd Newsgroups: gmane.linux.lib.musl.general Subject: Re: getaddrinfo, ip address sort order? Date: Fri, 3 Jun 2016 11:25:18 -0400 Message-ID: References: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11451906aedf390534615532 X-Trace: ger.gmane.org 1464967573 5971 80.91.229.3 (3 Jun 2016 15:26:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Jun 2016 15:26:13 +0000 (UTC) Cc: musl To: John Mudd Original-X-From: musl-return-10097-gllmg-musl=m.gmane.org@lists.openwall.com Fri Jun 03 17:26:13 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1b8qz5-0001s4-0H for gllmg-musl@m.gmane.org; Fri, 03 Jun 2016 17:26:03 +0200 Original-Received: (qmail 19653 invoked by uid 550); 3 Jun 2016 15:26:00 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 19552 invoked from network); 3 Jun 2016 15:25:49 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc; bh=a/PyDV3o4XkIpyae3K9fz7oYOCUTFv2DyShr5Hve40g=; b=s0SXvWOEIj7Rzt01UMPDomOvT5wmwLvbnnCh6sZDp4HXLfRt+mmMBGd67Nqut8+Iyp QlAn6x/rPUrvEzz4OXbfDtz98xt9I6Hg1UfSCN0e04BqWaABHIplqqX6jYksJ2PXM0BB GqQa1EikqJuG+KVLPgINZWS5qQwmliQx3sRdtE8WkeR36D6fg1TNm9KLD1kSvdHeT64w mrtmQ7nNeM+y+x249Im3u7UpOSzvUGSdllwFETO2XYVb8abOIx37nhWzI6d6gxJMRg7y GMFm1zkbbnU4bUcoM6z2UT9licVSwVraE9E6tIT3o1Asn8Te/2/82nLXMgrlL+wrmfnE VBeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to:cc; bh=a/PyDV3o4XkIpyae3K9fz7oYOCUTFv2DyShr5Hve40g=; b=CHdQ+uACT3c7Y7Gv85V0EcGSVgsWzeZC9JEQU2jEkPWliNdHg+sPJjJK4IJYKle07K zdKUBDvvU2vqayW0EJMgAzJTWznca95C8MTPBea5pw6uXfRwcgOkFIyxeK9pJn1HV7mH P/ukPtzRkjjACIWyeEh4Os1MxTyMNRRweMUvvsfsnvUkW3Zv4yX7d4e08OgA/BnQxBuE G0iNBzaI/ruM58cbE/jT9ExbA6lLKPhxCCffaQ3YK4hQ3fbrRRymJ3OBNiOck/jGudFK C/9EXxNNnijxncgy6zBSa2Ep8mhmDcvRFsKkgh+id0D4j2NKHG2z4Tfw12DWGbJmt5cs FqEg== X-Gm-Message-State: ALyK8tKKg5nx3Ku07+dLn6VG3IuPCWorB6wmGPqUoL5L/0+gkYk+POvstmy1usSSw0QWPWTstYShyhbdddt2mw== X-Received: by 10.55.203.202 with SMTP id u71mr3819840qkl.12.1464967537546; Fri, 03 Jun 2016 08:25:37 -0700 (PDT) In-Reply-To: Xref: news.gmane.org gmane.linux.lib.musl.general:10084 Archived-At: --001a11451906aedf390534615532 Content-Type: text/plain; charset=UTF-8 Sorry, I see it listed now in release notes. https://www.musl-libc.org/oldversions.html Jun 25, 2014 This release adds many features including result sorting in the DNS/hosts resolver modeled on RFC 3484, default timezone from /etc/localtime, gnu2 TLS dialect (TLSDESC) on i386 and x86_64, sendmmsg/recvmmsg functions (Linux extensions), fmtmsg function (XSI), and optional arguments in getopt (GNU extension). Handling of poorly-behaved nameservers (rcode=2 ServFail result) is also improved, and setting of the %gs thread register is now supported on pre-2.6 i386 kernels. Several bugs are fixed including a potentially-important issue in memmem. On Fri, Jun 3, 2016 at 11:21 AM, John Mudd wrote: > I read that getaddrinfo() returns addresses sorted based on RFC 3484. I'm > using the attached program to test it and I'm not sure if they are sorted. > > I looked at the musl getaddrinfo.c here: > https://github.com/idunham/musl/blob/master/src/network/getaddrinfo.c > > I don't see an obvious sort in the code. Is it there? > > John > > --001a11451906aedf390534615532 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Sorry, I see it listed now in release notes.=C2=A0https://www.musl-libc.org/o= ldversions.html

Jun 25, 2014
This rel= ease adds many features including result sorting in the DNS/hosts resolver = modeled on RFC 3484, default timezone from /etc/localtime, gnu2 TLS dialect= (TLSDESC) on i386 and x86_64, sendmmsg/recvmmsg functions (Linux extension= s), fmtmsg function (XSI), and optional arguments in getopt (GNU extension)= . Handling of poorly-behaved nameservers (rcode=3D2 ServFail result) is als= o improved, and setting of the %gs thread register is now supported on pre-= 2.6 i386 kernels. Several bugs are fixed including a potentially-important = issue in memmem.

On Fri, Jun 3, 2016 at 11:21 AM, John Mudd <johnbmudd@g= mail.com> wrote:
I read that=C2=A0getaddrinfo() returns addresses sorted based on= =C2=A0RFC 3484. I'm using the attached program to test it and I'm n= ot sure if they are sorted.=C2=A0

I looked at the musl= =C2=A0getaddrinfo.c here:=C2=A0https://github.com/= idunham/musl/blob/master/src/network/getaddrinfo.c

=
I don't see an obvious sort in the code. Is it there?

John
=


--001a11451906aedf390534615532--