Convert some redef-able constants to runtime options

This commit is contained in:
Daniel Thayer 2018-08-15 10:17:14 -05:00
parent 0e6913fba0
commit dc0904a7f3
20 changed files with 37 additions and 37 deletions

View file

@ -16,7 +16,7 @@ export {
};
## Size of the packet segment to display in the DPD log.
const packet_segment_size: int = 255 &redef;
option packet_segment_size: int = 255;
}

View file

@ -32,7 +32,7 @@ export {
## A/V engines. Team Cymru returns a percentage to indicate how
## many A/V engines flagged the sample as malicious. This threshold
## allows you to require a minimum detection rate.
const notice_threshold = 10 &redef;
option notice_threshold = 10;
}
function do_mhr_lookup(hash: string, fi: Notice::FileInfo)

View file

@ -19,7 +19,7 @@ export {
## Some software is more interesting when the version changes and this
## is a set of all software that should raise a notice when a different
## version is seen on a host.
const interesting_version_changes: set[string] = { } &redef;
option interesting_version_changes: set[string] = {};
}
event Software::version_change(old: Software::Info, new: Software::Info)