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

@ -38,6 +38,10 @@ class ModbusInvalidTransitionAlert : public FlowAlert {
}
static u_int8_t getDefaultScore() { return SCORE_LEVEL_NOTICE; };
inline u_int32_t get_packet_epoch() { return packet_epoch; };
inline u_int16_t get_type_i() { return type_i; };
inline u_int8_t get_type_id() { return type_id; };
ModbusInvalidTransitionAlert(FlowCheck *c, Flow *f, struct timeval *_time,
u_int16_t _type_i, u_int8_t _type_id) : FlowAlert(c, f) {
type_i = _type_i;