My 11th 2023 update

This commit is contained in:
Ned Wright
2023-05-11 18:54:44 +00:00
parent 240f58217a
commit 29bd82d125
92 changed files with 9301 additions and 135 deletions

View File

@@ -0,0 +1,20 @@
#include "ips_metric.h"
void
IPSSignatureSubTypes::IPSMetric::upon(const MatchEvent &event)
{
switch (event.getAction()) {
case SignatureAction::PREVENT: {
prevented.report(1);
break;
}
case SignatureAction::DETECT: {
detected.report(1);
break;
}
case SignatureAction::IGNORE: {
ignored.report(1);
break;
}
}
}