Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal packet-pim.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: Fri, 1 Feb 2002 01:06:33 -0600 (CST)
guy         2002/02/01 01:06:32 CST

  Modified files:
    .                    packet-pim.c 
  Log:
  Use -1 rather than "tvb_length_remaining(tvb, offset)" for a
  top-level protocol tree item.
  
  Use "sizeof ip6_hdr" rather than "tvb_length_remaining(tvb, offset)"
  when copying stuff into a "struct ip6_hdr" - if there's more than an
  IPv6 header's worth of data remaining, we don't want to copy the stuff
  past the end of the IPv6 header, and if there's less than that, we want
  to throw an exception.
  
  Revision  Changes    Path
  1.39      +5 -5      ethereal/packet-pim.c