"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/service_inspectors/http_inspect/http_msg_header.cc" between
snort3-3.1.36.0.tar.gz and snort3-3.1.38.0.tar.gz

About: Snort 3 is a network intrusion prevention and detection system (IDS/IPS) combining the benefits of signature, protocol and anomaly-based inspection.

http_msg_header.cc  (snort3-3.1.36.0):http_msg_header.cc  (snort3-3.1.38.0)
skipping to change at line 456 skipping to change at line 456
// Common activities of preparing for upcoming body // Common activities of preparing for upcoming body
void HttpMsgHeader::prepare_body() void HttpMsgHeader::prepare_body()
{ {
session_data->body_octets[source_id] = 0; session_data->body_octets[source_id] = 0;
setup_mime(); setup_mime();
if (!session_data->mime_state[source_id]) if (!session_data->mime_state[source_id])
{ {
const int64_t& depth = (source_id == SRC_CLIENT) ? params->request_depth : const int64_t& depth = (source_id == SRC_CLIENT) ? params->request_depth :
params->response_depth; params->response_depth;
session_data->detect_depth_remaining[source_id] = (depth != -1) ? depth : INT64_MAX; session_data->detect_depth_remaining[source_id] = (depth != -1) ? depth : INT64_MAX;
params->js_norm_param.js_norm->set_detection_depth(session_data->detect_ depth_remaining[source_id]);
} }
else else
{ {
// File and decode depths are per attachment, so if either is greater th an 0 we inspect the // File and decode depths are per attachment, so if either is greater th an 0 we inspect the
// full message body. Currently the decode depths are not configurable f or http_inspect so // full message body. Currently the decode depths are not configurable f or http_inspect so
// are always the default of unlimited, meaning for MIME we always inspe ct the full message // are always the default of unlimited, meaning for MIME we always inspe ct the full message
// body // body
session_data->detect_depth_remaining[source_id] = INT64_MAX; session_data->detect_depth_remaining[source_id] = INT64_MAX;
} }
if ((source_id == SRC_CLIENT) and params->publish_request_body and session_d ata->for_http2) if ((source_id == SRC_CLIENT) and params->publish_request_body and session_d ata->for_http2)
 End of changes. 1 change blocks. 
1 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)