]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Merge pull request #1377 in SNORT/snort3 from offload_fp_local to master
authorMichael Altizer (mialtize) <mialtize@cisco.com>
Fri, 12 Oct 2018 14:58:25 +0000 (10:58 -0400)
committerMichael Altizer (mialtize) <mialtize@cisco.com>
Fri, 12 Oct 2018 14:58:25 +0000 (10:58 -0400)
Squashed commit of the following:

commit fccd0e722d8087fe57c91e04272793b1aa3f67f8
Author: Carter Waxman <cwaxman@cisco.com>
Date:   Fri Sep 28 15:06:06 2018 -0400

    fp_detect: onload before running local to ensure event ordering

src/detection/fp_detect.cc

index 4b1486e5426f66195a186c651f9cd5e7272b6991..41209b87f1310f32c63d04fcc7ba0d05fcd4136f 100644 (file)
@@ -1283,6 +1283,11 @@ void fp_local(Packet* p)
     stash->enable_process();
     stash->init();
     init_match_info(c->otnx);
+
+    // FIXIT-L set up a dependency chain between contexts and "pause" here
+    if ( p->flow )
+        DetectionEngine::onload(p->flow);
+
     fpEvalPacket(p);
     fpFinalSelectEvent(c->otnx, p);
 }