}
if (di->conformant_run) {
+ return offset;
+ }
+
+ {
guint64 val;
/* conformant run, just dissect the max_count header */
hf_dcerpc_array_max_count, &val);
di->array_max_count = (gint32)val;
di->array_max_count_offset = offset-conformance_size;
- di->conformant_run = 1;
- di->conformant_eaten = offset-old_offset;
- } else {
/* we don't remember where in the bytestream this field was */
proto_tree_add_uint(tree, hf_dcerpc_array_max_count, tvb, di->array_max_count_offset, conformance_size, di->array_max_count);
}
if (di->conformant_run) {
+ return offset;
+ }
+
+ {
guint64 val;
/* conformant run, just dissect the max_count header */
old_offset = offset;
- di->conformant_run = 0;
offset = dissect_ndr_uint3264(tvb, offset, pinfo, tree, di, drep,
hf_dcerpc_array_max_count, &val);
DISSECTOR_ASSERT(val <= G_MAXUINT32);
DISSECTOR_ASSERT(val <= G_MAXUINT32);
di->array_actual_count = (guint32)val;
di->array_actual_count_offset = offset-conformance_size;
- di->conformant_run = 1;
- di->conformant_eaten = offset-old_offset;
- } else {
/* we don't remember where in the bytestream these fields were */
proto_tree_add_uint(tree, hf_dcerpc_array_max_count, tvb, di->array_max_count_offset, conformance_size, di->array_max_count);
proto_tree_add_uint(tree, hf_dcerpc_array_offset, tvb, di->array_offset_offset, conformance_size, di->array_offset);
}
if (di->conformant_run) {
+ return offset;
+ }
+
+ {
guint64 val;
/* conformant run, just dissect the max_count header */
old_offset = offset;
- di->conformant_run = 0;
offset = dissect_ndr_uint3264(tvb, offset, pinfo, tree, di, drep,
hf_dcerpc_array_offset, &val);
DISSECTOR_ASSERT(val <= G_MAXUINT32);
DISSECTOR_ASSERT(val <= G_MAXUINT32);
di->array_actual_count = (guint32)val;
di->array_actual_count_offset = offset-conformance_size;
- di->conformant_run = 1;
- di->conformant_eaten = offset-old_offset;
- } else {
/* we don't remember where in the bytestream these fields were */
proto_tree_add_uint(tree, hf_dcerpc_array_offset, tvb, di->array_offset_offset, conformance_size, di->array_offset);
proto_tree_add_uint(tree, hf_dcerpc_array_actual_count, tvb, di->array_actual_count_offset, conformance_size, di->array_actual_count);