hf_mdshdr_span is a FT_UINT8 field, so we must use :

proto_tree_add_uint_hidden() instead of proto_tree_add_int_hidden()

svn path=/trunk/; revision=6997
This commit is contained in:
Olivier Abad 2003-01-24 17:17:25 +00:00
parent 354a9a8018
commit 3ee4c87fea
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
* Routines for dissection of Cisco MDS Switch Internal Header
* Copyright 2001, Dinesh G Dutt <ddutt@andiamo.com>
*
* $Id: packet-mdshdr.c,v 1.2 2003/01/23 07:01:52 guy Exp $
* $Id: packet-mdshdr.c,v 1.3 2003/01/24 17:17:25 oabad Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@ -231,7 +231,7 @@ dissect_mdshdr(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
MDSHDR_SIZE_INT16, 0);
proto_tree_add_item (mdshdr_tree_hdr, hf_mdshdr_vsan, tvb, MDSHDR_VSAN_OFFSET,
MDSHDR_SIZE_INT16, 0);
proto_tree_add_int_hidden (mdshdr_tree_hdr, hf_mdshdr_span,
proto_tree_add_uint_hidden(mdshdr_tree_hdr, hf_mdshdr_span,
tvb, MDSHDR_VSAN_OFFSET,
MDSHDR_SIZE_BYTE, span_id);