From: Tom Peters Date: Mon, 28 Jul 2014 21:11:07 +0000 (-0400) Subject: small step toward transaction processing X-Git-Tag: 3.0.0-233~1437 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b63485d90154c259d84f76e7f85b2a7fa96fe3b8;p=thirdparty%2Fsnort3.git small step toward transaction processing --- diff --git a/src/service_inspectors/nhttp_inspect/nhttp_flow_data.h b/src/service_inspectors/nhttp_inspect/nhttp_flow_data.h index 51501defd..5f931b71e 100644 --- a/src/service_inspectors/nhttp_inspect/nhttp_flow_data.h +++ b/src/service_inspectors/nhttp_inspect/nhttp_flow_data.h @@ -85,6 +85,15 @@ private: int64_t numChunks[2] = { NHttpEnums::STAT_NOTPRESENT, NHttpEnums::STAT_NOTPRESENT }; // number of chunks seen so far int64_t chunkSections[2] = { NHttpEnums::STAT_NOTPRESENT, NHttpEnums::STAT_NOTPRESENT }; // number of sections seen so far in the current chunk int64_t chunkOctets[2] = { NHttpEnums::STAT_NOTPRESENT, NHttpEnums::STAT_NOTPRESENT }; // number of user data octets seen so far in the current chunk including terminating CRLF + + // Stored message sections from this session + NHttpMsgRequest* requestStart = nullptr; + NHttpMsgHeader* requestHeaders = nullptr; + NHttpMsgStatus* responseStart = nullptr; + NHttpMsgHeader* responseHeaders = nullptr; + // The very latest section for each side that will be deleted as soon as the next section arrives. + // If the section pointer is saved someplace else then do not put it here as well. Just leave it nullptr. + NHttpMsgSection* latest[2] = { nullptr, nullptr }; }; #endif