]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
set default id and priority based on rule class
authorrcombs <rcombs@sq18.sfeng.sourcefire.com>
Wed, 29 Oct 2014 11:42:25 +0000 (07:42 -0400)
committerrcombs <rcombs@sq18.sfeng.sourcefire.com>
Wed, 29 Oct 2014 11:42:25 +0000 (07:42 -0400)
ChangeLog
src/ips_options/ips_classtype.cc

index 0037b2c9950a8d5186acf5ca131c910faa8baf65..ccd2c1f5ed75db28229a0bfb82d39a60fb6d5849 100644 (file)
--- 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
index 00880247930efef551c769546ff65eb5e5cbcf16..48272c5bec6a05760aaa52dc063226056b1b804f 100644 (file)
@@ -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;
 }