HACK: pinfo->private_data points to smb_info again
[wireshark-wip.git] / asn1 / tcap / packet-tcap-template.h
blob8d057c3713ef57d21bb01cdacb322f1f590bc2d7
1 /* packet-tcap.h
3 * $Id$
5 * Copyright 2004, Tim Endean <endeant@hotmail.com>
7 * Wireshark - Network traffic analyzer
8 * By Gerald Combs <gerald@wireshark.org>
9 * Copyright 1998 Gerald Combs
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License
13 * as published by the Free Software Foundation; either version 2
14 * of the License, or (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
27 #ifndef PACKET_tcap_H
28 #define PACKET_tcap_H
30 #include "ws_symbol_export.h"
32 /* TCAP component type */
33 #define TCAP_COMP_INVOKE 0xa1
34 #define TCAP_COMP_RRL 0xa2
35 #define TCAP_COMP_RE 0xa3
36 #define TCAP_COMP_REJECT 0xa4
37 #define TCAP_COMP_RRN 0xa7
40 #define ANSI_TC_INVOKE_L 0xe9
41 #define ANSI_TC_RRL 0xea
42 #define ANSI_TC_RE 0xeb
43 #define ANSI_TC_REJECT 0xec
44 #define ANSI_TC_INVOKE_N 0xed
45 #define ANSI_TC_RRN 0xee
48 #define TCAP_SEQ_TAG 0x30
49 #define TCAP_SET_TAG 0x31
51 #define TCAP_INVOKE_ID_TAG 0x02
52 #define TCAP_LINKED_ID_TAG 0x80
54 #define TCAP_EOC_LEN 2
56 #define TCAP_CONSTRUCTOR(TCtag) (TCtag & 0x20)
58 #define TC_BEGIN 1
59 #define TC_CONT 2
60 #define TC_END 3
61 #define TC_ABORT 4
62 #define TC_ANSI_ABORT 5
63 #define TC_ANSI_ALL 6
65 struct tcap_private_t {
66 gboolean acv; /* Is the Application Context Version present */
67 const void * oid;
68 guint32 session_id;
69 void * context;
70 gchar *TransactionID_str;
73 extern gint tcap_standard;
75 extern const value_string tcap_component_type_str[];
76 void proto_reg_handoff_tcap(void);
77 void proto_register_tcap(void);
79 extern dissector_handle_t get_itu_tcap_subdissector(guint32 ssn);
80 dissector_handle_t get_ansi_tcap_subdissector(guint32 ssn);
82 extern void add_ansi_tcap_subdissector(guint32 ssn, dissector_handle_t dissector);
83 WS_DLL_PUBLIC void add_itu_tcap_subdissector(guint32 ssn, dissector_handle_t dissector);
85 extern void delete_ansi_tcap_subdissector(guint32 ssn, dissector_handle_t dissector);
86 WS_DLL_PUBLIC void delete_itu_tcap_subdissector(guint32 ssn, dissector_handle_t dissector);
88 extern void call_tcap_dissector(dissector_handle_t, tvbuff_t*, packet_info*, proto_tree*);
90 #include "packet-tcap-exp.h"
92 #endif /* PACKET_tcap_H */