mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 01:28:20 +00:00
Merge remote-tracking branch 'origin/topic/gregor/script-polishing'
* origin/topic/gregor/script-polishing: Tune when c$conn is set. Set c$conn (for logging) in new_connection() event. (Semiautomatically) convert the comments in bare-init.bro into autodoc ones. Add ConnSize_Analyzer's fields to conn.log SSH base scripts: make sure ConnSizeAnalyzer variables are available before using them. Make reference to the other script a link
This commit is contained in:
commit
562abfb0d1
6 changed files with 462 additions and 405 deletions
|
@ -94,6 +94,11 @@ function check_ssh_connection(c: connection, done: bool)
|
|||
if ( c$ssh$done )
|
||||
return;
|
||||
|
||||
# Make sure conn_size_analyzer is active by checking
|
||||
# resp$num_bytes_ip
|
||||
if ( !c$resp?$num_bytes_ip )
|
||||
return;
|
||||
|
||||
# If this is still a live connection and the byte count has not
|
||||
# crossed the threshold, just return and let the resheduled check happen later.
|
||||
if ( !done && c$resp$num_bytes_ip < authentication_data_size )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue