"http2",
Http2Api::http2_init,
Http2Api::http2_term,
- Http2Api::http2_tinit,
- Http2Api::http2_tterm,
+ nullptr,
+ nullptr,
Http2Api::http2_ctor,
Http2Api::http2_dtor,
nullptr,
static void http2_term() { }
static snort::Inspector* http2_ctor(snort::Module* mod);
static void http2_dtor(snort::Inspector* p) { delete p; }
- static void http2_tinit() { }
- static void http2_tterm() { }
};
#endif
"http",
HttpApi::http_init,
HttpApi::http_term,
- HttpApi::http_tinit,
- HttpApi::http_tterm,
+ nullptr,
+ nullptr,
HttpApi::http_ctor,
HttpApi::http_dtor,
nullptr,
static void http_term() { }
static snort::Inspector* http_ctor(snort::Module* mod);
static void http_dtor(snort::Inspector* p) { delete p; }
- static void http_tinit() { }
- static void http_tterm() { }
};
#endif
void HttpInspect::clear(Packet* p)
{
+ Profile profile(HttpModule::get_profile_stats());
+
HttpFlowData* const session_data =
(HttpFlowData*)p->flow->get_flow_data(HttpFlowData::inspector_id);
#include "file_api/file_flows.h"
+#include "http_module.h"
#include "http_msg_request.h"
#include "http_stream_splitter.h"
#include "http_test_input.h"
bool HttpStreamSplitter::finish(snort::Flow* flow)
{
+ snort::Profile profile(HttpModule::get_profile_stats());
+
HttpFlowData* session_data = (HttpFlowData*)flow->get_flow_data(HttpFlowData::inspector_id);
// FIXIT-M - this assert has been changed to check for null session data and return false if so
// due to lack of reliable feedback to stream that scan has been called...if that is
#include "protocols/packet.h"
#include "http_inspect.h"
+#include "http_module.h"
#include "http_stream_splitter.h"
#include "http_test_input.h"
const snort::StreamBuffer HttpStreamSplitter::reassemble(snort::Flow* flow, unsigned total, unsigned,
const uint8_t* data, unsigned len, uint32_t flags, unsigned& copied)
{
+ snort::Profile profile(HttpModule::get_profile_stats());
+
snort::StreamBuffer http_buf { nullptr, 0 };
copied = len;
#endif
#include "http_inspect.h"
+#include "http_module.h"
#include "http_stream_splitter.h"
#include "http_test_input.h"
StreamSplitter::Status HttpStreamSplitter::scan(Flow* flow, const uint8_t* data, uint32_t length,
uint32_t, uint32_t* flush_offset)
{
+ snort::Profile profile(HttpModule::get_profile_stats());
+
assert(length <= MAX_OCTETS);
// This is the session state information we share with HttpInspect and store with stream. A