From: guy Date: Wed, 5 Jan 2005 08:16:45 +0000 (+0000) Subject: For NFSv3 writes, show the byte count correctly - and show the length of X-Git-Tag: tcpdump-3.9.1~213 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/eaa1dce2ef440ef8757030ff0255a6f99fba3026?hp=3b42d632cfa32d0fc6923eb8d782e25317992dce For NFSv3 writes, show the byte count correctly - and show the length of the data being written, just as we do for NFSv2 writes. --- diff --git a/print-nfs.c b/print-nfs.c index 03e39fb9..46ee3546 100644 --- a/print-nfs.c +++ b/print-nfs.c @@ -21,7 +21,7 @@ #ifndef lint static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/tcpdump/print-nfs.c,v 1.105 2005-01-05 03:55:05 guy Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-nfs.c,v 1.106 2005-01-05 08:16:45 guy Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -517,9 +517,10 @@ nfsreq_print(register const u_char *bp, u_int length, if ((dp = parsereq(rp, length)) != NULL && (dp = parsefh(dp, v3)) != NULL) { if (v3) { - TCHECK(dp[3]); - printf(" %u bytes @ %" PRIu64, - EXTRACT_32BITS(&dp[3]), + TCHECK(dp[2]); + printf(" %u (%u) bytes @ %" PRIu64, + EXTRACT_32BITS(&dp[4]), + EXTRACT_32BITS(&dp[2]), EXTRACT_64BITS(&dp[0])); if (vflag) { dp += 3;