Ethereal-cvs: [ethereal-cvs] cvs commit: ethereal proto.c proto.h

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Gilbert Ramirez Jr." <gram@xxxxxxxxxxxx>
Date: Thu, 27 Jul 2000 01:42:05 -0500 (CDT)
gram        2000/07/27 01:42:03 CDT

  Modified files:
    .                    proto.c proto.h 
  Log:
  Add initial attempt at FT_NSTRING_UINT8, a string with a single byte prefix
  indicating the string length. It's available only with proto_tree_add_item().
  
  Add proto_item_get_len(), so that dissectors can find out how long
  the FT_NSTRING_UINT8 turned out to be.
  
  In proto_tree_add_item(), don't add a proto_item to the proto_tree until
  *after* the attempt to pull data from the tvbuff. That way, if the tvbuff
  raises an exception, an item with garbage data won't be left in the
  proto_tree.
  
  Revision  Changes    Path
  1.71      +53 -14    ethereal/proto.c
  1.37      +6 -1      ethereal/proto.h