"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.28.0.tar.gz and snort3-3.1.29.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.28.0):http2_headers_frame_header.cc  (snort3-3.1.29.0)
skipping to change at line 26 skipping to change at line 26
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
//-------------------------------------------------------------------------- //--------------------------------------------------------------------------
// http2_headers_frame_header.cc author Katura Harvey <katharve@cisco.com> // http2_headers_frame_header.cc author Katura Harvey <katharve@cisco.com>
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif #endif
#include "http2_headers_frame_header.h" #include "http2_headers_frame_header.h"
#include "service_inspectors/http_inspect/http_enum.h"
#include "service_inspectors/http_inspect/http_flow_data.h" #include "service_inspectors/http_inspect/http_flow_data.h"
#include "http2_enum.h" #include "http2_enum.h"
#include "http2_flow_data.h" #include "http2_flow_data.h"
#include "http2_hpack.h" #include "http2_hpack.h"
#include "http2_request_line.h" #include "http2_request_line.h"
#include "http2_status_line.h" #include "http2_status_line.h"
#include "http2_stream.h" #include "http2_stream.h"
using namespace snort; using namespace snort;
skipping to change at line 76 skipping to change at line 75
} }
void Http2HeadersFrameHeader::analyze_http1() void Http2HeadersFrameHeader::analyze_http1()
{ {
HttpFlowData* http_flow; HttpFlowData* http_flow;
if (!process_start_line(http_flow, source_id)) if (!process_start_line(http_flow, source_id))
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, HttpEnums::H2_BODY _NO_BODY, false); 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);
} }
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);
 End of changes. 2 change blocks. 
2 lines changed or deleted 1 lines changed or added

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