In the EVE stream payload logging the IPS path logged the wrong dir.
Both IDS and IPS can take the same path as the detection engine
inspects in the same direction in both cases, so the alert is also
generated in the same direction.
Bug #1684
MemBufferReset(payload);
- if (!EngineModeIsIPS()) {
- 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;
}
StreamSegmentForEach((const Packet *)p, flag,