Fixup: tvb_get_string(z) -> tvb_get_string(z)_enc
[metze/wireshark/wip.git] / epan / dissectors / packet-diameter.h
1 /*
2  * packet-diameter.h
3  *
4  * Definitions for Diameter packet disassembly
5  * Wireshark - Network traffic analyzer
6  * By Gerald Combs <gerald@wireshark.org>
7  * Copyright 1998 Gerald Combs
8  *
9  * This program is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU General Public License
11  * as published by the Free Software Foundation; either version 2
12  * of the License, or (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22  */
23
24 /* Request-Answer Pair */
25 typedef struct _diameter_req_ans_pair_t
26 {
27         guint32         hop_by_hop_id;
28         guint32         end_to_end_id;
29         guint32         cmd_code;
30         guint32         result_code;
31         const char*     cmd_str;
32         guint32         req_frame;      /* frame number in which request was seen */
33         guint32         ans_frame;      /* frame number in which answer was seen */
34         nstime_t        req_time;
35         nstime_t        srt_time;
36         gboolean        processing_request; /* TRUE if processing request, FALSE if processing answer. */
37 } diameter_req_ans_pair_t;
38
39 /* Info needed by AVP sub dissectors */
40 typedef struct _diam_sub_dis_t {
41         guint32 application_id;
42         guint32 feature_list_id;
43         gboolean dis_gouped;       /**< Set during dissection of grouped AVP */
44         guint32 vendor_id;
45         char *avp_str;
46 } diam_sub_dis_t;