"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/service_inspectors/http2_inspect/http2_headers_frame_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.

http2_headers_frame_header.cc  (snort3-3.1.36.0):http2_headers_frame_header.cc  (snort3-3.1.38.0)
skipping to change at line 67 skipping to change at line 67
stream->set_state(source_id, STREAM_ERROR); stream->set_state(source_id, STREAM_ERROR);
} }
} }
} }
bool Http2HeadersFrameHeader::valid_sequence(Http2Enums::StreamState state) bool Http2HeadersFrameHeader::valid_sequence(Http2Enums::StreamState state)
{ {
return (state == Http2Enums::STREAM_EXPECT_HEADERS); return (state == Http2Enums::STREAM_EXPECT_HEADERS);
} }
void Http2HeadersFrameHeader::analyze_http1() void Http2HeadersFrameHeader::analyze_http1(Packet* p)
{ {
HttpFlowData* http_flow; HttpFlowData* http_flow;
if (!process_start_line(http_flow, source_id)) if (!process_start_line(http_flow, source_id, p))
return; return;
// if END_STREAM flag set on headers, tell http_inspect not to expect a mess age body // if END_STREAM flag set on headers, tell http_inspect not to expect a mess age body
if (get_flags() & FLAG_END_STREAM) if (get_flags() & FLAG_END_STREAM)
stream->get_hi_flow_data()->finish_h2_body(source_id, H2_BODY_NO_BODY, f alse); stream->get_hi_flow_data()->finish_h2_body(source_id, H2_BODY_NO_BODY, f alse);
process_decoded_headers(http_flow, source_id); process_decoded_headers(http_flow, source_id, p);
} }
void Http2HeadersFrameHeader::update_stream_state() void Http2HeadersFrameHeader::update_stream_state()
{ {
if (stream->get_state(source_id) == STREAM_ERROR) if (stream->get_state(source_id) == STREAM_ERROR)
return; return;
if (get_flags() & FLAG_END_STREAM) if (get_flags() & FLAG_END_STREAM)
stream->set_state(source_id, STREAM_COMPLETE); stream->set_state(source_id, STREAM_COMPLETE);
else else
stream->set_state(source_id, STREAM_EXPECT_BODY); stream->set_state(source_id, STREAM_EXPECT_BODY);
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

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