Enable Lua tcp tap userdata.
[obnox/wireshark/wip.git] / epan / dissectors / packet-t38.h
1 /* Do not modify this file.                                                   */
2 /* It is created 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 . T38_2002.asn */
5
6 /* Input file: packet-t38-template.h */
7
8 #line 1 "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  * $Id$
16  *
17  * Wireshark - Network traffic analyzer
18  * By Gerald Combs <gerald@wireshark.org>
19  * Copyright 1998 Gerald Combs
20  *
21  * This program is free software; you can redistribute it and/or
22  * modify it under the terms of the GNU General Public License
23  * as published by the Free Software Foundation; either version 2
24  * of the License, or (at your option) any later version.
25  *
26  * This program is distributed in the hope that it will be useful,
27  * but WITHOUT ANY WARRANTY; without even the implied warranty of
28  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
29  * GNU General Public License for more details.
30  *
31  * You should have received a copy of the GNU General Public License
32  * along with this program; if not, write to the Free Software
33  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
34  */
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         guint32 reass_ID;
61         int reass_start_seqnum;
62         guint32 reass_data_type;
63         gint32 last_seqnum; /* used to avoid duplicated seq num shown in the Graph Analysis */
64         guint32 packet_lost;
65         guint32 burst_lost;
66         double time_first_t4_data; 
67 } t38_conv_info;
68
69 /* Info to save the State to reassemble Data (e.g. HDLC) and the Setup (e.g. SDP) in T38 conversations */
70 typedef struct _t38_conv
71 {
72         gchar   setup_method[MAX_T38_SETUP_METHOD_SIZE + 1];
73         guint32 setup_frame_number;
74         t38_conv_info src_t38_info;
75         t38_conv_info dst_t38_info;
76 } t38_conv;
77
78 /* Add an T38 conversation with the given details */
79 void t38_add_address(packet_info *pinfo,
80                      address *addr, int port,
81                      int other_port,
82                      const gchar *setup_method, guint32 setup_frame_number);
83
84
85
86 /*--- Included file: packet-t38-exp.h ---*/
87 #line 1 "packet-t38-exp.h"
88 WS_VAR_IMPORT const value_string t38_T30_indicator_vals[];
89 WS_VAR_IMPORT const value_string t38_T30_data_vals[];
90
91 /*--- End of included file: packet-t38-exp.h ---*/
92 #line 78 "packet-t38-template.h"
93
94
95