Fixup: tvb_get_string(z) -> tvb_get_string(z)_enc
[metze/wireshark/wip.git] / epan / dissectors / packet-t38.h
1 /* Do not modify this file. Changes will be overwritten.                      */
2 /* Generated automatically by the ASN.1 to Wireshark dissector compiler       */
3 /* packet-t38.h                                                               */
4 /* ../../tools/asn2wrs.py -p t38 -c ./t38.cnf -s ./packet-t38-template -D . -O ../../epan/dissectors T38_2002.asn */
5
6 /* Input file: packet-t38-template.h */
7
8 #line 1 "../../asn1/t38/packet-t38-template.h"
9 /* packet-t38.h
10  *
11  * Routines for T38 dissection
12  * 2003 Hans Viens
13  * 2004 Alejandro Vaquero, add support to conversation
14  *
15  * Wireshark - Network traffic analyzer
16  * By Gerald Combs <gerald@wireshark.org>
17  * Copyright 1998 Gerald Combs
18  *
19  * This program is free software; you can redistribute it and/or
20  * modify it under the terms of the GNU General Public License
21  * as published by the Free Software Foundation; either version 2
22  * of the License, or (at your option) any later version.
23  *
24  * This program is distributed in the hope that it will be useful,
25  * but WITHOUT ANY WARRANTY; without even the implied warranty of
26  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
27  * GNU General Public License for more details.
28  *
29  * You should have received a copy of the GNU General Public License
30  * along with this program; if not, write to the Free Software
31  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
32  */
33
34 #include "ws_symbol_export.h"
35
36 #define MAX_T38_DATA_ITEMS 4
37 #define MAX_T38_DESC 128
38
39 typedef struct _t38_packet_info {
40         guint16 seq_num;        /* UDPTLPacket sequence number */
41         gint32 type_msg;        /* 0=t30-indicator    1=data */
42         guint32 t30ind_value;
43         guint32 data_value;     /* standard and speed */
44         guint32 setup_frame_number;
45         guint32 Data_Field_field_type_value;
46         guint8  t30_Facsimile_Control;
47         gchar   desc[MAX_T38_DESC]; /* Description used to be displayed in the frame label Graph Anlaysis */
48         gchar   desc_comment[MAX_T38_DESC]; /* Description used to be displayed in the Comment Graph Anlaysis */
49         double time_first_t4_data;
50         guint32 frame_num_first_t4_data;
51 } t38_packet_info;
52
53
54 #define MAX_T38_SETUP_METHOD_SIZE 7
55
56
57 /* Info to save the State to reassemble Data (e.g. HDLC) and the Setup (e.g. SDP) in T38 conversations */
58 typedef struct _t38_conv_info
59 {
60
61         guint32 reass_ID;
62         int reass_start_seqnum;
63         guint32 reass_data_type;
64         gint32 last_seqnum; /* used to avoid duplicated seq num shown in the Graph Analysis */
65         guint32 packet_lost;
66         guint32 burst_lost;
67         double time_first_t4_data;
68         guint32 additional_hdlc_data_field_counter;
69         gint32 seqnum_prev_data_field;
70
71 } t38_conv_info;
72
73 /* Info to save the State to reassemble Data (e.g. HDLC) and the Setup (e.g. SDP) in T38 conversations */
74 typedef struct _t38_conv
75 {
76         gchar   setup_method[MAX_T38_SETUP_METHOD_SIZE + 1];
77         guint32 setup_frame_number;
78         t38_conv_info src_t38_info;
79         t38_conv_info dst_t38_info;
80 } t38_conv;
81
82 /* Add an T38 conversation with the given details */
83 WS_DLL_PUBLIC
84 void t38_add_address(packet_info *pinfo,
85                      address *addr, int port,
86                      int other_port,
87                      const gchar *setup_method, guint32 setup_frame_number);
88
89
90
91 /*--- Included file: packet-t38-exp.h ---*/
92 #line 1 "../../asn1/t38/packet-t38-exp.h"
93 WS_DLL_PUBLIC const value_string t38_T30_indicator_vals[];
94 WS_DLL_PUBLIC const value_string t38_T30_data_vals[];
95
96 /*--- End of included file: packet-t38-exp.h ---*/
97 #line 83 "../../asn1/t38/packet-t38-template.h"
98
99
100