Wireshark  4.3.0
The Wireshark network protocol analyzer
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 <endeant@hotmail.com>
9  *
10  * Wireshark - Network traffic analyzer
11  * By Gerald Combs <gerald@wireshark.org>
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  gboolean acv; /* Is the Application Context Version present */
58  const void * oid;
59  guint32 session_id;
60  void * context;
61  gchar *TransactionID_str;
62  guint32 src_tid;
63  guint32 dst_tid;
64 };
65 
71 #define LENGTH_OID 23
73  struct tcaphash_context_key_t * key;
74  guint32 session_id;
75  guint32 first_frame;
76  guint32 last_frame;
79  gboolean responded;
80  gboolean closed;
81  gboolean upper_dissector;
82  gboolean oid_present;
83  gchar oid[LENGTH_OID+1];
84  gboolean 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  gboolean 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  gboolean 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  gboolean 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  gboolean father;
121  struct tcaphash_ansicall_t * next_ansicall;
122  struct tcaphash_ansicall_t * previous_ansicall;
123 };
124 
129  guint32 session_id;
130 };
131 
133  guint32 hashKey;
134  guint32 tid;
135  guint32 pc_hash;
136 };
137 
139  guint32 hashKey;
140  guint32 src_tid;
141  guint32 dst_tid;
142  guint32 opc_hash;
143  guint32 dpc_hash;
144 };
145 
147  guint32 hashKey;
148  guint32 tid;
149  guint32 opc_hash;
150  guint32 dpc_hash;
151 };
152 
154  guint32 hashKey;
155  guint32 tid;
156  guint32 opc_hash;
157  guint32 dpc_hash;
158 };
159 
160 
163  guint32 tcap_session_id;
164  guint32 src_tid;
165  guint32 dst_tid;
166  guint8 ope;
167 };
168 
173 struct tcapsrt_info_t * tcapsrt_razinfo(void);
174 
175 void 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 
198 WS_DLL_PUBLIC gboolean gtcap_StatSRT;
199 
200 extern gint tcap_standard;
201 
202 extern const value_string tcap_component_type_str[];
203 void proto_reg_handoff_tcap(void);
204 void proto_register_tcap(void);
205 
206 extern dissector_handle_t get_itu_tcap_subdissector(guint32 ssn);
207 dissector_handle_t get_ansi_tcap_subdissector(guint32 ssn);
208 
209 extern void add_ansi_tcap_subdissector(guint32 ssn, dissector_handle_t dissector);
210 WS_DLL_PUBLIC void add_itu_tcap_subdissector(guint32 ssn, dissector_handle_t dissector);
211 
212 extern void delete_ansi_tcap_subdissector(guint32 ssn, dissector_handle_t dissector);
213 WS_DLL_PUBLIC void delete_itu_tcap_subdissector(guint32 ssn, dissector_handle_t dissector);
214 
215 extern void call_tcap_dissector(dissector_handle_t, tvbuff_t*, packet_info*, proto_tree*);
216 
217 extern const value_string tcap_UniDialoguePDU_vals[];
218 extern const value_string tcap_DialoguePDU_vals[];
219 int 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_);
220 int 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:2897
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:44
Definition: proto.h:904
Definition: value_string.h:26
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
gboolean 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