diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 2000-05-15 06:22:07 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 2000-05-15 06:22:07 +0000 |
commit | ec3337ed07279039c217a70826947efc2bbdc2e3 (patch) | |
tree | 648cc6836e71384dde1353c1d103ce19894cbc90 /packet-tr.h | |
parent | 6c2a7af1f68d5b919f2d52e69e889ef5a1858392 (diff) |
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
Diffstat (limited to 'packet-tr.h')
-rw-r--r-- | packet-tr.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 <gerald@zing.org> @@ -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 *); |