aboutsummaryrefslogtreecommitdiffstats
path: root/capture.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-10-30 10:04:35 +0000
committerGuy Harris <guy@alum.mit.edu>2004-10-30 10:04:35 +0000
commit1f02604dcd21efea54f3d90087b90fcd25d9cd62 (patch)
treef73b8b80d7e335e4e10fd632bcb18cd203d963b7 /capture.c
parent6d9c6770bb86b8fba48578f0d87cb1a74b6604ed (diff)
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. svn path=/trunk/; revision=12444
Diffstat (limited to 'capture.c')
0 files changed, 0 insertions, 0 deletions