From 2a4992e7a0a5db9ee1a7b8e11105ea5574993475 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Thu, 28 Jun 2012 23:19:05 +0200 Subject: [PATCH] inline: fix unified2 alert direction selection --- src/alert-unified2-alert.c | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/src/alert-unified2-alert.c b/src/alert-unified2-alert.c index 5e616cb032..39671e5d0f 100644 --- a/src/alert-unified2-alert.c +++ b/src/alert-unified2-alert.c @@ -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 */