"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/network_inspectors/appid/detector_plugins/test/detector_plugins_mock.h" 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.

detector_plugins_mock.h  (snort3-3.1.28.0):detector_plugins_mock.h  (snort3-3.1.29.0)
skipping to change at line 160 skipping to change at line 160
void AppIdModule::set_trace(const Trace*) const { } void AppIdModule::set_trace(const Trace*) const { }
const TraceOption* AppIdModule::get_trace_options() const { return nullptr; } const TraceOption* AppIdModule::get_trace_options() const { return nullptr; }
// LCOV_EXCL_STOP // LCOV_EXCL_STOP
// Stubs for inspectors // Stubs for inspectors
unsigned AppIdSession::inspector_id = 0; unsigned AppIdSession::inspector_id = 0;
AppIdConfig stub_config; AppIdConfig stub_config;
AppIdContext stub_ctxt(stub_config); AppIdContext stub_ctxt(stub_config);
OdpContext stub_odp_ctxt(stub_config, nullptr); OdpContext stub_odp_ctxt(stub_config, nullptr);
AppIdSession::AppIdSession(IpProtocol, const SfIp* ip, uint16_t, AppIdInspector& inspector, AppIdSession::AppIdSession(IpProtocol, const SfIp* ip, uint16_t, AppIdInspector& inspector,
OdpContext& odpctxt, uint16_t) : snort::FlowData(inspector_id, (snort::Inspe ctor*)&inspector), OdpContext& odpctxt, uint32_t) : snort::FlowData(inspector_id, (snort::Inspe ctor*)&inspector),
config(stub_config), api(*(new AppIdSessionApi(this, *ip))), odp_ctxt(od pctxt) config(stub_config), api(*(new AppIdSessionApi(this, *ip))), odp_ctxt(od pctxt)
{ {
this->set_session_flags(APPID_SESSION_DISCOVER_APP); this->set_session_flags(APPID_SESSION_DISCOVER_APP);
} }
AppIdSession::~AppIdSession() { delete &api; } AppIdSession::~AppIdSession() { delete &api; }
AppIdHttpSession::AppIdHttpSession(AppIdSession& asd, uint32_t http2_stream_id) AppIdHttpSession::AppIdHttpSession(AppIdSession& asd, uint32_t http2_stream_id)
: asd(asd), http2_stream_id(http2_stream_id) : asd(asd), http2_stream_id(http2_stream_id)
{ {
for ( int i = 0; i < NUM_METADATA_FIELDS; i++) for ( int i = 0; i < NUM_METADATA_FIELDS; i++)
meta_data[i] = nullptr; meta_data[i] = nullptr;
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

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