diff --git a/src/rx/rxdebug.c b/src/rx/rxdebug.c index b9e6e7de3b..a42f5c7083 100644 --- a/src/rx/rxdebug.c +++ b/src/rx/rxdebug.c @@ -21,6 +21,7 @@ RCSID #include #include #include +#include #endif #ifdef HAVE_NETINET_IN_H #include @@ -53,6 +54,8 @@ RCSID #define TIMEOUT 20 +extern struct hostent *hostutil_GetHostByName(); + static short PortNumber(aport) register char *aport; @@ -117,6 +120,7 @@ MainCommand(as, arock) struct rx_debugConn tconn; short noConns; short showPeers; + short showLong; int version_flag; char version[64]; afs_int32 length = 64; @@ -136,6 +140,7 @@ MainCommand(as, arock) version_flag = (as->parms[10].items ? 1 : 0); noConns = (as->parms[11].items ? 1 : 0); showPeers = (as->parms[12].items ? 1 : 0); + showLong = (as->parms[13].items ? 1 : 0); if (as->parms[0].items) hostName = as->parms[0].items->data; @@ -563,6 +568,16 @@ MainCommand(as, arock) tpeer.rtt_dev >> 2); printf("\ttimeout %u.%03u sec\n", tpeer.timeout.sec, tpeer.timeout.usec / 1000); + if (!showLong) + continue; + + printf("\tin/out packet skew: %d/%d\n", tpeer.inPacketSkew, + tpeer.outPacketSkew); + printf("\tcongestion window %d, MTU %d\n", tpeer.cwind, + tpeer.MTU); + printf("\tcurrent/if/max jumbogram size: %d/%d/%d\n", + tpeer.nDgramPackets, tpeer.ifDgramPackets, + tpeer.maxDgramPackets); } } exit(0); @@ -613,6 +628,7 @@ main(argc, argv) cmd_AddParm(ts, "-noconns", CMD_FLAG, CMD_OPTIONAL, "show no connections"); cmd_AddParm(ts, "-peers", CMD_FLAG, CMD_OPTIONAL, "show peers"); + cmd_AddParm(ts, "-long", CMD_FLAG, CMD_OPTIONAL, "detailed output"); cmd_Dispatch(argc, argv); exit(0);