10#ifndef __PACKET_HTTP_H__
11#define __PACKET_HTTP_H__
14#include "ws_symbol_export.h"
19void http_tcp_dissector_add(uint32_t port, dissector_handle_t handle);
21void http_tcp_dissector_delete(uint32_t port);
23void http_tcp_port_add(uint32_t port);
26void http_add_path_components_to_tree(tvbuff_t* tvb,
packet_info* pinfo _U_,
proto_item* item,
unsigned offset,
unsigned length);
29dissector_handle_t http_upgrade_dissector(
const char *protocol);
34 unsigned response_code;
37 const char *request_uri;
38 const char *referer_uri;
40 const char *location_base_uri;
41 const char *location_target;
44#define HTTP_PROTO_DATA_REQRES 0
45#define HTTP_PROTO_DATA_INFO 1
55 unsigned response_code;
71 const char *(*get_header_value)(
packet_info *,
const char *, bool);
90 dissector_handle_t next_handle;
91 http_upgrade_info_t *upgrade_info;
107 uint16_t server_port;
121 const char *hostname;
122 const char *filename;
123 const char *content_type;
139determine_http_location_target(
wmem_allocator_t *scope,
const char *base_url,
const char * location_url);
struct _address address
Holds a network or link-layer address of any supported type.
struct _packet_info packet_info
Represents the metadata and indexing information for a single captured frame.
proto_node proto_item
Definition proto.h:927
struct _wmem_list_t wmem_list_t
Opaque type representing a scoped, doubly-linked list in the wmem system.
Definition wmem_list.h:42
struct _wmem_map_t wmem_map_t
Opaque type representing a wmem-managed hash map.
Definition wmem_map.h:46
struct _wmem_allocator_t wmem_allocator_t
Definition wmem_core.h:44
Definition packet-http.h:81
http_req_res_t * req_res_tail
Definition packet-http.h:94
wmem_list_t * req_list
Definition packet-http.h:102
Definition packet-http.h:118
Definition packet-http.h:32
Definition packet-http.h:48
nstime_t req_ts
Definition packet-http.h:57
uint32_t number
Definition packet-http.h:50
void * private_data
Definition packet-http.h:63
uint32_t req_framenum
Definition packet-http.h:52
uint32_t res_framenum
Definition packet-http.h:54
Definition packet-http.h:69
uint16_t server_port
Definition packet-http.h:73
bool from_server
Definition packet-http.h:77
uint8_t http_version
Definition packet-http.h:75
struct _value_string value_string
Mapping between a 32-bit integer value and its string representation.