From b1c1699699298b91386c9d47cbe7291bcda75e78 Mon Sep 17 00:00:00 2001 From: Thomas Andrejak Date: Mon, 16 May 2016 12:36:29 +0200 Subject: [PATCH] prelude: Add other actions than just ACTION_DROP when packet drop --- src/alert-prelude.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/alert-prelude.c b/src/alert-prelude.c index d480708b7b..fdc50eb21e 100644 --- a/src/alert-prelude.c +++ b/src/alert-prelude.c @@ -221,7 +221,10 @@ static int EventToImpact(const PacketAlert *pa, const Packet *p, idmef_alert_t * idmef_impact_set_severity(impact, severity); - if (PACKET_TEST_ACTION(p, ACTION_DROP)) { + if (PACKET_TEST_ACTION(p, ACTION_DROP) || + PACKET_TEST_ACTION(p, ACTION_REJECT) || + PACKET_TEST_ACTION(p, ACTION_REJECT_DST) || + PACKET_TEST_ACTION(p, ACTION_REJECT_BOTH) ) { idmef_action_t *action; ret = idmef_action_new(&action);