Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal/epan packet.h 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: Sat, 18 Nov 2000 04:38:34 -0600 (CST)
guy         2000/11/18 04:38:34 CST

  Modified files:
    epan                 packet.h tvbuff.c tvbuff.h 
  Log:
  Tvbuffify the IP, ICMP, TCP, UDP, OSI CLNP, OSI COTP, OSI CLTP, and OSI
  ESIS dissectors.
  
  Register the IP dissector and have dissectors that call it directly
  (rather than through a port table) call it through a handle.
  
  Add a routine "tvb_set_reported_length()" which a dissector can use if
  it was handed a tvbuff that contains more data than is actually in its
  part of the packet - for example, handing a padded Ethernet frame to IP;
  the routine sets the reported length of the tvbuff (and also adjusts the
  actual length, as appropriate).  Then use it in IP.
  
  Given that, "ethertype()" can determine how much of the Ethernet frame
  was actually part of an IP datagram (and can do the same for other
  protocols under Ethernet that use "tvb_set_reported_length()"; have it
  return the actual length, and have "dissect_eth()" and "dissect_vlan()"
  use that to mark trailer data in Ethernet II frames as well as in 802.3
  frames.
  
  Revision  Changes    Path
  1.7       +2 -2      ethereal/epan/packet.h
  1.10      +16 -1     ethereal/epan/tvbuff.c
  1.8       +9 -1      ethereal/epan/tvbuff.h