Use PACKET_* macro instead of UPDATE

Setting the ACTION_DROP flag can be done via PACKET_DROP instead
of using PACKET_UPDATE_ACTION.
pull/402/merge
Eric Leblond 12 years ago committed by Victor Julien
parent c0c59fbd17
commit 4521de2dfd

@ -1342,7 +1342,7 @@ int SigMatchSignatures(ThreadVars *th_v, DetectEngineCtx *de_ctx, DetectEngineTh
if (p->flow->flags & FLOW_ACTION_DROP)
{
alert_flags = PACKET_ALERT_FLAG_DROP_FLOW;
PACKET_UPDATE_ACTION(p, ACTION_DROP);
PACKET_DROP(p);
}
}

@ -4165,7 +4165,7 @@ static int StreamTcpPacket (ThreadVars *tv, Packet *p, StreamTcpThread *stt,
FlowSetNoPacketInspectionFlag(p->flow);
DecodeSetNoPacketInspectionFlag(p);
FlowSetSessionNoApplayerInspectionFlag(p->flow);
PACKET_UPDATE_ACTION(p, ACTION_DROP);
PACKET_DROP(p);
/* return the segments to the pool */
StreamTcpSessionPktFree(p);
SCReturnInt(0);
@ -4377,7 +4377,7 @@ error:
}
if (StreamTcpInlineMode()) {
PACKET_UPDATE_ACTION(p, ACTION_DROP);
PACKET_DROP(p);
}
SCReturnInt(-1);
}

Loading…
Cancel
Save