Ethereal-cvs: [Ethereal-cvs] Rev 12444: /trunk/epan/dissectors/: packet-udp.c /trunk/: AUTHORS

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

Date: Sat, 30 Oct 2004 10:04:39 -0000
User: guy
Date: 2004/10/30 05:04 AM

Log:
 from Mark Phillips: the length field in the UDP header includes the
 length of the UDP header itself, so subtract the length of the header
 when using it to limit the length of the payload tvbuff.
 
 Clean up the computing of the captured length of the payload tvbuff (we
 really should get rid of the "length" argument to "tvb_new_subset()",
 and have it compute the captured length based on the supplied reported
 length and the amount of that data actually present in the parent
 tvbuff).
 
 Don't fetch the length and checksum fields until we use them (so that we
 don't throw an exception until then, and fail to process the source and
 destination ports), and check whether the length is bogus regardless of
 whether we're building a protocol tree or not.

Directory: /trunk/epan/dissectors/
  Changes    Path            Action
  +19 -12    packet-udp.c    Modified

Directory: /trunk/
  Changes    Path          Action
  +1 -0      AUTHORS       Modified



http://anonsvn.ethereal.com/viewcvs/viewcvs.py?rev=12444&view=rev