diff options
author | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2003-04-16 12:17:55 +0000 |
---|---|---|
committer | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2003-04-16 12:17:55 +0000 |
commit | 18594809fe6104f3c590e07bb4635be2657e27fc (patch) | |
tree | 8b88d7f09513a66a1a5fc090de63320f90a95e39 /packet-ip.c | |
parent | b7931e40fde009e90f8799bd6e59b855cf202ca0 (diff) | |
download | wireshark-18594809fe6104f3c590e07bb4635be2657e27fc.tar.gz wireshark-18594809fe6104f3c590e07bb4635be2657e27fc.tar.bz2 wireshark-18594809fe6104f3c590e07bb4635be2657e27fc.zip |
Update packet-ip.c to print the identification number in decimal as well as hexadecimal to make it easier to crossreference packets between output from other sniffers that display it in DEC instead of HEX.
Since this value has no human readable meaning it should be displayed in HEX only but make ethereal also display the "wrong" base to enhance human compatibility.
svn path=/trunk/; revision=7471
Diffstat (limited to 'packet-ip.c')
-rw-r--r-- | packet-ip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-ip.c b/packet-ip.c index a16c417dd9..acfef1f39b 100644 --- a/packet-ip.c +++ b/packet-ip.c @@ -1,7 +1,7 @@ /* packet-ip.c * Routines for IP and miscellaneous IP protocol packet disassembly * - * $Id: packet-ip.c,v 1.185 2003/03/04 06:47:10 guy Exp $ + * $Id: packet-ip.c,v 1.186 2003/04/16 12:17:55 sahlberg Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -919,7 +919,7 @@ dissect_ip(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) iph->ip_id = tvb_get_ntohs(tvb, offset + 4); if (tree) - proto_tree_add_uint(ip_tree, hf_ip_id, tvb, offset + 4, 2, iph->ip_id); + 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); iph->ip_off = tvb_get_ntohs(tvb, offset + 6); if (tree) { |