1 /* Do not modify this file. Changes will be overwritten. */
2 /* Generated automatically by the ASN.1 to Wireshark dissector compiler */
4 /* ../../tools/asn2wrs.py -p t38 -c ./t38.cnf -s ./packet-t38-template -D . -O ../../epan/dissectors T38_2002.asn */
6 /* Input file: packet-t38-template.h */
8 #line 1 "../../asn1/t38/packet-t38-template.h"
11 * Routines for T38 dissection
13 * 2004 Alejandro Vaquero, add support to conversation
15 * Wireshark - Network traffic analyzer
16 * By Gerald Combs <gerald@wireshark.org>
17 * Copyright 1998 Gerald Combs
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.
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.
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.
34 #include "ws_symbol_export.h"
36 #define MAX_T38_DATA_ITEMS 4
37 #define MAX_T38_DESC 128
39 typedef struct _t38_packet_info {
40 guint16 seq_num; /* UDPTLPacket sequence number */
41 gint32 type_msg; /* 0=t30-indicator 1=data */
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;
54 #define MAX_T38_SETUP_METHOD_SIZE 7
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
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 */
67 double time_first_t4_data;
68 guint32 additional_hdlc_data_field_counter;
69 gint32 seqnum_prev_data_field;
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
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;
82 /* Add an T38 conversation with the given details */
84 void t38_add_address(packet_info *pinfo,
85 address *addr, int port,
87 const gchar *setup_method, guint32 setup_frame_number);
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[];
96 /*--- End of included file: packet-t38-exp.h ---*/
97 #line 83 "../../asn1/t38/packet-t38-template.h"