mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 03:28:19 +00:00
Update NEWS with more info about runtime options
This commit is contained in:
parent
82862d8114
commit
be9d4556f6
1 changed files with 9 additions and 0 deletions
9
NEWS
9
NEWS
|
@ -120,6 +120,15 @@ New Functionality
|
||||||
not send the change to any other nodes, so Config::set_value should
|
not send the change to any other nodes, so Config::set_value should
|
||||||
typically be used instead of Option::set.
|
typically be used instead of Option::set.
|
||||||
|
|
||||||
|
Various redef-able constants in the standard Bro scripts have
|
||||||
|
been converted to runtime options. This change will not affect any
|
||||||
|
user scripts because the initial value of runtime options can be
|
||||||
|
redefined with a "redef" declaration. Example:
|
||||||
|
|
||||||
|
option testvar = "old value";
|
||||||
|
|
||||||
|
redef testvar = "new value";
|
||||||
|
|
||||||
It is possible to "subscribe" to an option through
|
It is possible to "subscribe" to an option through
|
||||||
Option::set_change_handler, which will trigger a handler callback
|
Option::set_change_handler, which will trigger a handler callback
|
||||||
when an option changes. Change handlers can optionally modify
|
when an option changes. Change handlers can optionally modify
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue