aboutsummaryrefslogtreecommitdiffstats
path: root/packet-klm.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-01-24 09:20:54 +0000
committerGuy Harris <guy@alum.mit.edu>2002-01-24 09:20:54 +0000
commiteb2d6593dca282de10e8dc13a5e2cde4523b800a (patch)
tree72ec8d9d161bf956703a8111d9457fca75745804 /packet-klm.c
parent6f334976e03a191e5270813a63f6d454df5cb48b (diff)
Replace a bunch of "tvb_length()" and "tvb_length_remaining()" calls in
arguments to "proto_tree_add_text()", and to "proto_tree_add_XXX()" calls that add FT_NONE or FT_PROTO items to the protocol tree, with -1. Replace some calls to "tvb_length()" or "tvb_length_remaining()" with calls to "tvb_reported_length()" and "tvb_reported_length_remaining()", as those give the actual length of the data in the packet, not just the data that happened to be captured. svn path=/trunk/; revision=4605
Diffstat (limited to 'packet-klm.c')
-rw-r--r--packet-klm.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/packet-klm.c b/packet-klm.c
index bbec6f4e7d..1e99dbbbd7 100644
--- a/packet-klm.c
+++ b/packet-klm.c
@@ -1,7 +1,7 @@
/* packet-klm.c 2001 Ronnie Sahlberg <See AUTHORS for email>
* Routines for klm dissection
*
- * $Id: packet-klm.c,v 1.6 2001/12/23 21:36:57 guy Exp $
+ * $Id: packet-klm.c,v 1.7 2002/01/24 09:20:49 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -71,7 +71,7 @@ dissect_holder(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset)
proto_tree* lock_tree = NULL;
lock_item = proto_tree_add_item(tree, hf_klm_holder, tvb,
- offset, tvb_length_remaining(tvb, offset), FALSE);
+ offset, -1, FALSE);
lock_tree = proto_item_add_subtree(lock_item, ett_klm_holder);
@@ -97,7 +97,7 @@ dissect_lock(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset)
proto_tree* lock_tree = NULL;
lock_item = proto_tree_add_item(tree, hf_klm_lock, tvb,
- offset, tvb_length_remaining(tvb, offset), FALSE);
+ offset, -1, FALSE);
lock_tree = proto_item_add_subtree(lock_item, ett_klm_lock);
@@ -258,4 +258,3 @@ proto_reg_handoff_klm(void)
/* Register the procedure tables */
rpc_init_proc_table(KLM_PROGRAM, 1, klm1_proc);
}
-