aboutsummaryrefslogtreecommitdiffstats
path: root/packet-afs-macros.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-06-30 09:32:44 +0000
committerGuy Harris <guy@alum.mit.edu>2001-06-30 09:32:44 +0000
commit7b39009cdecea9a88b897e43e6af8affed9d179c (patch)
tree7eaee867ef417eb53858349caf60f92d622c0461 /packet-afs-macros.h
parent93fd74d75e71a391e80851b3c64804944b6c9df2 (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.h14
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(); \
} \