diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-10-29 21:13:13 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-10-29 21:13:13 +0000 |
commit | 3ec1880c0c1eb749ae6ccf1e01198741a5f9330f (patch) | |
tree | 0d1078ed4e15ca77422d9b578febfd8c678cd503 /packet-diameter.c | |
parent | e18777aba191ea1df6ebb7b02a76e498d168231b (diff) |
From Ronnie Sahlberg: FT_UINT64 support, code to handle 64-bit integers
without requiring compiler support for them, and updates to the
Diameter, L2TP, NFS, and NLM dissectors to use it and to the ONC RPC
dissector to allow ONC RPC subdissectors to use it.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4099 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-diameter.c')
-rw-r--r-- | packet-diameter.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/packet-diameter.c b/packet-diameter.c index ea007c8e92..0469da20ab 100644 --- a/packet-diameter.c +++ b/packet-diameter.c @@ -1,7 +1,7 @@ /* packet-diameter.c * Routines for DIAMETER packet disassembly * - * $Id: packet-diameter.c,v 1.26 2001/08/04 19:50:33 guy Exp $ + * $Id: packet-diameter.c,v 1.27 2001/10/29 21:13:07 guy Exp $ * * Copyright (c) 2001 by David Frascone <dave@frascone.com> * @@ -753,14 +753,7 @@ static void dissect_avps(tvbuff_t *tvb, packet_info *pinfo, proto_tree *avp_tree } break; case DIAMETER_UNSIGNED64: - { - guint64 data; - memcpy(&data, dataBuffer, 8); - /* data = ntohll(data); */ - proto_tree_add_int_format(avpi_tree, hf_diameter_avp_data_uint64, - tvb, offset, avpDataLength, data, - "Value: 0x%016llx (%llu)", data, data ); - } + proto_tree_add_item(avpi_tree, hf_diameter_avp_data_uint64, tvb, offset, 8, FALSE); break; case DIAMETER_TIME: @@ -919,7 +912,7 @@ proto_register_diameter(void) { "AVP Vendor Id","diameter.avp.vendorId", FT_UINT32, BASE_DEC, NULL, 0x0, "", HFILL }}, { &hf_diameter_avp_data_uint64, - { "AVP Data","diameter.avp.data.uint64", FT_UINT32, BASE_DEC, + { "AVP Data","diameter.avp.data.uint64", FT_UINT64, BASE_DEC, NULL, 0x0, "", HFILL }}, { &hf_diameter_avp_data_int64, { "AVP Data","diameter.avp.data.int64", FT_INT32, BASE_DEC, |