fast-log: restore logging of Drop/wDrop

Restore drop print logic. Probably got lost in large refactoring round
introducing log APIs.

Bug #1138.
pull/894/head
Victor Julien 12 years ago
parent 1af39d55cf
commit 70efc66e33

@ -115,8 +115,8 @@ int AlertFastLogger(ThreadVars *tv, void *data, const Packet *p)
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));
@ -145,6 +145,13 @@ int AlertFastLogger(ThreadVars *tv, void *data, const Packet *p)
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) {

Loading…
Cancel
Save