Flow alerts code cleanup

This commit is contained in:
Alfredo Cardigliano 2024-12-06 10:52:35 +01:00
parent 538e10770f
commit 08a8a7e6a6
46 changed files with 203 additions and 252 deletions

View file

@ -36,6 +36,8 @@ class ModbusUnexpectedFunctionCodeAlert : public FlowAlert {
}
static u_int8_t getDefaultScore() { return SCORE_LEVEL_ERROR; };
inline u_int8_t get_function_code() { return function_code; };
ModbusUnexpectedFunctionCodeAlert(FlowCheck* c, Flow* f, u_int8_t _function_code) : FlowAlert(c, f) {
function_code = _function_code;
};