Restore drop print logic. Probably got lost in large refactoring round
introducing log APIs.
Bug #1138.
AlertFastLogThread *aft = (AlertFastLogThread *)data;
int i;
char timebuf[64];
- char *action = "";
int decoder_event = 0;
+ extern uint8_t engine_mode;
CreateTimeString(&p->ts, timebuf, sizeof(timebuf));
continue;
}
+ char *action = "";
+ if ((pa->action & ACTION_DROP) && IS_ENGINE_MODE_IPS(engine_mode)) {
+ action = "[Drop] ";
+ } else if (pa->action & ACTION_DROP) {
+ action = "[wDrop] ";
+ }
+
char proto[16] = "";
if (likely(decoder_event == 0)) {
if (SCProtoNameValid(IP_GET_IPPROTO(p)) == TRUE) {