From owner-svn-src-all@FreeBSD.ORG Thu Feb 12 22:36:27 2015 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0B7D3A78; Thu, 12 Feb 2015 22:36:27 +0000 (UTC) Received: from cell.glebius.int.ru (glebius.int.ru [81.19.69.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "cell.glebius.int.ru", Issuer "cell.glebius.int.ru" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 86BA1814; Thu, 12 Feb 2015 22:36:25 +0000 (UTC) Received: from cell.glebius.int.ru (localhost [127.0.0.1]) by cell.glebius.int.ru (8.14.9/8.14.9) with ESMTP id t1CMaNPD025278 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 13 Feb 2015 01:36:23 +0300 (MSK) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.glebius.int.ru (8.14.9/8.14.9/Submit) id t1CMaNZO025277; Fri, 13 Feb 2015 01:36:23 +0300 (MSK) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.glebius.int.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Fri, 13 Feb 2015 01:36:23 +0300 From: Gleb Smirnoff To: Vsevolod Stakhov Subject: Re: svn commit: r278080 - head/sbin/ifconfig Message-ID: <20150212223623.GC15484@FreeBSD.org> References: <201502021303.t12D35Nf059543@svn.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201502021303.t12D35Nf059543@svn.freebsd.org> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Feb 2015 22:36:27 -0000 On Mon, Feb 02, 2015 at 01:03:05PM +0000, Vsevolod Stakhov wrote: V> Author: vsevolod (ports committer) V> Date: Mon Feb 2 13:03:04 2015 V> New Revision: 278080 V> URL: https://svnweb.freebsd.org/changeset/base/278080 V> V> Log: V> Reorganize the list of addresses associated with an interface and group them V> based on the address family. This should help to recognize interfaces with V> multiple AF (e.g. ipv4 and ipv6) with many aliases or additional addresses. The V> order of addresses inside a single group is strictly preserved. V> V> Improve the scope_id output for AF_INET6 families, as the V> current approach uses hexadecimal string that is basically the ID of an V> interface, whilst this information is already depicted by getnameinfo(3) call. V> Therefore, now ifconfig just prints the scope of address as it is defined in V> 2.4 of RFC 2373. V> V> PR: 197270 V> Approved by: bapt V> MFC after: 2 weeks What about getifaddrs(3) sorting addresses? -- Totus tuus, Glebius.