aboutsummaryrefslogtreecommitdiffstats
path: root/packet-afs-macros.h
diff options
context:
space:
mode:
authorNathan Neulinger <nneul@umr.edu>2002-02-03 18:12:04 +0000
committerNathan Neulinger <nneul@umr.edu>2002-02-03 18:12:04 +0000
commitdccf95c021436aa194bd3186fd90d537bd86b1b5 (patch)
tree61be11eb808429fd74871838f2e9b9bd1a77f77b /packet-afs-macros.h
parentce288efd39fb0f8b4351c2180775f8dd8629fb7c (diff)
dissect flags, more vldb fixes
svn path=/trunk/; revision=4690
Diffstat (limited to 'packet-afs-macros.h')
-rw-r--r--packet-afs-macros.h27
1 files changed, 25 insertions, 2 deletions
diff --git a/packet-afs-macros.h b/packet-afs-macros.h
index 0822187f00..65310a1f9e 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.14 2002/02/03 16:54:49 nneul Exp $
+ * $Id: packet-afs-macros.h,v 1.15 2002/02/03 18:12:04 nneul Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -148,6 +148,29 @@
tree = save; \
}
+/* Output vldb flags */
+#define OUT_VLDB_Flags() \
+ { proto_tree *save, *ti; \
+ guint32 flags; \
+ flags = tvb_get_ntohl(tvb, offset); \
+ ti = proto_tree_add_uint(tree, hf_afs_vldb_flags, tvb, offset, \
+ sizeof(guint32), flags); \
+ save = tree; \
+ tree = proto_item_add_subtree(ti, ett_afs_vldb_flags); \
+ proto_tree_add_uint(tree, hf_afs_vldb_flags_rwexists, \
+ tvb,offset,sizeof(guint32), flags); \
+ proto_tree_add_uint(tree, hf_afs_vldb_flags_roexists, \
+ tvb,offset,sizeof(guint32), flags); \
+ proto_tree_add_uint(tree, hf_afs_vldb_flags_bkexists, \
+ tvb,offset,sizeof(guint32), flags); \
+ proto_tree_add_uint(tree, hf_afs_vldb_flags_dfsfileset, \
+ tvb,offset,sizeof(guint32), flags); \
+ offset += 4; \
+ tree = save; \
+ }
+
+
+
/* Output a File ID */
#define OUT_CB_AFSFid(label) \
{ proto_tree *save, *ti; \
@@ -450,7 +473,7 @@
offset += sizeof(guint32);\
}\
tmp[length] = '\0';\
- proto_tree_add_string(tree, field, tvb, soff, length, tmp);\
+ proto_tree_add_string(tree, field, tvb, soff, length*sizeof(guint32), tmp);\
}
/* Skip the opcode */