]> The Tcpdump Group git mirrors - tcpdump/commitdiff
For NFSv3 writes, show the byte count correctly - and show the length of
authorguy <guy>
Wed, 5 Jan 2005 08:16:45 +0000 (08:16 +0000)
committerguy <guy>
Wed, 5 Jan 2005 08:16:45 +0000 (08:16 +0000)
the data being written, just as we do for NFSv2 writes.

print-nfs.c

index 03e39fb921c0b8f88f6b531deb3cf211a28cc83b..46ee354615569719855d202194e2b90d10fd6a00 100644 (file)
@@ -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;