diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-06-30 09:32:44 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-06-30 09:32:44 +0000 |
commit | 7b39009cdecea9a88b897e43e6af8affed9d179c (patch) | |
tree | 7eaee867ef417eb53858349caf60f92d622c0461 /packet-afs-macros.h | |
parent | 93fd74d75e71a391e80851b3c64804944b6c9df2 (diff) |
From Ronnie Sahlberg: fix the AFS macros to parse the element count in
AFSCBFids and AFSCBs as a 32-bit integer rather than an 8-bit integer.
svn path=/trunk/; revision=3624
Diffstat (limited to 'packet-afs-macros.h')
-rw-r--r-- | packet-afs-macros.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/packet-afs-macros.h b/packet-afs-macros.h index d811136190..846057eec1 100644 --- a/packet-afs-macros.h +++ b/packet-afs-macros.h @@ -8,7 +8,7 @@ * Portions based on information/specs retrieved from the OpenAFS sources at * www.openafs.org, Copyright IBM. * - * $Id: packet-afs-macros.h,v 1.9 2001/05/27 08:09:49 guy Exp $ + * $Id: packet-afs-macros.h,v 1.10 2001/06/30 09:32:44 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -226,9 +226,9 @@ /* Output a AFSCBFids */ #define OUT_FS_AFSCBFids() \ { \ - unsigned int j,i; \ - j = tvb_get_guint8(tvb, offset); \ - offset += 1; \ + guint32 j,i; \ + j = tvb_get_ntohl(tvb, offset); \ + offset += 4; \ for (i=0; i<j; i++) { \ OUT_FS_AFSFid("Target"); \ } \ @@ -259,9 +259,9 @@ /* Output a AFSCBs */ #define OUT_FS_AFSCBs() \ { \ - unsigned int j,i; \ - j = tvb_get_guint8(tvb,offset); \ - offset += 1; \ + guint32 j,i; \ + j = tvb_get_ntohl(tvb,offset); \ + offset += 4; \ for (i=0; i<j; i++) { \ OUT_FS_AFSCallBack(); \ } \ |