2 * Routines for SMB packet dissection
3 * Copyright 1999, Richard Sharpe <rsharpe@ns.aus.com>
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
9 * Copied from packet-pop.c
11 * SPDX-License-Identifier: GPL-2.0-or-later
14 #ifndef __PACKET_SMB_COMMON_H__
15 #define __PACKET_SMB_COMMON_H__
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.
21 int display_unicode_string(tvbuff_t
*tvb
, packet_info
*pinfo
, proto_tree
*tree
, int offset
, int hf_index
, char **data
);
23 int display_ms_string(tvbuff_t
*tvb
, packet_info
*pinfo
, proto_tree
*tree
, int offset
, int hf_index
, char **data
);
25 int dissect_ms_compressed_string(tvbuff_t
*tvb
, packet_info
*pinfo
, proto_tree
*tree
, int offset
, int hf_index
,
28 extern const value_string share_type_vals
[];