From Olivier Biot: fix WTP sub-PDU size presentation in the protocol
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 8 May 2003 18:49:20 +0000 (18:49 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 8 May 2003 18:49:20 +0000 (18:49 +0000)
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

packet-wtp.c

index a4c713c3fac5239942fc9373377c5fe0b6962cf2..843a011e9c880ac424559851881da8c28023bb7b 100644 (file)
@@ -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,