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

@ -337,7 +337,7 @@ event connection_reused(c: connection) &priority=5
c$ftp_data_reuse = T;
}
event successful_connection_remove(c: connection) &priority=-5
event connection_state_remove(c: connection) &priority=-5
{
if ( c$ftp_data_reuse ) return;
if ( [c$id$resp_h, c$id$resp_p] in ftp_data_expected )
@ -350,7 +350,7 @@ event successful_connection_remove(c: connection) &priority=-5
}
# Use remove event to cover connections terminated by RST.
event successful_connection_remove(c: connection) &priority=-5
event connection_state_remove(c: connection) &priority=-5
{
if ( ! c?$ftp ) return;