mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 02:58:20 +00:00
Adding a weird for when truncated packets lead TCP reassembly to
ignore content. (Private test suite has a bunch of test cases.)
This commit is contained in:
parent
de3932bc42
commit
85b433b13f
3 changed files with 14 additions and 4 deletions
|
@ -201,13 +201,18 @@ int TCP_Endpoint::DataSent(double t, uint64 seq, int len, int caplen,
|
|||
{
|
||||
int status = 0;
|
||||
|
||||
if ( contents_processor && caplen >= len )
|
||||
status = contents_processor->DataSent(t, seq, len, data);
|
||||
if ( contents_processor )
|
||||
{
|
||||
if ( caplen >= len )
|
||||
status = contents_processor->DataSent(t, seq, len, data);
|
||||
else
|
||||
TCP()->Weird("truncated_tcp_payload");
|
||||
}
|
||||
|
||||
if ( caplen <= 0 )
|
||||
return status;
|
||||
|
||||
if ( contents_file && ! contents_processor &&
|
||||
if ( contents_file && ! contents_processor &&
|
||||
seq + len > contents_start_seq )
|
||||
{
|
||||
int64 under_seq = contents_start_seq - seq;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue