Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal packet-mip.c

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: Sat, 5 Jan 2002 16:09:17 -0600 (CST)
guy         2002/01/05 16:09:17 CST

  Modified files:
    .                    packet-mip.c 
  Log:
  There's no need for two separate "Extension Length" fields - you can
  add a 1-byte item for a FT_UINT16 field.
  
  Don't create a separate tvbuff for the extensions, just use the tvbuff
  handed to us and start dissecting at the beginning of the extensions.
  
  Use the reported length, not the captured length, to indicate how much
  to dissect, so that if the frame was cut short by the snapshot length,
  we throw a "Short Frame" exception.
  
  Use "proto_tree_add_item()", not "proto_tree_add_bytes()", to add an
  item for the data in an unknown extension.
  
  Revision  Changes    Path
  1.25      +11 -35    ethereal/packet-mip.c