]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Pull request #3236: BUG #722376 http_inspect: 0.9 request lines not forwarded to...
authorTom Peters (thopeter) <thopeter@cisco.com>
Wed, 19 Jan 2022 00:00:43 +0000 (00:00 +0000)
committerTom Peters (thopeter) <thopeter@cisco.com>
Wed, 19 Jan 2022 00:00:43 +0000 (00:00 +0000)
Merge in SNORT/snort3 from ~MDAGON/snort3:zero_9 to master

Squashed commit of the following:

commit cfaa855d126e0038f390642f1f255fec8da2f327
Author: Maya Dagon <mdagon@cisco.com>
Date:   Thu Jan 13 14:32:52 2022 -0500

    http_inspect: forward 0.9 request lines to detection

src/service_inspectors/http_inspect/http_msg_request.h

index e35d1a09e361ad9dbb422565dbddc646e71d7291..d09d5d1285fd4c44b48f02422418bf7feba51b38 100644 (file)
@@ -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();