aboutsummaryrefslogtreecommitdiffstats
path: root/packet-diameter.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-11-02 10:09:51 +0000
committerGuy Harris <guy@alum.mit.edu>2001-11-02 10:09:51 +0000
commit5511e79593f44ea7fc40cb4b2e830c11cacd7571 (patch)
tree1b55e03b0e64e0881fe25858e58b811f7942dba1 /packet-diameter.c
parentf1b98e60bcd6614ade2fc9d28da7f4b7636e4aed (diff)
Add support for 64-bit signed integers in "int-64bit.[ch]", add an
FT_INT64 type, and make the Diameter dissector use it. Handle the 64-bit integer types in the display filter semantics checks. svn path=/trunk/; revision=4125
Diffstat (limited to 'packet-diameter.c')
-rw-r--r--packet-diameter.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/packet-diameter.c b/packet-diameter.c
index 4ee8100345..121b6b01ce 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.28 2001/11/01 21:52:44 guy Exp $
+ * $Id: packet-diameter.c,v 1.29 2001/11/02 10:09:47 guy Exp $
*
* Copyright (c) 2001 by David Frascone <dave@frascone.com>
*
@@ -1465,15 +1465,9 @@ static void dissect_avps(tvbuff_t *tvb, packet_info *pinfo, proto_tree *avp_tree
break;
case DIAMETER_INTEGER64:
- {
- gint64 data;
- memcpy(&data, dataBuffer, 8);
- /* data = ntohll(data); */
- proto_tree_add_int_format(avpi_tree, hf_diameter_avp_data_int64,
- tvb, offset, avpDataLength, data,
- "Value: 0x%016llx (%lld)", data, data );
- }
+ proto_tree_add_item(avpi_tree, hf_diameter_avp_data_int64, tvb, offset, 8, FALSE);
break;
+
case DIAMETER_UNSIGNED64:
proto_tree_add_item(avpi_tree, hf_diameter_avp_data_uint64, tvb, offset, 8, FALSE);
break;
@@ -1666,7 +1660,7 @@ proto_register_diameter(void)
{ "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,
+ { "AVP Data","diameter.avp.data.int64", FT_INT64, BASE_DEC,
NULL, 0x0, "", HFILL }},
{ &hf_diameter_avp_data_uint32,
{ "AVP Data","diameter.avp.data.uint32", FT_UINT32, BASE_DEC,