inline: fix unified2 alert direction selection

remotes/origin/master
Victor Julien 14 years ago
parent 87ec969b3d
commit 2a4992e7a0

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

Loading…
Cancel
Save