libprelude/master: Fix IDMEF severity to message priority mapping
[email protected] Thu, 3 Dec 2009 12:46:48 +0100 (CET)
| Newsgroups | gmane.comp.security.ids.prelude.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit 3db6454e524636fc7f90b24bc54059caf9eb02a1 Author: Yoann Vandoorselaere <[email protected]> Date: Thu Dec 3 12:39:28 2009 +0100 Fix IDMEF severity to message priority mapping Fix regression introduced in commit 8cbf9e7b, due to informational severity remapping. Message priority will now be correctly assigned depending on the source IDMEF message. ======================================== src/common.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) ======================================== diff --git a/src/common.c b/src/common.c index 38de2ec..47020df 100644 --- a/src/common.c +++ b/src/common.c @@ -508,10 +508,10 @@ prelude_msg_priority_t _idmef_impact_severity_to_msg_priority(idmef_impact_sever { static const prelude_msg_priority_t priority[] = { PRELUDE_MSG_PRIORITY_NONE, /* not bound */ - PRELUDE_MSG_PRIORITY_LOW, /* IDMEF_IMPACT_SEVERITY_LOW -> 1 */ - PRELUDE_MSG_PRIORITY_MID, /* IDMEF_IMPACT_SEVERITY_MEDIUM -> 2 */ - PRELUDE_MSG_PRIORITY_HIGH, /* IDMEF_IMPACT_SEVERITY_HIGH -> 3 */ - PRELUDE_MSG_PRIORITY_LOW /* IDMEF_IMPACT_SEVERITY_INFO -> 4 */ + PRELUDE_MSG_PRIORITY_LOW, /* IDMEF_IMPACT_SEVERITY_INFO -> 1 */ + PRELUDE_MSG_PRIORITY_LOW /* IDMEF_IMPACT_SEVERITY_LOW -> 2 */ + PRELUDE_MSG_PRIORITY_MID, /* IDMEF_IMPACT_SEVERITY_MEDIUM -> 3 */ + PRELUDE_MSG_PRIORITY_HIGH, /* IDMEF_IMPACT_SEVERITY_HIGH -> 4 */ }; if ( severity >= (sizeof(priority) / sizeof(*priority)) ) _______________________________________________ Prelude-cvslog site list [email protected] http://lists.prelude-ids.org/mailman/listinfo/prelude-cvslog