Ethereal-cvs: [Ethereal-cvs] rev 13211: /trunk/epan/dissectors/: packet-gnutella.c packet-gnut

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

Date: Mon, 31 Jan 2005 00:28:10 -0000
User: guy
Date: 2005/01/30 06:28 PM

Log:
 Add a URL for Gnutella specs.
 
 Don't check, in the dissectors for particular Gnutella packets, whether
 the packet goes past the end of the tvbuff - let that throw an exception
 so unreassembled packets are shown as such.
 
 Clean up indentation.
 
 Boost GNUTELLA_MAX_SNAP_SIZE to 4096 (one Gnutella spec suggests that
 packets should be < 4K), and use it to
 
 	1) clamp the length of packets (so we don't do huge reassembly
 	   or have problems when the total packet length, including the
 	   header, overflows 32 bits)
 
 and
 
 	2) check the length of packets before using tcp_dissect_pdus(),
 	   to distinguish between packets to be reassembled and a
 	   transfer stream.
 
 Pass the correct value to tcp_dissect_pdus() as the header length.

Directory: /trunk/epan/dissectors/
  Changes    Path                 Action
  +72 -74    packet-gnutella.c    Modified
  +9 -1      packet-gnutella.h    Modified



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