From: Nickolai Zeldovich Date: Tue, 27 Mar 2001 01:53:27 +0000 (+0000) Subject: rxdebug-changes-for-peers-and-to-show-rtt-values-20010326 X-Git-Tag: BP-openafs-devel-autoconf~18 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=9602e1a3fde7b04d398245b10adcf4f316f1c43b;p=packages%2Fo%2Fopenafs.git 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." --- 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);