diff options
author | gram <gram@f5534014-38df-0310-8fa8-9805f1628bb7> | 2000-05-11 08:18:09 +0000 |
---|---|---|
committer | gram <gram@f5534014-38df-0310-8fa8-9805f1628bb7> | 2000-05-11 08:18:09 +0000 |
commit | be84f10d1819ef058061de43e78962f045da55f0 (patch) | |
tree | db4edef02456a48d0f6d505166ac7d70f6c0f644 /packet-clip.c | |
parent | 9faed730f03b0f9dd161698662886cc7702319e4 (diff) |
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.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1939 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-clip.c')
-rw-r--r-- | packet-clip.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packet-clip.c b/packet-clip.c index 18c5ef019a..0760a0c7aa 100644 --- a/packet-clip.c +++ b/packet-clip.c @@ -1,7 +1,7 @@ /* packet-clip.c * Routines for clip packet disassembly * - * $Id: packet-clip.c,v 1.5 2000/02/15 21:02:05 gram Exp $ + * $Id: packet-clip.c,v 1.6 2000/05/11 08:15:04 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -72,9 +72,9 @@ dissect_clip( const u_char *pd, frame_data *fd, proto_tree *tree ) { it treats the packet as being raw IP with no link-level header. */ if(tree) { - ti = proto_tree_add_text(tree, 0, 0, "Classical IP frame" ); + ti = proto_tree_add_text(tree, NullTVB, 0, 0, "Classical IP frame" ); fh_tree = proto_item_add_subtree(ti, ett_clip); - proto_tree_add_text(fh_tree, 0, 0, "No link information available"); + proto_tree_add_text(fh_tree, NullTVB, 0, 0, "No link information available"); } dissect_ip(pd, 0, fd, tree); } |