2003-12-23 02:29:11 +00:00
|
|
|
/* req_resp_hdrs.h
|
2003-12-22 00:57:34 +00:00
|
|
|
* Declarations of routines handling protocols with a request/response line,
|
2003-12-23 02:29:11 +00:00
|
|
|
* headers, a blank line, and an optional body.
|
2003-12-22 00:57:34 +00:00
|
|
|
*
|
2006-05-21 05:12:17 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
2003-12-22 00:57:34 +00:00
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
2018-02-08 16:59:17 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
2003-12-22 00:57:34 +00:00
|
|
|
*/
|
|
|
|
|
2003-12-23 02:29:11 +00:00
|
|
|
#ifndef __REQ_RESP_HDRS_H__
|
|
|
|
#define __REQ_RESP_HDRS_H__
|
2003-12-22 00:57:34 +00:00
|
|
|
|
2013-03-01 23:53:11 +00:00
|
|
|
#include "ws_symbol_export.h"
|
|
|
|
|
2005-03-12 09:59:28 +00:00
|
|
|
/**
|
2003-12-23 02:29:11 +00:00
|
|
|
* Optionally do reassembly of the request/response line, headers, and body.
|
2005-03-12 09:59:28 +00:00
|
|
|
*
|
|
|
|
* @param tvb The buffer.
|
|
|
|
* @param offset The offset in the buffer to begin inspection.
|
|
|
|
* @param pinfo Packet info from the parent protocol.
|
|
|
|
* @param desegment_headers Do desegmentation on headers.
|
2019-05-01 00:58:14 +00:00
|
|
|
* @param desegment_body Do desegmentation on body.
|
|
|
|
* @param desegment_until_fin When desegment_body is enabled and no
|
|
|
|
* Content-Length header is found, assume that all data following the headers
|
|
|
|
* are part of the body.
|
2005-03-12 09:59:28 +00:00
|
|
|
* @return TRUE if desegmentation is complete otherwise FALSE
|
2003-12-22 00:57:34 +00:00
|
|
|
*/
|
2013-03-01 23:53:11 +00:00
|
|
|
WS_DLL_PUBLIC gboolean
|
2007-11-19 21:28:08 +00:00
|
|
|
req_resp_hdrs_do_reassembly(tvbuff_t *tvb, const int offset, packet_info *pinfo,
|
2019-05-01 00:58:14 +00:00
|
|
|
const gboolean desegment_headers, const gboolean desegment_body,
|
|
|
|
gboolean desegment_until_fin);
|
2003-12-22 00:57:34 +00:00
|
|
|
|
|
|
|
#endif
|