From 13e99476e60e3176664892541d0015ab5a007c4f Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 21 Sep 2005 02:12:24 +0000 Subject: [PATCH] Use BASE_DEC_HEX for the identifier field; that means we don't have to use "proto_tree_add_uint_format()", we can just let the Ethereal core format it. svn path=/trunk/; revision=15922 --- epan/dissectors/packet-ip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/epan/dissectors/packet-ip.c b/epan/dissectors/packet-ip.c index 299820704c..b05bedfa1d 100644 --- a/epan/dissectors/packet-ip.c +++ b/epan/dissectors/packet-ip.c @@ -969,7 +969,7 @@ dissect_ip(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree) iph->ip_id = tvb_get_ntohs(tvb, offset + 4); if (tree) - proto_tree_add_uint_format(ip_tree, hf_ip_id, tvb, offset + 4, 2, iph->ip_id, "Identification: 0x%04x (%d)", iph->ip_id, iph->ip_id); + proto_tree_add_uint(ip_tree, hf_ip_id, tvb, offset + 4, 2, iph->ip_id); iph->ip_off = tvb_get_ntohs(tvb, offset + 6); if (tree) { @@ -2001,7 +2001,7 @@ proto_register_ip(void) "", HFILL }}, { &hf_ip_id, - { "Identification", "ip.id", FT_UINT16, BASE_HEX, NULL, 0x0, + { "Identification", "ip.id", FT_UINT16, BASE_HEX_DEC, NULL, 0x0, "", HFILL }}, { &hf_ip_dst,