aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-tcap.h
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2005-06-07 05:49:06 +0000
committerAnders Broman <anders.broman@ericsson.com>2005-06-07 05:49:06 +0000
commit86a56ba7cccfa5fec459904a57fcd7807cd8ef49 (patch)
tree35b9d1e26d85804314854f73fa1ad0ba15d32179 /epan/dissectors/packet-tcap.h
parent75ab9e7ad2438f5f7022a742807cbb48fd81bc21 (diff)
From Tim Endean:
- I have had to make some changes to packet-ber to allow for PRIVATE and APPLICATION tags. - Both ANSI and ITU variants supported without configuration. - Asn.1 dissectors can now register using an OID value as well as an SSN, the oid it tried first. svn path=/trunk/; revision=14572
Diffstat (limited to 'epan/dissectors/packet-tcap.h')
-rw-r--r--epan/dissectors/packet-tcap.h38
1 files changed, 24 insertions, 14 deletions
diff --git a/epan/dissectors/packet-tcap.h b/epan/dissectors/packet-tcap.h
index c644b0a54e..327a094ee9 100644
--- a/epan/dissectors/packet-tcap.h
+++ b/epan/dissectors/packet-tcap.h
@@ -1,11 +1,15 @@
+/* Do not modify this file. */
+/* It is created automatically by the ASN.1 to Ethereal dissector compiler */
+/* .\packet-tcap.h */
+/* ../../tools/asn2eth.py -X -b -e -p tcap -c tcap.cnf -s packet-tcap-template tcap.asn */
+
+/* Input file: packet-tcap-template.h */
+
/* packet-tcap.h
*
* $Id$
*
- * Copyright 2003, Michael Lum <mlum [AT] telostech.com>,
- * In association with Telos Technology Inc.
- *
- * Taken from packet-mtp3.h
+ * Copyright 2004, Tim Endean <endeant@hotmail.com>
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -26,15 +30,9 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-typedef enum {
- ITU_TCAP_STANDARD = 1,
- ANSI_TCAP_STANDARD = 2
-} Tcap_Standard_Type;
-
-extern gint tcap_standard;
-
-extern const value_string tcap_component_type_str[];
+#ifndef PACKET_tcap_H
+#define PACKET_tcap_H
/* TCAP component type */
#define TCAP_COMP_INVOKE 0xa1
#define TCAP_COMP_RRL 0xa2
@@ -42,7 +40,7 @@ extern const value_string tcap_component_type_str[];
#define TCAP_COMP_REJECT 0xa4
#define TCAP_COMP_RRN 0xa7
-/* ANSI TCAP component type */
+
#define ANSI_TC_INVOKE_L 0xe9
#define ANSI_TC_RRL 0xea
#define ANSI_TC_RE 0xeb
@@ -56,9 +54,21 @@ extern const value_string tcap_component_type_str[];
#define TCAP_INVOKE_ID_TAG 0x02
#define TCAP_LINKED_ID_TAG 0x80
-#define TCAP_EOC_LEN 2 /* 0x00 0x00 */
+#define TCAP_EOC_LEN 2
#define TCAP_CONSTRUCTOR(TCtag) (TCtag & 0x20)
+
+
+extern gint tcap_standard;
+
+extern const value_string tcap_component_type_str[];
+
+
extern int tcap_find_eoc(ASN1_SCK *asn1);
+
extern gboolean tcap_check_tag(ASN1_SCK *asn1, guint tag);
+
+
+
+#endif /* PACKET_INAP_H */