From 292e38e2c61edcd14bfa30ca3c72bacda1bcbe32 Mon Sep 17 00:00:00 2001 From: Gilbert Ramirez Date: Thu, 11 May 2000 08:18:09 +0000 Subject: Add tvbuff class. Add exceptions routines. Convert proto_tree_add_*() routines to require tvbuff_t* argument. Convert all dissectors to pass NULL argument ("NullTVB" macro == NULL) as the tvbuff_t* argument to proto_tree_add_*() routines. dissect_packet() creates a tvbuff_t, wraps the next dissect call in a TRY block, will print "Short Frame" on the proto_tree if a BoundsError exception is caught. The FDDI dissector is converted to use tvbuff's. svn path=/trunk/; revision=1939 --- packet-ethertype.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packet-ethertype.c') diff --git a/packet-ethertype.c b/packet-ethertype.c index 5a30edc555..87da8acd43 100644 --- a/packet-ethertype.c +++ b/packet-ethertype.c @@ -1,7 +1,7 @@ /* ethertype.c * Routines for calling the right protocol for the ethertype. * - * $Id: packet-ethertype.c,v 1.2 2000/04/13 19:38:55 gram Exp $ + * $Id: packet-ethertype.c,v 1.3 2000/05/11 08:15:08 gram Exp $ * * Gilbert Ramirez * @@ -95,7 +95,7 @@ ethertype(guint16 etype, int offset, /* Add to proto_tree */ if (tree) { - proto_tree_add_item(fh_tree, item_id, offset - 2, 2, etype); + proto_tree_add_item(fh_tree, item_id, NullTVB, offset - 2, 2, etype); } /* Look for sub-dissector */ -- cgit v1.2.3