"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/service_inspectors/http2_inspect/http2_headers_frame.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.cc  (snort3-3.1.28.0):http2_headers_frame.cc  (snort3-3.1.29.0)
skipping to change at line 27 skipping to change at line 27
//-------------------------------------------------------------------------- //--------------------------------------------------------------------------
// http2_headers_frame.cc author Katura Harvey <katharve@cisco.com> // http2_headers_frame.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.h" #include "http2_headers_frame.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_start_line.h" #include "http2_start_line.h"
#include "http2_stream.h" #include "http2_stream.h"
skipping to change at line 155 skipping to change at line 154
// http_inspect eval() of headers // http_inspect eval() of headers
{ {
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;
dummy_pkt.xtradata_mask = 0; dummy_pkt.xtradata_mask = 0;
session_data->hi->eval(&dummy_pkt); session_data->hi->eval(&dummy_pkt);
if (http_flow->get_type_expected(hi_source_id) == HttpEnums::SEC_ABORT) if (http_flow->get_type_expected(hi_source_id) == SEC_ABORT)
{ {
assert(session_data->is_processing_partial_header()); assert(session_data->is_processing_partial_header());
stream->set_state(hi_source_id, STREAM_ERROR); stream->set_state(hi_source_id, STREAM_ERROR);
} }
detection_required = dummy_pkt.is_detection_required(); detection_required = dummy_pkt.is_detection_required();
xtradata_mask = dummy_pkt.xtradata_mask; xtradata_mask = dummy_pkt.xtradata_mask;
} }
} }
const Field& Http2HeadersFrame::get_buf(unsigned id) const Field& Http2HeadersFrame::get_buf(unsigned id)
 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)