]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Reorganize the list of addresses associated with an interface and group them
authorvsevolod <vsevolod@FreeBSD.org>
Mon, 2 Feb 2015 13:03:04 +0000 (13:03 +0000)
committervsevolod <vsevolod@FreeBSD.org>
Mon, 2 Feb 2015 13:03:04 +0000 (13:03 +0000)
commit6a39979cd265fe809358adb6070c064e4e020600
treee9a4c049f6175a16cc4b9a8bd255cb026d598729
parent47e0756aa20f117b6512e683161d62cb894bd3da
Reorganize the list of addresses associated with an interface and group them
based on the address family. This should help to recognize interfaces with
multiple AF (e.g. ipv4 and ipv6) with many aliases or additional addresses. The
order of addresses inside a single group is strictly preserved.

Improve the scope_id output for AF_INET6 families, as the
current approach uses hexadecimal string that is basically the ID of an
interface, whilst this information is already depicted by getnameinfo(3) call.
Therefore, now ifconfig just prints the scope of address as it is defined in
2.4 of RFC 2373.

PR: 197270
Approved by: bapt
MFC after: 2 weeks
sbin/ifconfig/af_inet6.c
sbin/ifconfig/ifconfig.c