aboutsummaryrefslogtreecommitdiffstats
path: root/packet-ip.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-01-10 11:27:57 +0000
committerGuy Harris <guy@alum.mit.edu>2002-01-10 11:27:57 +0000
commit381c21783e5a3d0f406ee3ddbb328413464c4ef8 (patch)
tree4016e78c363af0de71ba41cceb67045adf3f9e5f /packet-ip.c
parent65b96f652dc2dc47ed8f98ecadc87b45b9595254 (diff)
As per a comment from Ronnie Sahlberg, display TCP sequence numbers in
the list of segments in a desegmented PDU as unsigned, rather than signed. Fix some other displays of unsigned quantities with "%d" while we're at it. svn path=/trunk/; revision=4516
Diffstat (limited to 'packet-ip.c')
-rw-r--r--packet-ip.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/packet-ip.c b/packet-ip.c
index aaab2fad27..8793e96323 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.154 2001/12/29 22:01:11 guy Exp $
+ * $Id: packet-ip.c,v 1.155 2002/01/10 11:27:56 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -1010,7 +1010,7 @@ dissect_ip(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
}
fei = proto_tree_add_none_format(ft, hf,
tvb, 0, 0,
- "Frame:%d payload:%d-%d",
+ "Frame:%u payload:%u-%u",
ipfd->frame,
ipfd->offset,
ipfd->offset+ipfd->len-1
@@ -1040,7 +1040,7 @@ dissect_ip(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
/* nothing of interest for this fragment */
proto_tree_add_none_format(ft, hf_ip_fragment,
tvb, 0, 0,
- "Frame:%d payload:%d-%d",
+ "Frame:%u payload:%u-%u",
ipfd->frame,
ipfd->offset,
ipfd->offset+ipfd->len-1
@@ -1170,7 +1170,7 @@ dissect_mip_extensions(tvbuff_t *tvb, size_t offset, packet_info *pinfo,
type?(length + 2):1,
"Ext: %s",
val_to_str(type, mip_extensions,
- "Unknown ext %d"));
+ "Unknown ext %u"));
mip_tree = proto_item_add_subtree(ti, ett_icmp_mip);
@@ -1266,7 +1266,7 @@ dissect_mip_extensions(tvbuff_t *tvb, size_t offset, packet_info *pinfo,
break;
default:
- g_warning("Unknown type(%d)! I hope the length is right (%d)",
+ g_warning("Unknown type(%u)! I hope the length is right (%u)",
type, length);
offset += length;
break;