Convert more redef-able constants to runtime options

This commit is contained in:
Daniel Thayer 2018-08-27 19:38:47 -05:00
parent fd1a23ea66
commit 9bfc01b705
11 changed files with 14 additions and 14 deletions

View file

@ -24,10 +24,10 @@ export {
};
## The default input reader used. Defaults to `READER_ASCII`.
const default_reader = READER_ASCII &redef;
option default_reader = READER_ASCII;
## The default reader mode used. Defaults to `MANUAL`.
const default_mode = MANUAL &redef;
option default_mode = MANUAL;
## Separator between fields.
## Please note that the separator has to be exactly one character long.

View file

@ -7,7 +7,7 @@ module NetControl;
export {
## The default priority that is used when creating rules.
const default_priority: int = +0 &redef;
option default_priority: int = +0;
## The default priority that is used when using the high-level functions to
## push whitelist entries to the backends (:bro:see:`NetControl::whitelist_address` and

View file

@ -53,7 +53,7 @@ export {
## utilizing the *identifier* field in :bro:type:`Notice::Info` records.
## Set this to "0secs" to completely disable automated notice
## suppression.
const default_suppression_interval = 1hrs &redef;
option default_suppression_interval = 1hrs;
## The record type that is used for representing and logging notices.
type Info: record {