1 //-------------------------------------------------------------------------- 2 // Copyright (C) 2014-2021 Cisco and/or its affiliates. All rights reserved. 3 // 4 // This program is free software; you can redistribute it and/or modify it 5 // under the terms of the GNU General Public License Version 2 as published 6 // by the Free Software Foundation. You may not use, modify or distribute 7 // this program under any other version of the GNU General Public License. 8 // 9 // This program is distributed in the hope that it will be useful, but 10 // WITHOUT ANY WARRANTY; without even the implied warranty of 11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 // General Public License for more details. 13 // 14 // You should have received a copy of the GNU General Public License along 15 // with this program; if not, write to the Free Software Foundation, Inc., 16 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 //-------------------------------------------------------------------------- 18 // http_msg_body_cl.h author Tom Peters <thopeter@cisco.com> 19 20 #ifndef HTTP_MSG_BODY_CL_H 21 #define HTTP_MSG_BODY_CL_H 22 23 #include "http_common.h" 24 #include "http_field.h" 25 #include "http_msg_body.h" 26 #include "http_msg_section.h" 27 28 //------------------------------------------------------------------------- 29 // HttpMsgBodyCl class 30 //------------------------------------------------------------------------- 31 32 class HttpMsgBodyCl : public HttpMsgBody 33 { 34 public: HttpMsgBodyCl(const uint8_t * buffer,const uint16_t buf_size,HttpFlowData * session_data_,HttpCommon::SourceId source_id_,bool buf_owner,snort::Flow * flow_,const HttpParaList * params_)35 HttpMsgBodyCl(const uint8_t* buffer, const uint16_t buf_size, HttpFlowData* session_data_, 36 HttpCommon::SourceId source_id_, bool buf_owner, snort::Flow* flow_, 37 const HttpParaList* params_) 38 : HttpMsgBody(buffer, buf_size, session_data_, source_id_, buf_owner, flow_, params_) {} 39 void update_flow() override; 40 41 #ifdef REG_TEST 42 void print_section(FILE* output) override; 43 #endif 44 }; 45 46 #endif 47 48