3 * $Id: packet-tcap.h,v 1.3 2004/03/19 07:54:58 guy Exp $
5 * Copyright 2003, Michael Lum <mlum [AT] telostech.com>,
6 * In association with Telos Technology Inc.
8 * Taken from packet-mtp3.h
10 * Ethereal - Network traffic analyzer
11 * By Gerald Combs <gerald@ethereal.com>
12 * Copyright 1998 Gerald Combs
14 * This program is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU General Public License
16 * as published by the Free Software Foundation; either version 2
17 * of the License, or (at your option) any later version.
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
24 * You should have received a copy of the GNU General Public License
25 * along with this program; if not, write to the Free Software
26 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
30 ITU_TCAP_STANDARD = 1,
31 ANSI_TCAP_STANDARD = 2
34 extern Tcap_Standard_Type tcap_standard;
36 extern const value_string tcap_component_type_str[];
38 /* TCAP component type */
39 #define TCAP_COMP_INVOKE 0xa1
40 #define TCAP_COMP_RRL 0xa2
41 #define TCAP_COMP_RE 0xa3
42 #define TCAP_COMP_REJECT 0xa4
43 #define TCAP_COMP_RRN 0xa7
45 /* ANSI TCAP component type */
46 #define ANSI_TC_INVOKE_L 0xe9
47 #define ANSI_TC_RRL 0xea
48 #define ANSI_TC_RE 0xeb
49 #define ANSI_TC_REJECT 0xec
50 #define ANSI_TC_INVOKE_N 0xed
51 #define ANSI_TC_RRN 0xee
53 #define TCAP_SEQ_TAG 0x30
54 #define TCAP_SET_TAG 0x31
56 #define TCAP_INVOKE_ID_TAG 0x02
57 #define TCAP_LINKED_ID_TAG 0x80
59 #define TCAP_EOC_LEN 2 /* 0x00 0x00 */
61 #define TCAP_CONSTRUCTOR(TCtag) (TCtag & 0x20)
63 extern int tcap_find_eoc(ASN1_SCK *asn1);
64 extern gboolean tcap_check_tag(ASN1_SCK *asn1, guint tag);