"Fossies" - the Fresh Open Source Software Archive  

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

appid_http_session_test.cc  (snort3-3.1.28.0):appid_http_session_test.cc  (snort3-3.1.29.0)
skipping to change at line 114 skipping to change at line 114
} }
static AppIdConfig stub_config; static AppIdConfig stub_config;
static AppIdContext stub_ctxt(stub_config); static AppIdContext stub_ctxt(stub_config);
static OdpContext stub_odp_ctxt(stub_config, nullptr); static OdpContext stub_odp_ctxt(stub_config, nullptr);
OdpContext* AppIdContext::odp_ctxt = &stub_odp_ctxt; OdpContext* AppIdContext::odp_ctxt = &stub_odp_ctxt;
static Flow flow; static Flow flow;
// AppIdSession mock functions // AppIdSession mock functions
AppIdSession::AppIdSession(IpProtocol, const SfIp* ip, uint16_t, AppIdInspector& inspector, AppIdSession::AppIdSession(IpProtocol, const SfIp* ip, uint16_t, AppIdInspector& inspector,
OdpContext&, uint16_t) : FlowData(inspector_id, &inspector), config(stub_con fig), OdpContext&, uint32_t) : FlowData(inspector_id, &inspector), config(stub_con fig),
api(*(new AppIdSessionApi(this, *ip))), odp_ctxt(stub_odp_ctxt) api(*(new AppIdSessionApi(this, *ip))), odp_ctxt(stub_odp_ctxt)
{} {}
AppIdSession::~AppIdSession() AppIdSession::~AppIdSession()
{ {
delete &api; delete &api;
} }
void AppIdSession::set_client_appid_data(AppId, AppidChangeBits&, char*) void AppIdSession::set_client_appid_data(AppId, AppidChangeBits&, char*)
{ {
skipping to change at line 152 skipping to change at line 152
bool AppIdSession::is_tp_appid_available() const bool AppIdSession::is_tp_appid_available() const
{ {
return true; return true;
} }
void AppIdModule::reset_stats() {} void AppIdModule::reset_stats() {}
// AppIdDebug mock functions // AppIdDebug mock functions
void AppIdDebug::activate(const uint32_t*, const uint32_t*, uint16_t, void AppIdDebug::activate(const uint32_t*, const uint32_t*, uint16_t,
uint16_t, IpProtocol, const int, uint16_t, const AppIdSession*, bool, uint16_t, IpProtocol, const int, uint32_t, const AppIdSession*, bool,
int16_t, int16_t, bool) int16_t, int16_t, bool)
{ {
} }
void AppIdDebug::set_constraints(const char*, const AppIdDebugSessionConstraints *) void AppIdDebug::set_constraints(const char*, const AppIdDebugSessionConstraints *)
{ {
} }
// Profiler mock functions // Profiler mock functions
void Profiler::register_module(Module*) { } void Profiler::register_module(Module*) { }
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

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