aboutsummaryrefslogtreecommitdiffstats
path: root/packet-isl.c
diff options
context:
space:
mode:
authorgram <gram@f5534014-38df-0310-8fa8-9805f1628bb7>2000-05-16 04:44:14 +0000
committergram <gram@f5534014-38df-0310-8fa8-9805f1628bb7>2000-05-16 04:44:14 +0000
commite6db724c140f18bc79f378cbd5337fa734b0d374 (patch)
tree50401d28646b843ea7fdfac3e1487613b2bdc9af /packet-isl.c
parentc298183743c67929121b341ce7a8c7b6717d24f2 (diff)
Have tvbuff's keep track of cap_len and pkt_len ('length' and 'reported_length'
in tvbuff terminology). This is implemented for TVBUFF_REAL and TVBUFF_SUBSET so far; support for TVBUFF_COMPOSITE is coming soon. Throw either ReportedBoundsError or BoundsError. A ReportedBoundsError is reported as "Malformed Frame" since the protocol stated that a certain number of bytes should be available but they weren't. A BoundsError is reported as a "Short Frame" since the snaplen was too short. Register proto_short (BoundsError) and proto_malformed (ReportedBounds) so searches can be made on "short" and "malformed". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1965 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-isl.c')
-rw-r--r--packet-isl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-isl.c b/packet-isl.c
index 9bd1fa5dd1..55c679e0e5 100644
--- a/packet-isl.c
+++ b/packet-isl.c
@@ -1,7 +1,7 @@
/* packet-isl.c
* Routines for Cisco ISL Ethernet header disassembly
*
- * $Id: packet-isl.c,v 1.9 2000/05/15 06:22:06 gram Exp $
+ * $Id: packet-isl.c,v 1.10 2000/05/16 04:44:11 gram Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -225,7 +225,7 @@ dissect_isl(const u_char *pd, int offset, frame_data *fd, proto_tree *tree)
pd[offset+30]);
proto_tree_add_item(fh_tree, hf_isl_esize, NullTVB, offset+16, 1,
pd[offset+30]);
- next_tvb = tvb_new_subset(pi.compat_top_tvb, offset+31, -1);
+ next_tvb = tvb_new_subset(pi.compat_top_tvb, offset+31, -1, -1);
dissect_tr(next_tvb, &pi, tree);
break;