Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/traceroute Pretty print multipath routes. From Free...
details: https://anonhg.NetBSD.org/src/rev/930db33c61a1
branches: trunk
changeset: 781037:930db33c61a1
user: zafer <zafer%NetBSD.org@localhost>
date: Thu Aug 16 00:40:28 2012 +0000
description:
Pretty print multipath routes. From FreeBSD.
ok christos@
diffstat:
usr.sbin/traceroute/traceroute.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 4d84fdcd1f43 -r 930db33c61a1 usr.sbin/traceroute/traceroute.c
--- a/usr.sbin/traceroute/traceroute.c Wed Aug 15 22:14:47 2012 +0000
+++ b/usr.sbin/traceroute/traceroute.c Thu Aug 16 00:40:28 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: traceroute.c,v 1.80 2012/01/04 16:09:44 drochner Exp $ */
+/* $NetBSD: traceroute.c,v 1.81 2012/08/16 00:40:28 zafer Exp $ */
/*
* Copyright (c) 1988, 1989, 1991, 1994, 1995, 1996, 1997, 1998, 1999, 2000
@@ -30,7 +30,7 @@
__COPYRIGHT("@(#) Copyright (c) 1988, 1989, 1991, 1994, 1995, 1996, 1997,\
1998, 1999, 2000\
The Regents of the University of California. All rights reserved.");
-__RCSID("$NetBSD: traceroute.c,v 1.80 2012/01/04 16:09:44 drochner Exp $");
+__RCSID("$NetBSD: traceroute.c,v 1.81 2012/08/16 00:40:28 zafer Exp $");
#endif
#endif
@@ -984,6 +984,7 @@
continue;
if (!gotlastaddr ||
from->sin_addr.s_addr != lastaddr) {
+ if (gotlastaddr) printf("\n ");
print(packet, cc, from);
lastaddr = from->sin_addr.s_addr;
++gotlastaddr;
Home |
Main Index |
Thread Index |
Old Index