From 19c978c5cd8d96bbb2b97e259cf154fd5e27f0ca Mon Sep 17 00:00:00 2001 From: Gilbert Ramirez Date: Sat, 27 May 2000 15:46:02 +0000 Subject: Use tvb_length() instead of END_OF_FRAME. svn path=/trunk/; revision=2016 --- packet-mip.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packet-mip.c b/packet-mip.c index cb9a4648aa..dd4b3c9817 100644 --- a/packet-mip.c +++ b/packet-mip.c @@ -2,7 +2,7 @@ * Routines for Mobile IP dissection * Copyright 2000, Stefan Raab * - * $Id: packet-mip.c,v 1.1 2000/05/27 13:53:26 gram Exp $ + * $Id: packet-mip.c,v 1.2 2000/05/27 15:46:02 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -174,7 +174,7 @@ dissect_mip(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) col_add_str(fd, COL_INFO, "Mobile IP Registration Request"); if (tree) { - ti = proto_tree_add_item(tree, proto_mip, tvb, 0, END_OF_FRAME, NULL); + ti = proto_tree_add_item(tree, proto_mip, tvb, 0, tvb_length(tvb), NULL); mip_tree = proto_item_add_subtree(ti, ett_mip); proto_tree_add_item(mip_tree, hf_mip_type, 0, 1, type); @@ -202,7 +202,7 @@ dissect_mip(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) /* In the interest of speed, if "tree" is NULL, don't do any work not necessary to generate protocol tree items. */ if (tree) { - ti = proto_tree_add_item(tree, proto_mip, tvb, 0, END_OF_FRAME, NULL); + ti = proto_tree_add_item(tree, proto_mip, tvb, 0, tvb_length(tvb), NULL); mip_tree = proto_item_add_subtree(ti, ett_mip); proto_tree_add_item(mip_tree, hf_mip_type, tvb, 0, 1, type); -- cgit v1.2.3