Merge in SNORT/snort3 from ~GSAMBYAL/snort3:CSCwc93243 to master
Squashed commit of the following:
commit
223175e54504057891c46a051a4d79c8ae518c2f
Author: Garima Sambyal <gsambyal@cisco.com>
Date: Mon Oct 9 05:20:43 2023 +0000
detection: setting flag for flows with affected logging due to event filter
*/
IpsAction * act = get_ips_policy()->action[action];
act->exec(p);
+ if ( p->active && p->flow &&
+ (p->active->get_action() >= Active::ACT_DROP) )
+ {
+ p->flow->flags.ips_event_suppressed = true;
+ }
fpLogOther(p, rtn, otn, action);
pc.event_limit++;
return 1;
bool svc_event_generated : 1; // Set if FLOW_NO_SERVICE_EVENT was generated for this flow
bool retry_queued : 1; // Set if a packet was queued for retry for this flow
bool ha_flow : 1; // Set if this flow was created by an HA message
+ bool ips_event_suppressed : 1; // Set if event filters have suppressed ips event
} flags = {};
FlowState flow_state = FlowState::SETUP;