Add a URL for Gnutella specs.
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 31 Jan 2005 00:28:02 +0000 (00:28 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 31 Jan 2005 00:28:02 +0000 (00:28 +0000)
commit5e74d6d47459fc15d1bf0fe34eb2aafa37591e48
treef78bd527932c5dc209518e1889312b4c05c9c251
parentf2879f453e1dfdd0ee9efa6410f8a08dacc3e387
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.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13211 f5534014-38df-0310-8fa8-9805f1628bb7
epan/dissectors/packet-gnutella.c
epan/dissectors/packet-gnutella.h