| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
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/* asn2wrs.py -q -L -p t38 -c ./t38.cnf -s ./packet-t38-template -D . -O ../.. T38_2002.asn */
5
6/* packet-t38.h
7 *
8 * Routines for T38 dissection
9 * 2003 Hans Viens
10 * 2004 Alejandro Vaquero, add support to conversation
11 *
12 * Wireshark - Network traffic analyzer
13 * By Gerald Combs <gerald@wireshark.org>
14 * Copyright 1998 Gerald Combs
15 *
16 * SPDX-License-Identifier: GPL-2.0-or-later
17 */
18
19#ifndef PACKET_T38_H
20#define PACKET_T38_H
21
22#include "ws_symbol_export.h"
23
24#define MAX_T38_DATA_ITEMS 4
25#define MAX_T38_DESC 128
26
27 typedef struct _t38_packet_info {
28 uint16_t seq_num; /* UDPTLPacket sequence number */
29 int32_t type_msg; /* 0=t30-indicator 1=data */
30 uint32_t t30ind_value;
31 uint32_t data_value; /* standard and speed */
32 uint32_t setup_frame_number;
33 uint32_t Data_Field_field_type_value;
34 uint8_t t30_Facsimile_Control;
35 char desc[MAX_T38_DESC]; /* Description used to be displayed in the frame label Graph Analysis */
36 char desc_comment[MAX_T38_DESC]; /* Description used to be displayed in the Comment Graph Analysis */
37 double time_first_t4_data;
38 uint32_t frame_num_first_t4_data;
39} t38_packet_info;
40
41
42#define MAX_T38_SETUP_METHOD_SIZE 7
43
44
45/* Info to save the State to reassemble Data (e.g. HDLC) and the Setup (e.g. SDP) in T38 conversations */
46 typedef struct _t38_conv_info t38_conv_info;
47
48 struct _t38_conv_info {
49
50 uint32_t reass_ID;
51 int reass_start_seqnum;
52 uint32_t reass_start_data_field;
53 uint32_t reass_data_type;
54 int32_t last_seqnum; /* used to avoid duplicated seq num shown in the Graph Analysis */
55 uint32_t packet_lost;
56 uint32_t burst_lost;
57 double time_first_t4_data;
58 uint32_t additional_hdlc_data_field_counter;
59 int32_t seqnum_prev_data_field;
60 t38_conv_info *next;
61
62};
63
64/* Info to save the State to reassemble Data (e.g. HDLC) and the Setup (e.g. SDP) in T38 conversations */
65 typedef struct _t38_conv
66{
67 char setup_method[MAX_T38_SETUP_METHOD_SIZE + 1];
68 uint32_t setup_frame_number;
69 t38_conv_info src_t38_info;
70 t38_conv_info dst_t38_info;
71} t38_conv;
72
73/* Add an T38 conversation with the given details */
74WS_DLL_PUBLIC
75 void t38_add_address(packet_info *pinfo,
76 address *addr, int port,
77 int other_port,
78 const char *setup_method, uint32_t setup_frame_number);
79
80
81#include <epan/asn1.h>
82
83 extern const value_string t38_T30_indicator_vals[];
84 extern const value_string t38_T30_data_vals[];
85
86#endif /* PACKET_T38_H */
address
struct _address address
Holds a network or link-layer address of any supported type.
asn1.h
packet_info
struct _packet_info packet_info
Represents the metadata and indexing information for a single captured frame.
_t38_conv_info
Definition packet-t38.h:48
_t38_conv
Definition packet-t38.h:66
_t38_packet_info
Definition packet-t38.h:27
value_string
struct _value_string value_string
Mapping between a 32-bit integer value and its string representation.