Setting the ACTION_DROP flag can be done via PACKET_DROP instead
of using PACKET_UPDATE_ACTION.
if (p->flow->flags & FLOW_ACTION_DROP)
{
alert_flags = PACKET_ALERT_FLAG_DROP_FLOW;
- PACKET_UPDATE_ACTION(p, ACTION_DROP);
+ PACKET_DROP(p);
}
}
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);
}
if (StreamTcpInlineMode()) {
- PACKET_UPDATE_ACTION(p, ACTION_DROP);
+ PACKET_DROP(p);
}
SCReturnInt(-1);
}