| Wireshark 4.7.0 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
packet-http2.h
1/* packet-http2.h
2 * Routines for HTTP/2 dissection
3 *
4 * Wireshark - Network traffic analyzer
5 * By Gerald Combs <gerald@wireshark.org>
6 * Copyright 1998 Gerald Combs
7 *
8 * SPDX-License-Identifier: GPL-2.0-or-later
9 */
10#ifndef __PACKET_HTTP2_H__
11#define __PACKET_HTTP2_H__
12
13#ifdef __cplusplus
14 extern "C" {
15#endif /* __cplusplus */
16
17/* http2 standard headers */
18#define HTTP2_HEADER_CONTENT_ENCODING "content-encoding"
19#define HTTP2_HEADER_STATUS ":status"
20#define HTTP2_HEADER_STATUS_PARTIAL_CONTENT "206"
21#define HTTP2_HEADER_METHOD ":method"
22#define HTTP2_HEADER_METHOD_CONNECT "CONNECT"
23#define HTTP2_HEADER_TRANSFER_ENCODING "transfer-encoding"
24#define HTTP2_HEADER_PATH ":path"
25#define HTTP2_HEADER_LOCATION "location"
26#define HTTP2_HEADER_AUTHORITY ":authority"
27#define HTTP2_HEADER_SCHEME ":scheme"
28#define HTTP2_HEADER_CONTENT_TYPE "content-type"
29#define HTTP2_HEADER_PROTOCOL ":protocol"
30#define HTTP2_HEADER_UNKNOWN "<unknown>"
31/* http2 for grpc */
32#define HTTP2_HEADER_GRPC_ENCODING "grpc-encoding"
33#define HTTP2_HEADER_3GPP_SBI_CORRELATION_INFO "3gpp-sbi-correlation-info"
34
35 int dissect_http2_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_ );
36
56 const char* http2_get_header_value(packet_info *pinfo, const char* name, bool the_other_direction);
57
63uint32_t http2_get_stream_id(packet_info *pinfo);
64
69 void
70http2_set_stream_imsi(packet_info *pinfo, char* imsi);
71
76 const char*
77http2_get_stream_imsi(packet_info *pinfo);
78
83 void
84http2_add_notifyuri_imsi(char* notifyuri, const char* imsi);
85
89 char*
90http2_get_imsi_from_location(const char* location);
91
96WS_DLL_PUBLIC bool
97http2_get_stream_id_le(unsigned streamid, unsigned sub_stream_id, unsigned *sub_stream_id_out);
98
103WS_DLL_PUBLIC bool
104http2_get_stream_id_ge(unsigned streamid, unsigned sub_stream_id, unsigned *sub_stream_id_out);
105
106WS_DLL_PUBLIC void
107dissect_http2_settings_ext(tvbuff_t* tvb, packet_info* pinfo _U_, proto_tree* http2_tree, unsigned offset);
108
109#ifdef __cplusplus
110}
111#endif /* __cplusplus */
112
113#endif
114
115/*
116 * Editor modelines - https://www.wireshark.org/tools/modelines.html
117 *
118 * Local variables:
119 * c-basic-offset: 4
120 * tab-width: 8
121 * indent-tabs-mode: nil
122 * End:
123 *
124 * vi: set shiftwidth=4 tabstop=8 expandtab:
125 * :indentSize=4:tabSize=8:noTabs=true:
126 */
_packet_info
Definition packet_info.h:43
_proto_node
Definition proto.h:907
tvbuff
Definition tvbuff-int.h:35