From 9602e1a3fde7b04d398245b10adcf4f316f1c43b Mon Sep 17 00:00:00 2001 From: Nickolai Zeldovich Date: Tue, 27 Mar 2001 01:53:27 +0000 Subject: [PATCH] rxdebug-changes-for-peers-and-to-show-rtt-values-20010326 " 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 c9ec3fc..1cd7ffd 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); -- 1.9.4