aboutsummaryrefslogtreecommitdiffstats
path: root/packet-mip.c
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>2000-05-27 15:46:02 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>2000-05-27 15:46:02 +0000
commit19c978c5cd8d96bbb2b97e259cf154fd5e27f0ca (patch)
tree5b5458423eb91604e524ec48d55c9b1466e1ad8c /packet-mip.c
parented1863187c77827eb611ef5a2d3b7ebdc9ef576c (diff)
Use tvb_length() instead of END_OF_FRAME.
svn path=/trunk/; revision=2016
Diffstat (limited to 'packet-mip.c')
-rw-r--r--packet-mip.c6
1 files 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 <Stefan.Raab@nextel.com>
*
- * $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 <gerald@unicom.net>
@@ -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);