Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
packet-smb-common.h
1/* packet-smb-common.h
2 * Routines for SMB packet dissection
3 * Copyright 1999, Richard Sharpe <[email protected]>
4 *
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <[email protected]>
7 * Copyright 1998 Gerald Combs
8 *
9 * Copied from packet-pop.c
10 *
11 * SPDX-License-Identifier: GPL-2.0-or-later
12 */
13
14#ifndef __PACKET_SMB_COMMON_H__
15#define __PACKET_SMB_COMMON_H__
16
17/* **data is allocated with ephemeral scope and will be automatically freed
18 * when packet dissection completes.
19 * You do NOT need to g_free() that string.
20 */
21int display_unicode_string(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, int hf_index, char **data);
22
23int display_ms_string(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, int hf_index, char **data);
24
25int dissect_ms_compressed_string(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, int hf_index,
26 const char **data);
27
28extern const value_string share_type_vals[];
29
30#endif
Definition packet_info.h:43
Definition proto.h:901
Definition value_string.h:25
Definition tvbuff-int.h:35