X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/85845ae8586cd9df253b0381d92055e9e31985b3..d0e12e23776cf87792d3f530731cc42c44a95514:/print-nfs.c diff --git a/print-nfs.c b/print-nfs.c index 03e39fb9..9d13e03d 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.107 2005-04-20 21:52:53 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; @@ -960,7 +961,7 @@ parserep(register const struct sunrpc_msg *rp, register u_int length) /* * now we can check the ar_stat field */ - astat = EXTRACT_32BITS(dp); + astat = (enum sunrpc_accept_stat) EXTRACT_32BITS(dp); switch (astat) { case SUNRPC_SUCCESS: