"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/service_inspectors/http2_inspect/http2_headers_frame_with_startline.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_with_startline.cc  (snort3-3.1.28.0):http2_headers_frame_with_startline.cc  (snort3-3.1.29.0)
skipping to change at line 27 skipping to change at line 27
//-------------------------------------------------------------------------- //--------------------------------------------------------------------------
// http2_headers_frame_with_startline.cc author Katura Harvey <katharve@cisco.co m> // http2_headers_frame_with_startline.cc author Katura Harvey <katharve@cisco.co m>
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif #endif
#include "http2_headers_frame_with_startline.h" #include "http2_headers_frame_with_startline.h"
#include "protocols/packet.h" #include "protocols/packet.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 "service_inspectors/http_inspect/http_inspect.h" #include "service_inspectors/http_inspect/http_inspect.h"
#include "service_inspectors/http_inspect/http_stream_splitter.h" #include "service_inspectors/http_inspect/http_stream_splitter.h"
#include "http2_dummy_packet.h" #include "http2_dummy_packet.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_module.h" #include "http2_module.h"
#include "http2_request_line.h" #include "http2_request_line.h"
skipping to change at line 93 skipping to change at line 92
http_flow = stream->get_hi_flow_data(); http_flow = stream->get_hi_flow_data();
assert(http_flow); assert(http_flow);
// http_inspect eval() and clear() of start line // http_inspect eval() and clear() of start line
{ {
Http2DummyPacket dummy_pkt; Http2DummyPacket dummy_pkt;
dummy_pkt.flow = session_data->flow; dummy_pkt.flow = session_data->flow;
dummy_pkt.packet_flags = (hi_source_id == SRC_CLIENT) ? PKT_FROM_CLIENT : PKT_FROM_SERVER; dummy_pkt.packet_flags = (hi_source_id == SRC_CLIENT) ? PKT_FROM_CLIENT : PKT_FROM_SERVER;
dummy_pkt.dsize = stream_buf.length; dummy_pkt.dsize = stream_buf.length;
dummy_pkt.data = stream_buf.data; dummy_pkt.data = stream_buf.data;
session_data->hi->eval(&dummy_pkt); session_data->hi->eval(&dummy_pkt);
if (http_flow->get_type_expected(hi_source_id) != HttpEnums::SEC_HEADER) if (http_flow->get_type_expected(hi_source_id) != SEC_HEADER)
{ {
stream->set_state(hi_source_id, STREAM_ERROR); stream->set_state(hi_source_id, STREAM_ERROR);
return false; return false;
} }
session_data->hi->clear(&dummy_pkt); session_data->hi->clear(&dummy_pkt);
} }
return true; return true;
} }
// If we are not processing a truncated headers frame or we have seen a non-pseu doheader, we know // If we are not processing a truncated headers frame or we have seen a non-pseu doheader, we know
 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)