2007-05-04 07:10:15 +00:00
|
|
|
/* Do not modify this file. */
|
|
|
|
/* It is created automatically by the ASN.1 to Wireshark dissector compiler */
|
2007-10-17 10:25:21 +00:00
|
|
|
/* packet-t38.h */
|
2009-05-16 22:07:03 +00:00
|
|
|
/* ../../tools/asn2wrs.py -p t38 -c ./t38.cnf -s ./packet-t38-template -D . T38_2002.asn */
|
2007-05-04 07:10:15 +00:00
|
|
|
|
|
|
|
/* Input file: packet-t38-template.h */
|
|
|
|
|
|
|
|
#line 1 "packet-t38-template.h"
|
2004-10-22 06:19:00 +00:00
|
|
|
/* packet-t38.h
|
|
|
|
*
|
|
|
|
* Routines for T38 dissection
|
|
|
|
* 2003 Hans Viens
|
|
|
|
* 2004 Alejandro Vaquero, add support to conversation
|
|
|
|
*
|
|
|
|
* $Id$
|
|
|
|
*
|
2006-05-21 04:49:01 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
2004-10-22 06:19:00 +00:00
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
2005-10-03 05:55:26 +00:00
|
|
|
#define MAX_T38_DATA_ITEMS 4
|
2006-01-15 15:01:14 +00:00
|
|
|
#define MAX_T38_DESC 128
|
|
|
|
|
2005-10-03 05:55:26 +00:00
|
|
|
typedef struct _t38_packet_info {
|
|
|
|
guint16 seq_num; /* UDPTLPacket sequence number */
|
2008-07-26 15:28:04 +00:00
|
|
|
gint32 type_msg; /* 0=t30-indicator 1=data */
|
2005-10-03 05:55:26 +00:00
|
|
|
guint32 t30ind_value;
|
|
|
|
guint32 data_value; /* standard and speed */
|
2006-01-15 15:01:14 +00:00
|
|
|
guint32 setup_frame_number;
|
|
|
|
guint32 Data_Field_field_type_value;
|
|
|
|
guint8 t30_Facsimile_Control;
|
|
|
|
gchar desc[MAX_T38_DESC]; /* Description used to be displayed in the frame label Graph Anlaysis */
|
|
|
|
gchar desc_comment[MAX_T38_DESC]; /* Description used to be displayed in the Comment Graph Anlaysis */
|
|
|
|
double time_first_t4_data;
|
|
|
|
guint32 frame_num_first_t4_data;
|
2005-10-03 05:55:26 +00:00
|
|
|
} t38_packet_info;
|
|
|
|
|
|
|
|
|
2004-12-21 19:28:48 +00:00
|
|
|
#define MAX_T38_SETUP_METHOD_SIZE 7
|
2006-01-15 15:01:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
/* Info to save the State to reassemble Data (e.g. HDLC) and the Setup (e.g. SDP) in T38 conversations */
|
|
|
|
typedef struct _t38_conv_info
|
2004-10-22 06:19:00 +00:00
|
|
|
{
|
2006-01-15 15:01:14 +00:00
|
|
|
guint32 reass_ID;
|
|
|
|
int reass_start_seqnum;
|
|
|
|
guint32 reass_data_type;
|
|
|
|
gint32 last_seqnum; /* used to avoid duplicated seq num shown in the Graph Analysis */
|
|
|
|
guint32 packet_lost;
|
|
|
|
guint32 burst_lost;
|
|
|
|
double time_first_t4_data;
|
|
|
|
} t38_conv_info;
|
|
|
|
|
|
|
|
/* Info to save the State to reassemble Data (e.g. HDLC) and the Setup (e.g. SDP) in T38 conversations */
|
|
|
|
typedef struct _t38_conv
|
|
|
|
{
|
|
|
|
gchar setup_method[MAX_T38_SETUP_METHOD_SIZE + 1];
|
|
|
|
guint32 setup_frame_number;
|
|
|
|
t38_conv_info src_t38_info;
|
|
|
|
t38_conv_info dst_t38_info;
|
|
|
|
} t38_conv;
|
2004-10-22 06:19:00 +00:00
|
|
|
|
|
|
|
/* Add an T38 conversation with the given details */
|
|
|
|
void t38_add_address(packet_info *pinfo,
|
|
|
|
address *addr, int port,
|
|
|
|
int other_port,
|
2005-08-05 00:23:22 +00:00
|
|
|
const gchar *setup_method, guint32 setup_frame_number);
|
2005-10-03 05:55:26 +00:00
|
|
|
|
2007-05-04 07:10:15 +00:00
|
|
|
|
|
|
|
|
|
|
|
/*--- Included file: packet-t38-exp.h ---*/
|
|
|
|
#line 1 "packet-t38-exp.h"
|
|
|
|
WS_VAR_IMPORT const value_string t38_T30_indicator_vals[];
|
|
|
|
WS_VAR_IMPORT const value_string t38_T30_data_vals[];
|
|
|
|
|
|
|
|
/*--- End of included file: packet-t38-exp.h ---*/
|
|
|
|
#line 78 "packet-t38-template.h"
|
2006-01-15 15:01:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
|