diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 2000-05-11 08:18:09 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 2000-05-11 08:18:09 +0000 |
commit | 292e38e2c61edcd14bfa30ca3c72bacda1bcbe32 (patch) | |
tree | db4edef02456a48d0f6d505166ac7d70f6c0f644 /packet-ethertype.c | |
parent | 162800efb308901e0c302517be01226130e39b19 (diff) | |
download | wireshark-292e38e2c61edcd14bfa30ca3c72bacda1bcbe32.tar.gz |
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
Diffstat (limited to 'packet-ethertype.c')
-rw-r--r-- | packet-ethertype.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <gram@xiexie.org> * @@ -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 */ |