Second step in introducing asn context to BER dissectors just like in PER.
[obnox/wireshark/wip.git] / epan / dissectors / packet-tcap.h
1 /* Do not modify this file.                                                   */
2 /* It is created automatically by the ASN.1 to Wireshark dissector compiler   */
3 /* .\packet-tcap.h                                                            */
4 /* ../../tools/asn2wrs.py -b -e -p tcap -c tcap.cnf -s packet-tcap-template tcap.asn */
5
6 /* Input file: packet-tcap-template.h */
7
8 #line 1 "packet-tcap-template.h"
9 /* packet-tcap.h
10  *
11  * $Id$
12  *
13  * Copyright 2004, Tim Endean <endeant@hotmail.com>
14  *
15  * Wireshark - Network traffic analyzer
16  * By Gerald Combs <gerald@wireshark.org>
17  * Copyright 1998 Gerald Combs
18  *
19  * This program is free software; you can redistribute it and/or
20  * modify it under the terms of the GNU General Public License
21  * as published by the Free Software Foundation; either version 2
22  * of the License, or (at your option) any later version.
23  *
24  * This program is distributed in the hope that it will be useful,
25  * but WITHOUT ANY WARRANTY; without even the implied warranty of
26  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
27  * GNU General Public License for more details.
28  *
29  * You should have received a copy of the GNU General Public License
30  * along with this program; if not, write to the Free Software
31  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
32  */
33
34
35 #ifndef PACKET_tcap_H
36 #define PACKET_tcap_H
37 /* TCAP component type */
38 #define TCAP_COMP_INVOKE        0xa1
39 #define TCAP_COMP_RRL           0xa2
40 #define TCAP_COMP_RE            0xa3
41 #define TCAP_COMP_REJECT        0xa4
42 #define TCAP_COMP_RRN           0xa7
43
44
45 #define ANSI_TC_INVOKE_L        0xe9
46 #define ANSI_TC_RRL             0xea
47 #define ANSI_TC_RE              0xeb
48 #define ANSI_TC_REJECT          0xec
49 #define ANSI_TC_INVOKE_N        0xed
50 #define ANSI_TC_RRN             0xee
51
52
53 #define TCAP_SEQ_TAG            0x30
54 #define TCAP_SET_TAG            0x31
55
56 #define TCAP_INVOKE_ID_TAG      0x02
57 #define TCAP_LINKED_ID_TAG      0x80
58
59 #define TCAP_EOC_LEN            2               
60
61 #define TCAP_CONSTRUCTOR(TCtag) (TCtag & 0x20)
62
63 #define TC_BEGIN 1
64 #define TC_CONT 2
65 #define TC_END 3
66 #define TC_ABORT 4
67
68 struct tcap_private_t {
69   gboolean acv; /* Is the Application Context Version present */
70   void * oid;
71   guint32 session_id;
72   void * context;
73   gchar *TransactionID_str;
74 };
75
76 extern gint tcap_standard;
77
78 extern const value_string tcap_component_type_str[];
79
80 extern dissector_handle_t get_itu_tcap_subdissector(guint32 ssn);
81
82 extern void add_ansi_tcap_subdissector(guint32 ssn, dissector_handle_t dissector);
83 extern void add_itu_tcap_subdissector(guint32 ssn, dissector_handle_t dissector);
84
85 extern void delete_ansi_tcap_subdissector(guint32 ssn, dissector_handle_t dissector);
86 extern void delete_itu_tcap_subdissector(guint32 ssn, dissector_handle_t dissector);
87
88 extern void call_tcap_dissector(dissector_handle_t, tvbuff_t*, packet_info*, proto_tree*);
89
90
91 /*--- Included file: packet-tcap-exp.h ---*/
92 #line 1 "packet-tcap-exp.h"
93 extern const value_string tcap_DialoguePDU_vals[];
94 extern const value_string tcap_UniDialoguePDU_vals[];
95 int dissect_tcap_DialoguePDU(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_);
96 int dissect_tcap_UniDialoguePDU(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_);
97
98 /*--- End of included file: packet-tcap-exp.h ---*/
99 #line 83 "packet-tcap-template.h"
100
101 #endif  /* PACKET_tcap_H */