static const int MAX_OCTETS = 63780;
static const int GZIP_BLOCK_SIZE = 2048;
static const int MAX_SECTION_STRETCH = 1460;
-static const int MIN_FILE_BLOCK_SIZE = 1;
static const uint32_t HTTP_GID = 119;
static const int GZIP_WINDOW_BITS = 31;
session_data->detection_status[source_id] = DET_DEACTIVATING;
}
+ const unsigned target_size = (session_data->compression[source_id] == CMP_NONE) ?
+ SnortConfig::get_conf()->max_pdu : GZIP_BLOCK_SIZE;
+
if (detect_depth_remaining <= 0)
{
if (file_depth_remaining <= 0)
}
else
{
- // Just for file processing. Split on packet boundaries.
- session_data->section_size_target[source_id] = MIN_FILE_BLOCK_SIZE;
+ // Just for file processing.
+ session_data->section_size_target[source_id] = target_size;
session_data->stretch_section_to_packet[source_id] = true;
}
return;
}
- const unsigned target_size = (session_data->compression[source_id] == CMP_NONE) ?
- SnortConfig::get_conf()->max_pdu : GZIP_BLOCK_SIZE;
-
if (detect_depth_remaining <= target_size)
{
// Go to detection as soon as detect depth is reached