diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-05-08 18:49:20 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-05-08 18:49:20 +0000 |
commit | 39cde9883efffaded99657e3028c6620c09d4272 (patch) | |
tree | 242dc0e327f66368bb97a4623cb39b1079ec3d2d /packet-wtp.c | |
parent | 8f3237229f188f9e88113d362e0d87d2e3f9c049 (diff) |
From Olivier Biot: fix WTP sub-PDU size presentation in the protocol
tree (display size in decimal instead of the highlighted bytes).
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7653 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-wtp.c')
-rw-r--r-- | packet-wtp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/packet-wtp.c b/packet-wtp.c index a4c713c3fa..843a011e9c 100644 --- a/packet-wtp.c +++ b/packet-wtp.c @@ -2,7 +2,7 @@ * * Routines to dissect WTP component of WAP traffic. * - * $Id: packet-wtp.c,v 1.45 2003/04/20 11:36:16 guy Exp $ + * $Id: packet-wtp.c,v 1.46 2003/05/08 18:49:20 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -358,8 +358,8 @@ dissect_wtp_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) c_pdulen = b0; } if (tree) { - proto_tree_add_item(wtp_tree, hf_wtp_header_sub_pdu_size, - tvb, offCur, c_fieldlen, bo_big_endian); + proto_tree_add_uint(wtp_tree, hf_wtp_header_sub_pdu_size, + tvb, offCur, c_fieldlen, c_pdulen); } if (i > 1 && check_col(pinfo->cinfo, COL_INFO)) { col_append_str(pinfo->cinfo, COL_INFO, ", "); @@ -691,8 +691,8 @@ proto_register_wtp(void) { &hf_wtp_header_sub_pdu_size, { "Sub PDU size", "wtp.sub_pdu_size", - FT_BYTES, BASE_HEX, NULL, 0x0, - "Size of Sub-PDU", HFILL + FT_UINT16, BASE_DEC, NULL, 0x0, + "Size of Sub-PDU (bytes)", HFILL } }, { &hf_wtp_header_flag_continue, |