mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 15:18:20 +00:00
Use bools instead of single-bit bitfields in Ident and TCP protocol analyzers
This commit is contained in:
parent
9d38419e8a
commit
0f8f53808e
8 changed files with 47 additions and 48 deletions
|
@ -28,9 +28,9 @@ TCP_Reassembler::TCP_Reassembler(analyzer::Analyzer* arg_dst_analyzer,
|
|||
endp = arg_endp;
|
||||
had_gap = false;
|
||||
record_contents_file = 0;
|
||||
deliver_tcp_contents = 0;
|
||||
skip_deliveries = 0;
|
||||
did_EOF = 0;
|
||||
deliver_tcp_contents = false;
|
||||
skip_deliveries = false;
|
||||
did_EOF = false;
|
||||
seq_to_skip = 0;
|
||||
in_delivery = false;
|
||||
|
||||
|
@ -49,7 +49,7 @@ TCP_Reassembler::TCP_Reassembler(analyzer::Analyzer* arg_dst_analyzer,
|
|||
if ( (IsOrig() && tcp_content_deliver_all_orig) ||
|
||||
(! IsOrig() && tcp_content_deliver_all_resp) ||
|
||||
(result && result->AsBool()) )
|
||||
deliver_tcp_contents = 1;
|
||||
deliver_tcp_contents = true;
|
||||
|
||||
Unref(dst_port_val);
|
||||
}
|
||||
|
@ -221,7 +221,7 @@ void TCP_Reassembler::Undelivered(uint64_t up_to_seq)
|
|||
// the SYN packet carries data.
|
||||
//
|
||||
// Skip the undelivered part without reporting to the endpoint.
|
||||
skip_deliveries = 1;
|
||||
skip_deliveries = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -517,7 +517,7 @@ int TCP_Reassembler::DataSent(double t, uint64_t seq, int len,
|
|||
{
|
||||
tcp_analyzer->Weird("above_hole_data_without_any_acks");
|
||||
ClearBlocks();
|
||||
skip_deliveries = 1;
|
||||
skip_deliveries = true;
|
||||
}
|
||||
|
||||
if ( tcp_excessive_data_without_further_acks &&
|
||||
|
@ -525,7 +525,7 @@ int TCP_Reassembler::DataSent(double t, uint64_t seq, int len,
|
|||
{
|
||||
tcp_analyzer->Weird("excessive_data_without_further_acks");
|
||||
ClearBlocks();
|
||||
skip_deliveries = 1;
|
||||
skip_deliveries = true;
|
||||
}
|
||||
|
||||
return 1;
|
||||
|
@ -592,7 +592,7 @@ void TCP_Reassembler::CheckEOF()
|
|||
network_time, endp->IsOrig());
|
||||
}
|
||||
|
||||
did_EOF = 1;
|
||||
did_EOF = true;
|
||||
tcp_analyzer->EndpointEOF(this);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue