summaryrefslogtreecommitdiffstats
path: root/contrib/traceroute
diff options
context:
space:
mode:
authorandre <andre@FreeBSD.org>2005-08-26 18:08:24 +0000
committerandre <andre@FreeBSD.org>2005-08-26 18:08:24 +0000
commitdda5a2d10adb15e4fcec89f19077dca51bb9bfa1 (patch)
tree26fa03bfde09565e58c04b005192f51fc41f7cb9 /contrib/traceroute
parentd7f01fc7c7c35702d1eb017ec5693da75dbe9046 (diff)
downloadFreeBSD-src-dda5a2d10adb15e4fcec89f19077dca51bb9bfa1.zip
FreeBSD-src-dda5a2d10adb15e4fcec89f19077dca51bb9bfa1.tar.gz
Pretty print multipath routes.
Before (backslash in c syntax meaning): 6 p16-2-0-0.r21.sttlwa01.us.bb.verio.net (129.250.2.180) 71.027 ms \ p16-1-1-3.r20.sttlwa01.us.bb.verio.net (129.250.2.6) 66.730 ms 66.535 ms 7 xe-0-2-0.r20.sttlwa01.us.bb.verio.net (129.250.4.16) 71.092 ms \ xe-3-1.r00.sttlwa01.us.bb.verio.net (129.250.2.205) 66.598 ms \ xe-0-2-0.r20.sttlwa01.us.bb.verio.net (129.250.4.16) 71.024 ms After: 6 p16-2-0-0.r21.sttlwa01.us.bb.verio.net (129.250.2.180) 71.027 ms p16-1-1-3.r20.sttlwa01.us.bb.verio.net (129.250.2.6) 66.730 ms 66.535 ms 7 xe-0-2-0.r20.sttlwa01.us.bb.verio.net (129.250.4.16) 71.092 ms xe-3-1.r00.sttlwa01.us.bb.verio.net (129.250.2.205) 66.598 ms xe-0-2-0.r20.sttlwa01.us.bb.verio.net (129.250.4.16) 71.024 ms Submitted by: Richard A Steenbergen <ras at e-gerbil.net> MFC after: 3 days
Diffstat (limited to 'contrib/traceroute')
-rw-r--r--contrib/traceroute/traceroute.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/traceroute/traceroute.c b/contrib/traceroute/traceroute.c
index cfb3af4..3c40b6d 100644
--- a/contrib/traceroute/traceroute.c
+++ b/contrib/traceroute/traceroute.c
@@ -946,6 +946,7 @@ main(int argc, char **argv)
continue;
if (!gotlastaddr ||
from->sin_addr.s_addr != lastaddr) {
+ if (probe > 0) printf("\n ");
print(packet, cc, from);
lastaddr = from->sin_addr.s_addr;
++gotlastaddr;
OpenPOWER on IntegriCloud