Merge remote-tracking branch 'origin/topic/timw/1991-tunnel-swapping'

* origin/topic/timw/1991-tunnel-swapping:
  GH-1991: Add option to limit the number of tunnel_changed events

(cherry picked from commit 0ae485f715)
This commit is contained in:
Tim Wojtulewicz 2022-06-22 09:40:05 -07:00
parent 2f4c066199
commit acfbb919fb
5 changed files with 21 additions and 1 deletions

View file

@ -403,6 +403,13 @@ export {
## cross-references the *uid* field of :zeek:type:`connection`.
uid: string &optional;
} &log;
## The number of tunnel_changed events that will be sent for a connection. Once this
## limit is hit, no more of those events will be sent to avoid a large number of events
## being sent for connections that regularly swap. This can be set to zero to disable
## this limiting.
const max_changes_per_connection: count = 5 &redef;
} # end export
module GLOBAL;