Wireshark  2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
packet-smb-common.h
1 /* packet-smb-common.h
2  * Routines for SMB packet dissection
3  * Copyright 1999, Richard Sharpe <rsharpe@ns.aus.com>
4  *
5  * Wireshark - Network traffic analyzer
6  * By Gerald Combs <gerald@wireshark.org>
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  */
21 int display_unicode_string(tvbuff_t *tvb, proto_tree *tree, int offset, int hf_index, char **data);
22 
23 int display_ms_string(tvbuff_t *tvb, proto_tree *tree, int offset, int hf_index, char **data);
24 
25 int dissect_ms_compressed_string(tvbuff_t *tvb, proto_tree *tree, int offset, int hf_index,
26  const char **data);
27 
28 const gchar *get_unicode_or_ascii_string(tvbuff_t *tvb, int *offsetp,
29  gboolean useunicode, int *len, gboolean nopad, gboolean exactlen,
30  guint16 *bcp);
31 
32 extern const value_string share_type_vals[];
33 
34 #endif
Definition: tvbuff-int.h:35
Definition: value_string.h:24
Definition: proto.h:759