]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
inline: fix unified2 alert direction selection
authorVictor Julien <victor@inliniac.net>
Thu, 28 Jun 2012 21:19:05 +0000 (23:19 +0200)
committerVictor Julien <victor@inliniac.net>
Thu, 28 Jun 2012 21:19:05 +0000 (23:19 +0200)
src/alert-unified2-alert.c

index 5e616cb0327a6e8cb4b8249543a4716582319dc3..39671e5d0f54798726e911683e7227a0c4047d2b 100644 (file)
@@ -516,20 +516,10 @@ int Unified2PacketTypeAlert (Unified2AlertThread *aun, Packet *p, uint32_t event
         SCLogDebug("logging the state");
         uint8_t flag;
 
-        /* IDS mode reverse the data */
-        /** \todo improve the order selection policy */
-        if (!StreamTcpInlineMode()) {
-            if (p->flowflags & FLOW_PKT_TOSERVER) {
-                flag = FLOW_PKT_TOCLIENT;
-            } else {
-                flag = FLOW_PKT_TOSERVER;
-            }
+        if (p->flowflags & FLOW_PKT_TOSERVER) {
+            flag = FLOW_PKT_TOCLIENT;
         } else {
-            if (p->flowflags & FLOW_PKT_TOSERVER) {
-                flag = FLOW_PKT_TOSERVER;
-            } else {
-                flag = FLOW_PKT_TOCLIENT;
-            }
+            flag = FLOW_PKT_TOSERVER;
         }
 
         /* make event id available to callback */