Remove connection_successful and successful_connection_remove events

Related to https://github.com/zeek/zeek/issues/1119
This commit is contained in:
Jon Siwek 2020-09-10 12:06:50 -07:00
parent 2738b157ea
commit 5f435c2644
43 changed files with 364 additions and 533 deletions

View file

@ -1201,12 +1201,6 @@ void TCP_Analyzer::DeliverPacket(int len, const u_char* data, bool is_orig,
// TCP Fast Open).
CheckPIA_FirstPacket(is_orig, ip);
// Note the similar/inverse logic to connection_attempt.
if ( resp->state != TCP_ENDPOINT_INACTIVE ||
(orig->state != TCP_ENDPOINT_SYN_SENT &&
orig->state != TCP_ENDPOINT_SYN_ACK_SENT))
Conn()->SetSuccessful();
if ( DEBUG_tcp_data_sent )
{
DEBUG_MSG("%.6f before DataSent: len=%d caplen=%d skip=%d\n",