Review/fix/change file reassembly functionality.

- Re-arrange how some fa_file fields (e.g. source, connection info, mime
  type) get updated/set for consistency.

- Add more robust mechanisms for flushing the reassembly buffer.
  The goal being to report all gaps and deliveries to file analyzers
  regardless of the state of the reassembly buffer at the time it has to
  be flushed.
This commit is contained in:
Jon Siwek 2014-12-16 14:05:15 -06:00
parent edaf7edc11
commit cbbe7b52dc
26 changed files with 370 additions and 238 deletions

View file

@ -17,8 +17,11 @@ FILE_NEW
file #1, 0, 0
FILE_OVER_NEW_CONNECTION
FILE_TIMEOUT
FILE_GAP
FILE_STATE_REMOVE
file #1, 0, 0
file #1, 206024, 816896
[orig_h=192.168.72.14, orig_p=3257/tcp, resp_h=65.54.95.14, resp_p=80/tcp]
FILE_BOF_BUFFER
\x1b\xb8=\xb1\xff^PU^P\xce\xc3^
total bytes: 1022920
source: HTTP