From ef75b1c18741851b5f8b843a91d94054be0644b7 Mon Sep 17 00:00:00 2001 From: Nickolai Zeldovich Date: Mon, 23 Apr 2001 04:55:38 +0000 Subject: [PATCH] STABLE10-rxdebug-changes-for-peers-and-to-show-rtt-values-20010422 " rxdebug: allow the use of -onlyhost and -onlyport options with -peers, and also list the rtt, rttdev and retransmit timeout values." --- src/rx/rxdebug.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/rx/rxdebug.c b/src/rx/rxdebug.c index c9ec3fcdf..1cd7ffddd 100644 --- a/src/rx/rxdebug.c +++ b/src/rx/rxdebug.c @@ -463,6 +463,9 @@ struct cmd_syndesc *as; break; } + if ((onlyHost != -1) && (onlyHost != tpeer.host)) continue; + if ((onlyPort != -1) && (onlyPort != tpeer.port)) continue; + /* now display the peer */ hostAddr.s_addr = tpeer.host; printf("Peer at host %s, port %hu\n", @@ -475,6 +478,10 @@ struct cmd_syndesc *as; tpeer.bytesSent.high, tpeer.bytesSent.low); printf("\tbytes received high %d low %d\n", tpeer.bytesReceived.high, tpeer.bytesReceived.low); + printf("\trtt %d msec, rtt_dev %d msec\n", + tpeer.rtt >> 3, tpeer.rtt_dev >> 2); + printf("\ttimeout %d.%03d sec\n", + tpeer.timeout.sec, tpeer.timeout.usec / 1000); } } exit(0); -- 2.39.5