From ec3337ed07279039c217a70826947efc2bbdc2e3 Mon Sep 17 00:00:00 2001 From: Gilbert Ramirez Date: Mon, 15 May 2000 06:22:07 +0000 Subject: Convert token-ring dissector to use tvbuffs. Modify ethernet dissector to catch BoundsError if the attempt to create next_tvb with the length specified in the ethernet header throws an exception. In that case, next_tv is created with as many bytes as are available in the frame. Both dissect_tr() and dissect_eth() now have TRY blocks, which means I had to fiddle with 'volatile' and 'static' storage options to get things right (at least according to gcc). svn path=/trunk/; revision=1962 --- packet-tr.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packet-tr.h') diff --git a/packet-tr.h b/packet-tr.h index 9212ed48af..c5e187d478 100644 --- a/packet-tr.h +++ b/packet-tr.h @@ -1,6 +1,6 @@ /* packet-tr.h * - * $Id: packet-tr.h,v 1.1 2000/02/15 21:03:21 gram Exp $ + * $Id: packet-tr.h,v 1.2 2000/05/15 06:22:07 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -23,4 +23,4 @@ */ void capture_tr(const u_char *, int, packet_counts *); -void dissect_tr(const u_char *, int, frame_data *, proto_tree *); +void dissect_tr(tvbuff_t *, packet_info *, proto_tree *); -- cgit v1.2.1