aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-08-05 05:24:01 +0000
committerGuy Harris <guy@alum.mit.edu>2000-08-05 05:24:01 +0000
commit657e33d827fb28c0d2b532f3953428b98bc3f845 (patch)
tree55f3433a66f580d3d77e2320c51c170fa71ef405
parent6a4a59ea1e33cc878c4dc3cebdd52ea396f88a2a (diff)
Make the ICMP top-of-protocol-tree item cover the entire rest of the
packet, not just the first 4 bytes of the ICMP packet. svn path=/trunk/; revision=2211
-rw-r--r--packet-ip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-ip.c b/packet-ip.c
index d407d79d32..aa2275bb95 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.98 2000/08/05 05:08:21 guy Exp $
+ * $Id: packet-ip.c,v 1.99 2000/08/05 05:24:01 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -1094,7 +1094,7 @@ dissect_icmp(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) {
col_add_str(fd, COL_INFO, type_str);
if (tree) {
- ti = proto_tree_add_item(tree, proto_icmp, NullTVB, offset, 4, FALSE);
+ ti = proto_tree_add_item(tree, proto_icmp, NullTVB, offset, END_OF_FRAME, FALSE);
icmp_tree = proto_item_add_subtree(ti, ett_icmp);
proto_tree_add_uint_format(icmp_tree, hf_icmp_type, NullTVB, offset, 1,
ih.icmp_type,