5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation; either version 2
12 * of the License, or (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 #ifndef __PACKET_HTTP_H__
25 #define __PACKET_HTTP_H__
27 #include <epan/packet.h>
28 #include "ws_symbol_export.h"
31 void http_dissector_add(guint32 port
, dissector_handle_t handle
);
33 void http_port_add(guint32 port
);
35 /* Used for HTTP statistics */
36 typedef struct _http_info_value_t
{
38 gchar
*request_method
;
41 const gchar
*request_uri
;
44 /* Used for HTTP Export Object feature */
45 typedef struct _http_eo_t
{
51 const guint8
*payload_data
;
54 /** information about a request and response on a HTTP conversation. */
55 typedef struct _http_req_res_t
{
56 /** the running number on the conversation */
58 /** frame number of the request */
60 /** frame number of the corresponding response */
62 /** timestamp of the request */
64 /** pointer to the next element in the linked list, NULL for the tail node */
65 struct _http_req_res_t
*next
;
66 /** pointer to the previous element in the linked list, NULL for the head node */
67 struct _http_req_res_t
*prev
;
70 /** Conversation data of a HTTP connection. */
71 typedef struct _http_conv_t
{
74 gchar
*request_method
;
77 guint32 startframe
; /* First frame of proxied connection */
78 /** the tail node of req_res */
79 http_req_res_t
*req_res_tail
;
80 /** the number of requests on the conversation. */
84 #endif /* __PACKET_HTTP_H__ */