When processing multi-path ip6 routers, place each router entry on its

own line.  We made this change in traceroute(8) some time ago.  This
is particularly useful when you are not resolving hostnames since ip6
addresses can be quite long, and lines wrap fairly easily in the
multi-path router case.

Discussed with:	bz
MFC after:	1 month
This commit is contained in:
Christian S.J. Peron 2007-10-24 00:50:13 +00:00
parent 5ff3816d82
commit 59876f938e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=172917

View File

@ -873,6 +873,8 @@ main(argc, argv)
if ((i = packet_ok(&rcvmhdr, cc, seq))) {
if (!IN6_ARE_ADDR_EQUAL(&Rcv.sin6_addr,
&lastaddr)) {
if (probe > 0)
fputs("\n ", stdout);
print(&rcvmhdr, cc);
lastaddr = Rcv.sin6_addr;
}