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
This commit is contained in:
Guy Harris 2005-09-21 02:12:24 +00:00
parent c952476658
commit 13e99476e6
1 changed files with 2 additions and 2 deletions

View File

@ -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,