From: Nickolai Zeldovich Date: Mon, 23 Apr 2001 04:55:38 +0000 (+0000) Subject: STABLE10-rxdebug-changes-for-peers-and-to-show-rtt-values-20010422 X-Git-Tag: openafs-stable-1_0_4~87 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=ef75b1c18741851b5f8b843a91d94054be0644b7;p=packages%2Fo%2Fopenafs.git 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." --- 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);