Merge in SNORT/snort3 from ~DAVMCPHE/snort3:deprecate_reassemble_async to master
Squashed commit of the following:
commit
18400e7d9fda158c3fc59d73060312b70795f93f
Author: davis mcpherson <davmcphe@cisco.com>
Date: Tue May 6 08:29:46 2025 -0400
stream_tcp: deprecate the reassemble_async configuration option
commit
a5a8fe2fb28ee6cc33391f1453b5599c3e0928e0
Author: davis mcpherson <davmcphe@cisco.com>
Date: Mon May 5 23:18:17 2025 -0400
snort2lua: add include for cstdint to provide standard c++ integer types
else if ( v.is("reassemble_async") )
{
- if ( v.get_bool() )
- config->flags &= ~STREAM_CONFIG_NO_ASYNC_REASSEMBLY;
- else
- config->flags |= STREAM_CONFIG_NO_ASYNC_REASSEMBLY;
+ // this option is deprecated, reassembly on asymmetric connections
+ // is always enabled
}
else if ( v.is("require_3whs") )
bool TcpSession::filter_packet_for_reassembly(TcpSegmentDescriptor& tsd, TcpStreamTracker* listener)
{
- if ( tsd.are_packet_flags_set(PKT_IGNORE)
- or listener->get_flush_policy() == STREAM_FLPOLICY_IGNORE
- or ( ( tcp_config->flags & STREAM_CONFIG_NO_ASYNC_REASSEMBLY ) && !flow->two_way_traffic() ) )
+ if ( tsd.are_packet_flags_set(PKT_IGNORE) or listener->get_flush_policy() == STREAM_FLPOLICY_IGNORE )
return false;
return !check_reassembly_queue_thresholds(tsd, listener);
str += std::to_string(asymmetric_ids_flush_threshold);
str += " }";
ConfigLogger::log_value("asymmetric_ids", str.c_str());
- ConfigLogger::log_flag("reassemble_async", !(flags & STREAM_CONFIG_NO_ASYNC_REASSEMBLY));
+ ConfigLogger::log_value("reassemble_async", "deprecated, has no effect");
ConfigLogger::log_value("session_timeout", session_timeout);
str = "{ count = ";
#include "time/packet_time.h"
#define STREAM_CONFIG_SHOW_PACKETS 0x00000001
-#define STREAM_CONFIG_NO_ASYNC_REASSEMBLY 0x00000002
-#define STREAM_CONFIG_NO_REASSEMBLY 0x00000004
+#define STREAM_CONFIG_NO_REASSEMBLY 0x00000002
#define STREAM_DEFAULT_SSN_TIMEOUT 30