From: rcombs Date: Wed, 29 Oct 2014 11:42:25 +0000 (-0400) Subject: set default id and priority based on rule class X-Git-Tag: 3.0.0-233~1311 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11e35dc6ed7b1dff31e77bbd735fb1482dc38136;p=thirdparty%2Fsnort3.git set default id and priority based on rule class --- diff --git a/ChangeLog b/ChangeLog index 0037b2c99..ccd2c1f5e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -41,6 +41,7 @@ -- added REG_TEST support for -N (ignored) and -A console (alert_fast) -- tweaked alert_fast whitespace -- fixed stream is-paf? bug +-- set default id and priority based on class 125 -- discovered can't catch exceptions thrown from Lua to C++; need to diff --git a/src/ips_options/ips_classtype.cc b/src/ips_options/ips_classtype.cc index 008802479..48272c5be 100644 --- a/src/ips_options/ips_classtype.cc +++ b/src/ips_options/ips_classtype.cc @@ -89,6 +89,8 @@ static IpsOption* classtype_ctor(Module* p, OptTreeNode* otn) { ClassTypeModule* m = (ClassTypeModule*)p; otn->sigInfo.classType = m->type; + otn->sigInfo.class_id = m->type->id; + otn->sigInfo.priority = m->type->priority; return nullptr; }