From: Tom Peters (thopeter) Date: Wed, 19 Jan 2022 00:00:43 +0000 (+0000) Subject: Pull request #3236: BUG #722376 http_inspect: 0.9 request lines not forwarded to... X-Git-Tag: 3.1.21.0~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d16d91c8e6e74d5971a0f1f64f6f7398915aa464;p=thirdparty%2Fsnort3.git Pull request #3236: BUG #722376 http_inspect: 0.9 request lines not forwarded to detection Merge in SNORT/snort3 from ~MDAGON/snort3:zero_9 to master Squashed commit of the following: commit cfaa855d126e0038f390642f1f255fec8da2f327 Author: Maya Dagon Date: Thu Jan 13 14:32:52 2022 -0500 http_inspect: forward 0.9 request lines to detection --- diff --git a/src/service_inspectors/http_inspect/http_msg_request.h b/src/service_inspectors/http_inspect/http_msg_request.h index e35d1a09e..d09d5d128 100644 --- a/src/service_inspectors/http_inspect/http_msg_request.h +++ b/src/service_inspectors/http_inspect/http_msg_request.h @@ -39,9 +39,14 @@ public: HttpCommon::SourceId source_id_, bool buf_owner, snort::Flow* flow_, const HttpParaList* params_); ~HttpMsgRequest() override; + bool detection_required() const override + { return version_id == HttpEnums::VERS_0_9; } + HttpEnums::InspectSection get_inspection_section() const override + { return HttpEnums::IS_HEADER; } void gen_events() override; void update_flow() override; void publish() override; + const Field& get_method() { return method; } const Field& get_uri(); const Field& get_uri_norm_classic();