From: Victor Julien Date: Thu, 28 Jun 2012 21:19:05 +0000 (+0200) Subject: inline: fix unified2 alert direction selection X-Git-Tag: suricata-1.3rc1~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a4992e7a0a5db9ee1a7b8e11105ea5574993475;p=thirdparty%2Fsuricata.git inline: fix unified2 alert direction selection --- 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 */