Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
packet-tcap.h
Go to the documentation of this file.
1/* Do not modify this file. Changes will be overwritten. */
2/* Generated automatically by the ASN.1 to Wireshark dissector compiler */
3/* packet-tcap.h */
4/* asn2wrs.py -b -q -L -p tcap -c ./tcap.cnf -s ./packet-tcap-template -D . -O ../.. tcap.asn UnidialoguePDUs.asn DialoguePDUs.asn */
5
6/* packet-tcap.h
7 *
8 * Copyright 2004, Tim Endean <[email protected]>
9 *
10 * Wireshark - Network traffic analyzer
11 * By Gerald Combs <[email protected]>
12 * Copyright 1998 Gerald Combs
13 *
14 * SPDX-License-Identifier: GPL-2.0-or-later
15 */
16
17
18#ifndef PACKET_tcap_H
19#define PACKET_tcap_H
20
21#include "ws_symbol_export.h"
22
23/* TCAP component type */
24#define TCAP_COMP_INVOKE 0xa1
25#define TCAP_COMP_RRL 0xa2
26#define TCAP_COMP_RE 0xa3
27#define TCAP_COMP_REJECT 0xa4
28#define TCAP_COMP_RRN 0xa7
29
30
31#define ANSI_TC_INVOKE_L 0xe9
32#define ANSI_TC_RRL 0xea
33#define ANSI_TC_RE 0xeb
34#define ANSI_TC_REJECT 0xec
35#define ANSI_TC_INVOKE_N 0xed
36#define ANSI_TC_RRN 0xee
37
38
39#define TCAP_SEQ_TAG 0x30
40#define TCAP_SET_TAG 0x31
41
42#define TCAP_INVOKE_ID_TAG 0x02
43#define TCAP_LINKED_ID_TAG 0x80
44
45#define TCAP_EOC_LEN 2
46
47#define TCAP_CONSTRUCTOR(TCtag) (TCtag & 0x20)
48
49#define TC_BEGIN 1
50#define TC_CONT 2
51#define TC_END 3
52#define TC_ABORT 4
53#define TC_ANSI_ABORT 5
54#define TC_ANSI_ALL 6
55
57 bool acv; /* Is the Application Context Version present */
58 const void * oid;
59 uint32_t session_id;
60 void * context;
61 char *TransactionID_str;
62 uint32_t src_tid;
63 uint32_t dst_tid;
64};
65
71#define LENGTH_OID 23
73 struct tcaphash_context_key_t * key;
74 uint32_t session_id;
75 uint32_t first_frame;
76 uint32_t last_frame;
79 bool responded;
80 bool closed;
81 bool upper_dissector;
82 bool oid_present;
83 char oid[LENGTH_OID+1];
84 bool subdissector_present;
85 dissector_handle_t subdissector_handle;
86 void (* callback) (tvbuff_t *,packet_info *, proto_tree *, struct tcaphash_context_t *);
87 struct tcaphash_begincall_t * begincall;
88 struct tcaphash_contcall_t * contcall;
89 struct tcaphash_endcall_t * endcall;
90 struct tcaphash_ansicall_t * ansicall;
91};
92
94 struct tcaphash_begin_info_key_t * beginkey;
95 struct tcaphash_context_t * context;
96 bool father;
97 struct tcaphash_begincall_t * next_begincall;
98 struct tcaphash_begincall_t * previous_begincall;
99};
100
102 struct tcaphash_cont_info_key_t * contkey;
103 struct tcaphash_context_t * context;
104 bool father;
105 struct tcaphash_contcall_t * next_contcall;
106 struct tcaphash_contcall_t * previous_contcall;
107};
108
110 struct tcaphash_end_info_key_t * endkey;
111 struct tcaphash_context_t * context;
112 bool father;
113 struct tcaphash_endcall_t * next_endcall;
114 struct tcaphash_endcall_t * previous_endcall;
115};
116
118 struct tcaphash_ansi_info_key_t * ansikey;
119 struct tcaphash_context_t * context;
120 bool father;
121 struct tcaphash_ansicall_t * next_ansicall;
122 struct tcaphash_ansicall_t * previous_ansicall;
123};
124
129 uint32_t session_id;
130};
131
133 uint32_t hashKey;
134 uint32_t tid;
135 uint32_t pc_hash;
136};
137
139 uint32_t hashKey;
140 uint32_t src_tid;
141 uint32_t dst_tid;
142 uint32_t opc_hash;
143 uint32_t dpc_hash;
144};
145
147 uint32_t hashKey;
148 uint32_t tid;
149 uint32_t opc_hash;
150 uint32_t dpc_hash;
151};
152
154 uint32_t hashKey;
155 uint32_t tid;
156 uint32_t opc_hash;
157 uint32_t dpc_hash;
158};
159
160
163 uint32_t tcap_session_id;
164 uint32_t src_tid;
165 uint32_t dst_tid;
166 uint8_t ope;
167};
168
173struct tcapsrt_info_t * tcapsrt_razinfo(void);
174
175void tcapsrt_close(struct tcaphash_context_t * p_tcaphash_context,
176 packet_info * pinfo _U_);
177
194 packet_info * pinfo _U_,
195 proto_tree *tree,
196 struct tcapsrt_info_t * p_tcap_info);
197
198WS_DLL_PUBLIC bool gtcap_StatSRT;
199
200extern int tcap_standard;
201
202extern const value_string tcap_component_type_str[];
203void proto_reg_handoff_tcap(void);
204void proto_register_tcap(void);
205
206extern dissector_handle_t get_itu_tcap_subdissector(uint32_t ssn);
207dissector_handle_t get_ansi_tcap_subdissector(uint32_t ssn);
208
209extern void add_ansi_tcap_subdissector(uint32_t ssn, dissector_handle_t dissector);
210WS_DLL_PUBLIC void add_itu_tcap_subdissector(uint32_t ssn, dissector_handle_t dissector);
211
212extern void delete_ansi_tcap_subdissector(uint32_t ssn, dissector_handle_t dissector);
213WS_DLL_PUBLIC void delete_itu_tcap_subdissector(uint32_t ssn, dissector_handle_t dissector);
214
215extern void call_tcap_dissector(dissector_handle_t, tvbuff_t*, packet_info*, proto_tree*);
216
217extern const value_string tcap_UniDialoguePDU_vals[];
218extern const value_string tcap_DialoguePDU_vals[];
219int dissect_tcap_UniDialoguePDU(bool implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_);
220int dissect_tcap_DialoguePDU(bool implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_);
221
222#endif /* PACKET_tcap_H */
struct tcapsrt_info_t * tcapsrt_razinfo(void)
Definition packet-tcap.c:2898
struct tcaphash_context_t * tcapsrt_call_matching(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, struct tcapsrt_info_t *p_tcap_info)
Definition asn1.h:65
Definition packet_info.h:43
Definition proto.h:901
Definition value_string.h:25
Definition packet.c:763
Definition nstime.h:26
Definition packet-tcap.h:56
Definition packet-tcap.h:153
Definition packet-tcap.h:117
Definition packet-tcap.h:132
Definition packet-tcap.h:93
Definition packet-tcap.h:138
Definition packet-tcap.h:101
Definition packet-tcap.h:128
Definition packet-tcap.h:72
nstime_t end_time
Definition packet-tcap.h:78
nstime_t begin_time
Definition packet-tcap.h:77
bool responded
Definition packet-tcap.h:79
Definition packet-tcap.h:146
Definition packet-tcap.h:109
Definition packet-tcap.h:162
Definition tvbuff-int.h:35