Hello,
pls find attached a patch file for reassemble.c/h & packet-tcp.c . The patch
affects mainly these two funcs.
*fragment_add() defragments some data and once it's finished, the process
can be continued by seting the FD_PARTIAL_REASSEMBLY flag. The code using
fragment_add() should access this flag via
fragment_set_partial_reassembly(). I tried to preserve the four error flags
present in the function. The ones I think must be altered are
FD_TOOLONGFRAGMENT and FD_MULTIPLETAILS.
*desegment_tcp() should be able now to handle extension requests from
subdissectors, so now the subdissector can ask first for a desegment_offset
and desegment_len. Once this request is completed, the subdissector can ask
desegment_tcp to continue the process, using again desegment_offset and
desegment_len vars. This can be repeated n times.
And thanks to Ronnie Sahlberg for the help.
Ricardo.
_________________________________________________________________
Join the world�s largest e-mail service with MSN Hotmail.
http://www.hotmail.com
Attachment:
patch.reass.gz
Description: Binary data