Wireshark  2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
packet-t38-template.h
1 /* packet-t38.h
2  *
3  * Routines for T38 dissection
4  * 2003 Hans Viens
5  * 2004 Alejandro Vaquero, add support to conversation
6  *
7  * Wireshark - Network traffic analyzer
8  * By Gerald Combs <gerald@wireshark.org>
9  * Copyright 1998 Gerald Combs
10  *
11  * SPDX-License-Identifier: GPL-2.0-or-later
12  */
13 
14 #include "ws_symbol_export.h"
15 
16 #define MAX_T38_DATA_ITEMS 4
17 #define MAX_T38_DESC 128
18 
19 typedef struct _t38_packet_info {
20  guint16 seq_num; /* UDPTLPacket sequence number */
21  gint32 type_msg; /* 0=t30-indicator 1=data */
22  guint32 t30ind_value;
23  guint32 data_value; /* standard and speed */
24  guint32 setup_frame_number;
25  guint32 Data_Field_field_type_value;
26  guint8 t30_Facsimile_Control;
27  gchar desc[MAX_T38_DESC]; /* Description used to be displayed in the frame label Graph Anlaysis */
28  gchar desc_comment[MAX_T38_DESC]; /* Description used to be displayed in the Comment Graph Anlaysis */
29  double time_first_t4_data;
30  guint32 frame_num_first_t4_data;
32 
33 
34 #define MAX_T38_SETUP_METHOD_SIZE 7
35 
36 
37 /* Info to save the State to reassemble Data (e.g. HDLC) and the Setup (e.g. SDP) in T38 conversations */
38 typedef struct _t38_conv_info
39 {
40 
41  guint32 reass_ID;
42  int reass_start_seqnum;
43  guint32 reass_data_type;
44  gint32 last_seqnum; /* used to avoid duplicated seq num shown in the Graph Analysis */
45  guint32 packet_lost;
46  guint32 burst_lost;
47  double time_first_t4_data;
48  guint32 additional_hdlc_data_field_counter;
49  gint32 seqnum_prev_data_field;
50 
52 
53 /* Info to save the State to reassemble Data (e.g. HDLC) and the Setup (e.g. SDP) in T38 conversations */
54 typedef struct _t38_conv
55 {
56  gchar setup_method[MAX_T38_SETUP_METHOD_SIZE + 1];
57  guint32 setup_frame_number;
58  t38_conv_info src_t38_info;
59  t38_conv_info dst_t38_info;
60 } t38_conv;
61 
62 /* Add an T38 conversation with the given details */
63 WS_DLL_PUBLIC
64 void t38_add_address(packet_info *pinfo,
65  address *addr, int port,
66  int other_port,
67  const gchar *setup_method, guint32 setup_frame_number);
68 
69 
70 #include "packet-t38-exp.h"
71 
72 
73 
Definition: packet_info.h:44
Definition: packet-t38-template.h:38
Definition: packet-t38-template.h:19
Definition: packet-t38-template.h:54
Definition: address.h:47