Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal/epan tvbuff.c tvbuff.h

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

From: Guy Harris <guy@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 27 Dec 2000 06:48:28 -0600 (CST)
guy         2000/12/27 06:48:27 CST

  Modified files:
    epan                 tvbuff.c tvbuff.h 
  Log:
  Tvbuffify the RIP and OSPF dissectors.
  
  Change them to use facilities in Ethereal that were probably not present
  when they were originally written, e.g. routines to fetch 24-bit
  integers and to dump a bunch of raw bytes in hex.
  
  Redo them to extract data from the packet as they dissect it, rather
  than extracting an entire data structure at once; that way, it may be
  able to dissect a structure not all of which is in the packet.
  
  Dissect a bit more of the type-of-service metrics etc. in OSPF packets.
  
  Make "tvb_length_remaining()" return a "gint", not a "guint"; it returns
  -1 if the offset is past the end of the tvbuff.
  
  Add a "tvb_reported_length_remaining()" routine, similar to
  "tvb_length_remaining()".  Use it instead of just subtracting an offset
  from "tvb_reported_length()".
  
  Revision  Changes    Path
  1.14      +20 -2     ethereal/epan/tvbuff.c
  1.10      +8 -2      ethereal/epan/tvbuff.h