From a9a245e017d26d7c50ebccd900b3cf538ce6d74b Mon Sep 17 00:00:00 2001 From: Jon Siwek Date: Thu, 5 Sep 2013 16:41:51 -0500 Subject: [PATCH] Workaround type ambiguity w/ default record field. --- scripts/base/frameworks/notice/main.bro | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/base/frameworks/notice/main.bro b/scripts/base/frameworks/notice/main.bro index 8479511d43..facd148491 100644 --- a/scripts/base/frameworks/notice/main.bro +++ b/scripts/base/frameworks/notice/main.bro @@ -41,6 +41,8 @@ export { ACTION_ALARM, }; + type ActionSet: set[Notice::Action]; + ## The notice framework is able to do automatic notice supression by ## utilizing the $identifier field in :bro:type:`Notice::Info` records. ## Set this to "0secs" to completely disable automated notice suppression. @@ -113,7 +115,7 @@ export { peer_descr: string &log &optional; ## The actions which have been applied to this notice. - actions: set[Notice::Action] &log &default=set(); + actions: ActionSet &log &default=ActionSet(); ## By adding chunks of text into this element, other scripts can ## expand on notices that are being emailed. The normal way to add text