From 3cda3277b38e0420dd475348ac72cfc8fff74366 Mon Sep 17 00:00:00 2001 From: csjp Date: Wed, 24 Oct 2007 00:50:13 +0000 Subject: 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 --- usr.sbin/traceroute6/traceroute6.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'usr.sbin/traceroute6/traceroute6.c') diff --git a/usr.sbin/traceroute6/traceroute6.c b/usr.sbin/traceroute6/traceroute6.c index edc8dc7..eb669f5 100644 --- a/usr.sbin/traceroute6/traceroute6.c +++ b/usr.sbin/traceroute6/traceroute6.c @@ -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; } -- cgit v1.1