Merge in SNORT/snort3 from ~SHINAGPA/snort3:file_event_asymmetric to master
Squashed commit of the following:
commit
4c31d728b366af41c1bd8cb2cbb401cdbc20ba79
Author: Shilpa Nagpal <shinagpa@cisco.com>
Date: Fri Feb 7 18:14:50 2025 +0530
file_api: file event generated for asymmetric flow
void FileContext::log_file_event(Flow* flow, FilePolicyBase* policy)
{
- // wait for file name is set to log file event
- if ( is_file_name_set() )
+ // log file event either when filename is set or if it is a asymmetric flow
+ if ( is_file_name_set() or !flow->two_way_traffic() )
{
bool log_needed = true;