/* Do not modify this file. */
/* It is created automatically by the ASN.1 to Wireshark dissector compiler */
-/* .\packet-tcap.c */
-/* ../../tools/asn2wrs.py -b -e -p tcap -c tcap.cnf -s packet-tcap-template tcap.asn */
+/* packet-tcap.c */
+/* ../../tools/asn2wrs.py -b -p tcap -c ./tcap.cnf -s ./packet-tcap-template -D . tcap.asn UnidialoguePDUs.asn DialoguePDUs.asn */
/* Input file: packet-tcap-template.c */
* Built from the gsm-map dissector Copyright 2004 - 2005, Anders Broman <anders.broman@ericsson.com>
*
* $Id$
+ *
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
#include <glib.h>
#include <epan/packet.h>
#include <epan/prefs.h>
-#include <epan/conversation.h>
-#include <epan/oid_resolv.h>
-#include <epan/emem.h>
+#include <epan/oids.h>
#include <epan/asn1.h>
+#include <epan/strutil.h>
-#include <stdio.h>
#include <string.h>
#include "packet-ber.h"
#include "packet-tcap.h"
-#include "epan/tcap-persistentdata.h"
+#include <epan/tcap-persistentdata.h>
#define PNAME "Transaction Capabilities Application Part"
#define PSNAME "TCAP"
#define PFNAME "tcap"
/* Initialize the protocol and registered fields */
-int proto_tcap = -1;
+static int proto_tcap = -1;
static int hf_tcap_tag = -1;
static int hf_tcap_length = -1;
static int hf_tcap_data = -1;
/*--- Included file: packet-tcap-hf.c ---*/
#line 1 "packet-tcap-hf.c"
-static int hf_tcap_DialoguePDU_PDU = -1; /* DialoguePDU */
static int hf_tcap_UniDialoguePDU_PDU = -1; /* UniDialoguePDU */
-static int hf_tcap_dialogueRequest = -1; /* AARQ_apdu */
-static int hf_tcap_dialogueResponse = -1; /* AARE_apdu */
-static int hf_tcap_dialogueAbort = -1; /* ABRT_apdu */
+static int hf_tcap_DialoguePDU_PDU = -1; /* DialoguePDU */
static int hf_tcap_oid = -1; /* OBJECT_IDENTIFIER */
static int hf_tcap_dialog = -1; /* Dialog1 */
-static int hf_tcap_useroid = -1; /* UserInfoOID */
-static int hf_tcap_externuserinfo = -1; /* ExternUserInfo */
-static int hf_tcap_protocol_versionrq = -1; /* T_protocol_versionrq */
-static int hf_tcap_application_context_name = -1; /* Applicationcontext */
-static int hf_tcap_user_information = -1; /* User_information */
-static int hf_tcap_protocol_versionre = -1; /* T_protocol_versionre */
-static int hf_tcap_result = -1; /* Associate_result */
-static int hf_tcap_result_source_diagnostic = -1; /* Associate_source_diagnostic */
-static int hf_tcap_reasonrq = -1; /* Release_request_reason */
-static int hf_tcap_reasonre = -1; /* Release_response_reason */
-static int hf_tcap_abort_source = -1; /* ABRT_source */
-static int hf_tcap_dialogue_service_user = -1; /* T_dialogue_service_user */
-static int hf_tcap_dialogue_service_provider = -1; /* T_dialogue_service_provider */
-static int hf_tcap_unidialoguePDU = -1; /* AUDT_apdu */
-static int hf_tcap_protocol_version3 = -1; /* T_protocol_version3 */
static int hf_tcap_unidirectional = -1; /* Unidirectional */
static int hf_tcap_begin = -1; /* Begin */
static int hf_tcap_end = -1; /* End */
static int hf_tcap_continue = -1; /* Continue */
static int hf_tcap_abort = -1; /* Abort */
-static int hf_tcap_ansiunidirectional = -1; /* UniTransactionPDU */
-static int hf_tcap_ansiqueryWithPerm = -1; /* TransactionPDU */
-static int hf_tcap_ansiqueryWithoutPerm = -1; /* TransactionPDU */
-static int hf_tcap_ansiresponse = -1; /* TransactionPDU */
-static int hf_tcap_ansiconversationWithPerm = -1; /* TransactionPDU */
-static int hf_tcap_ansiconversationWithoutPerm = -1; /* TransactionPDU */
-static int hf_tcap_ansiabort = -1; /* AbortPDU */
static int hf_tcap_dialoguePortion = -1; /* DialoguePortion */
static int hf_tcap_components = -1; /* ComponentPortion */
static int hf_tcap_otid = -1; /* OrigTransactionID */
static int hf_tcap_reason = -1; /* Reason */
static int hf_tcap_p_abortCause = -1; /* P_AbortCause */
static int hf_tcap_u_abortCause = -1; /* DialoguePortion */
-static int hf_tcap_ComponentPortion_item = -1; /* Component */
+static int hf_tcap__untag_item = -1; /* Component */
static int hf_tcap_invoke = -1; /* Invoke */
static int hf_tcap_returnResultLast = -1; /* ReturnResult */
static int hf_tcap_returnError = -1; /* ReturnError */
static int hf_tcap_returnErrorProblem = -1; /* ReturnErrorProblem */
static int hf_tcap_localValue = -1; /* INTEGER */
static int hf_tcap_globalValue = -1; /* OBJECT_IDENTIFIER */
-static int hf_tcap_identifier = -1; /* TransactionID */
-static int hf_tcap_dialoguePortionansi = -1; /* DialoguePortionANSI */
-static int hf_tcap_componentPortion = -1; /* ComponentSequence */
-static int hf_tcap_causeInformation = -1; /* T_causeInformation */
-static int hf_tcap_abortCause = -1; /* P_Abort_cause */
-static int hf_tcap_userInformation = -1; /* UserInformation */
-static int hf_tcap_version = -1; /* ProtocolVersion */
-static int hf_tcap_applicationContext = -1; /* T_applicationContext */
-static int hf_tcap_integerApplicationId = -1; /* IntegerApplicationContext */
-static int hf_tcap_objectApplicationId = -1; /* ObjectIDApplicationContext */
-static int hf_tcap_securityContext = -1; /* T_securityContext */
-static int hf_tcap_integerSecurityId = -1; /* INTEGER */
-static int hf_tcap_objectSecurityId = -1; /* OBJECT_IDENTIFIER */
-static int hf_tcap_confidentiality = -1; /* Confidentiality */
-static int hf_tcap_confidentialityId = -1; /* T_confidentialityId */
-static int hf_tcap_integerConfidentialityId = -1; /* INTEGER */
-static int hf_tcap_objectConfidentialityId = -1; /* OBJECT_IDENTIFIER */
-static int hf_tcap_ComponentSequence_item = -1; /* ComponentPDU */
-static int hf_tcap_invokeLastansi = -1; /* InvokePDU */
-static int hf_tcap_returnResultLastansi = -1; /* ReturnResultPDU */
-static int hf_tcap_returnErroransi = -1; /* ReturnErrorPDU */
-static int hf_tcap_rejectansi = -1; /* RejectPDU */
-static int hf_tcap_invokeNotLastansi = -1; /* InvokePDU */
-static int hf_tcap_returnResultNotLastansi = -1; /* ReturnResultPDU */
-static int hf_tcap_componentIDs = -1; /* OCTET_STRING_SIZE_0_2 */
-static int hf_tcap_operationCode = -1; /* OperationCode */
-static int hf_tcap_parameterinv = -1; /* ANSIparamch */
-static int hf_tcap_ansiparams = -1; /* ANSIParameters */
-static int hf_tcap_ansiparams1 = -1; /* ANSIParameters */
-static int hf_tcap_ansiparams2 = -1; /* ANSIParameters */
-static int hf_tcap_ansiparams3 = -1; /* ANSIParameters */
-static int hf_tcap_ansiparams4 = -1; /* ANSIParameters */
-static int hf_tcap_ansiparams5 = -1; /* ANSIParameters */
-static int hf_tcap_ansiparams6 = -1; /* ANSIParameters */
-static int hf_tcap_ansiparams7 = -1; /* ANSIParameters */
-static int hf_tcap_ansiparams8 = -1; /* ANSIParameters */
-static int hf_tcap_ansiparams9 = -1; /* ANSIParameters */
-static int hf_tcap_ansiparams10 = -1; /* ANSIParameters */
-static int hf_tcap_ansiparams11 = -1; /* ANSIParameters */
-static int hf_tcap_ansiparams12 = -1; /* ANSIParameters */
-static int hf_tcap_ansiparams13 = -1; /* ANSIParameters */
-static int hf_tcap_ansiparams14 = -1; /* ANSIParameters */
-static int hf_tcap_ansiparams15 = -1; /* ANSIParameters */
-static int hf_tcap_ansiparams16 = -1; /* ANSIParameters */
-static int hf_tcap_ansiparams17 = -1; /* ANSIParameters */
-static int hf_tcap_ansiparams18 = -1; /* ANSIParameters */
-static int hf_tcap_ansiparams19 = -1; /* ANSIParameters */
-static int hf_tcap_ansiparams20 = -1; /* ANSIParameters */
-static int hf_tcap_ansiparams21 = -1; /* ANSIParameters */
-static int hf_tcap_componentID = -1; /* ComponentID */
-static int hf_tcap_parameterrr = -1; /* ANSIparamch */
-static int hf_tcap_parameterre = -1; /* ANSIparamch */
-static int hf_tcap_rejectProblem = -1; /* ProblemPDU */
-static int hf_tcap_parameterrj = -1; /* ANSIparamch */
-static int hf_tcap_national = -1; /* INTEGER_M32768_32767 */
-static int hf_tcap_private = -1; /* INTEGER */
static int hf_tcap_nationaler = -1; /* INTEGER_M32768_32767 */
static int hf_tcap_privateer = -1; /* INTEGER */
+static int hf_tcap_unidialoguePDU = -1; /* AUDT_apdu */
+static int hf_tcap_audt_protocol_version = -1; /* AUDT_protocol_version */
+static int hf_tcap_audt_application_context_name = -1; /* AUDT_application_context_name */
+static int hf_tcap_audt_user_information = -1; /* AUDT_user_information */
+static int hf_tcap_audt_user_information_item = -1; /* EXTERNAL */
+static int hf_tcap_dialogueRequest = -1; /* AARQ_apdu */
+static int hf_tcap_dialogueResponse = -1; /* AARE_apdu */
+static int hf_tcap_dialogueAbort = -1; /* ABRT_apdu */
+static int hf_tcap_aarq_protocol_version = -1; /* AARQ_protocol_version */
+static int hf_tcap_aarq_application_context_name = -1; /* AARQ_application_context_name */
+static int hf_tcap_aarq_user_information = -1; /* AARQ_user_information */
+static int hf_tcap_aarq_user_information_item = -1; /* EXTERNAL */
+static int hf_tcap_aare_protocol_version = -1; /* AARE_protocol_version */
+static int hf_tcap_aare_application_context_name = -1; /* AARE_application_context_name */
+static int hf_tcap_result = -1; /* Associate_result */
+static int hf_tcap_result_source_diagnostic = -1; /* Associate_source_diagnostic */
+static int hf_tcap_aare_user_information = -1; /* AARE_user_information */
+static int hf_tcap_aare_user_information_item = -1; /* EXTERNAL */
+static int hf_tcap_abort_source = -1; /* ABRT_source */
+static int hf_tcap_abrt_user_information = -1; /* ABRT_user_information */
+static int hf_tcap_abrt_user_information_item = -1; /* EXTERNAL */
+static int hf_tcap_dialogue_service_user = -1; /* T_dialogue_service_user */
+static int hf_tcap_dialogue_service_provider = -1; /* T_dialogue_service_provider */
/* named bits */
-static int hf_tcap_T_protocol_versionrq_version1 = -1;
-static int hf_tcap_T_protocol_versionre_version1 = -1;
-static int hf_tcap_T_protocol_version3_version1 = -1;
+static int hf_tcap_AUDT_protocol_version_version1 = -1;
+static int hf_tcap_AARQ_protocol_version_version1 = -1;
+static int hf_tcap_AARE_protocol_version_version1 = -1;
/*--- End of included file: packet-tcap-hf.c ---*/
-#line 63 "packet-tcap-template.c"
+#line 62 "packet-tcap-template.c"
/* Initialize the subtree pointers */
static gint ett_tcap = -1;
/*--- Included file: packet-tcap-ett.c ---*/
#line 1 "packet-tcap-ett.c"
-static gint ett_tcap_DialoguePDU = -1;
-static gint ett_tcap_ExternalPDU = -1;
-static gint ett_tcap_UserInformation = -1;
-static gint ett_tcap_AARQ_apdu = -1;
-static gint ett_tcap_T_protocol_versionrq = -1;
-static gint ett_tcap_AARE_apdu = -1;
-static gint ett_tcap_T_protocol_versionre = -1;
-static gint ett_tcap_RLRQ_apdu = -1;
-static gint ett_tcap_RLRE_apdu = -1;
-static gint ett_tcap_ABRT_apdu = -1;
-static gint ett_tcap_Associate_source_diagnostic = -1;
-static gint ett_tcap_UniDialoguePDU = -1;
-static gint ett_tcap_AUDT_apdu = -1;
-static gint ett_tcap_T_protocol_version3 = -1;
+static gint ett_tcap_ExternalPDU_U = -1;
static gint ett_tcap_TCMessage = -1;
static gint ett_tcap_Unidirectional = -1;
static gint ett_tcap_Begin = -1;
static gint ett_tcap_Continue = -1;
static gint ett_tcap_Abort = -1;
static gint ett_tcap_Reason = -1;
-static gint ett_tcap_ComponentPortion = -1;
+static gint ett_tcap_SEQUENCE_SIZE_1_MAX_OF_Component = -1;
static gint ett_tcap_Component = -1;
static gint ett_tcap_Invoke = -1;
static gint ett_tcap_ReturnResult = -1;
static gint ett_tcap_T_problem = -1;
static gint ett_tcap_OPERATION = -1;
static gint ett_tcap_ERROR = -1;
-static gint ett_tcap_UniTransactionPDU = -1;
-static gint ett_tcap_TransactionPDU = -1;
-static gint ett_tcap_AbortPDU = -1;
-static gint ett_tcap_T_causeInformation = -1;
-static gint ett_tcap_DialoguePortionANSI = -1;
-static gint ett_tcap_T_applicationContext = -1;
-static gint ett_tcap_T_securityContext = -1;
-static gint ett_tcap_Confidentiality = -1;
-static gint ett_tcap_T_confidentialityId = -1;
-static gint ett_tcap_ComponentSequence = -1;
-static gint ett_tcap_ComponentPDU = -1;
-static gint ett_tcap_InvokePDU = -1;
-static gint ett_tcap_ANSIparamch = -1;
-static gint ett_tcap_ReturnResultPDU = -1;
-static gint ett_tcap_ReturnErrorPDU = -1;
-static gint ett_tcap_RejectPDU = -1;
-static gint ett_tcap_OperationCode = -1;
static gint ett_tcap_ErrorCode = -1;
+static gint ett_tcap_UniDialoguePDU = -1;
+static gint ett_tcap_AUDT_apdu_U = -1;
+static gint ett_tcap_AUDT_protocol_version = -1;
+static gint ett_tcap_AUDT_user_information = -1;
+static gint ett_tcap_DialoguePDU = -1;
+static gint ett_tcap_AARQ_apdu_U = -1;
+static gint ett_tcap_AARQ_protocol_version = -1;
+static gint ett_tcap_AARQ_user_information = -1;
+static gint ett_tcap_AARE_apdu_U = -1;
+static gint ett_tcap_AARE_protocol_version = -1;
+static gint ett_tcap_AARE_user_information = -1;
+static gint ett_tcap_ABRT_apdu_U = -1;
+static gint ett_tcap_ABRT_user_information = -1;
+static gint ett_tcap_Associate_source_diagnostic = -1;
/*--- End of included file: packet-tcap-ett.c ---*/
-#line 79 "packet-tcap-template.c"
+#line 78 "packet-tcap-template.c"
#define MAX_SSN 254
static range_t *global_ssn_range;
extern guint gtcap_LostTimeout;
static dissector_handle_t tcap_handle = NULL;
-static dissector_table_t ber_oid_dissector_table=NULL;
+static dissector_table_t ber_oid_dissector_table;
static const char * cur_oid;
static const char * tcapext_oid;
static proto_tree * tcap_top_tree=NULL;
static proto_tree * tcap_stat_tree=NULL;
-static proto_item * tcap_stat_item=NULL;
static dissector_handle_t data_handle;
-
-static dissector_table_t sccp_ssn_table;
+static dissector_handle_t ansi_tcap_handle;
static void raz_tcap_private(struct tcap_private_t * p_tcap_private);
-static int dissect_tcap_param(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset);
-static int dissect_tcap_UserInformation(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, asn1_ctx_t *actx _U_, proto_tree *tree, int hf_index _U_);
-static int dissect_tcap_TheComponent(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, asn1_ctx_t *actx _U_, proto_tree *tree, int hf_index _U_);
-static int dissect_tcap_TheExternUserInfo(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset,asn1_ctx_t *actx _U_, proto_tree *tree, int hf_index _U_);
+static int dissect_tcap_param(asn1_ctx_t *actx, proto_tree *tree, tvbuff_t *tvb, int offset);
+static int dissect_tcap_ITU_ComponentPDU(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, asn1_ctx_t *actx _U_, proto_tree *tree, int hf_index _U_);
static GHashTable* ansi_sub_dissectors = NULL;
static GHashTable* itu_sub_dissectors = NULL;
extern void delete_ansi_tcap_subdissector(guint32 ssn, dissector_handle_t dissector _U_) {
g_hash_table_remove(ansi_sub_dissectors,GUINT_TO_POINTER(ssn));
- dissector_delete("sccp.ssn",ssn,tcap_handle);
+ if (!get_itu_tcap_subdissector(ssn))
+ dissector_delete("sccp.ssn",ssn,tcap_handle);
}
extern void delete_itu_tcap_subdissector(guint32 ssn, dissector_handle_t dissector _U_) {
g_hash_table_remove(itu_sub_dissectors,GUINT_TO_POINTER(ssn));
- dissector_delete("sccp.ssn", ssn,tcap_handle);
+ if (!get_ansi_tcap_subdissector(ssn))
+ dissector_delete("sccp.ssn", ssn,tcap_handle);
}
dissector_handle_t get_ansi_tcap_subdissector(guint32 ssn) {
/*--- Included file: packet-tcap-fn.c ---*/
#line 1 "packet-tcap-fn.c"
-/*--- Fields for imported types ---*/
-
-
-
-static const asn_namedbit T_protocol_versionrq_bits[] = {
- { 0, &hf_tcap_T_protocol_versionrq_version1, -1, -1, "version1", NULL },
- { 0, NULL, 0, 0, NULL, NULL }
-};
-
-static int
-dissect_tcap_T_protocol_versionrq(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_ber_bitstring(implicit_tag, actx->pinfo, tree, tvb, offset,
- T_protocol_versionrq_bits, hf_index, ett_tcap_T_protocol_versionrq,
- NULL);
-
- return offset;
-}
-static int dissect_protocol_versionrq_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_T_protocol_versionrq(TRUE, tvb, offset, actx, tree, hf_tcap_protocol_versionrq);
-}
-
-
-
-static int
-dissect_tcap_Applicationcontext(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
-#line 116 "tcap.cnf"
- offset = dissect_ber_object_identifier_str(implicit_tag, actx->pinfo, tree, tvb, offset, hf_index, &cur_oid);
-
- tcap_private.oid= (void*) cur_oid;
- tcap_private.acv=TRUE;
-
-
-
-
- return offset;
-}
-static int dissect_application_context_name(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_Applicationcontext(FALSE, tvb, offset, actx, tree, hf_tcap_application_context_name);
-}
-
-
-
-static int
-dissect_tcap_User_information(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
-#line 95 "tcap.cnf"
-tvbuff_t *next_tvb;
-gint8 class;
- gboolean pc;
- gint tag;
- guint32 len;
- gint ind_field;
-
-
-offset = dissect_ber_identifier(actx->pinfo, tree, tvb, offset, &class, &pc, &tag);
-offset = dissect_ber_length(actx->pinfo, tree, tvb, offset, &len, &ind_field);
-next_tvb = tvb_new_subset(tvb, offset, len-(2*ind_field), len-(2*ind_field));
-if (!next_tvb)
- return offset+len;
-dissect_tcap_UserInformation(TRUE, next_tvb, 0, actx, tree, -1);
-
-
-return offset+len;
-
-
- return offset;
-}
-static int dissect_user_information_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_User_information(TRUE, tvb, offset, actx, tree, hf_tcap_user_information);
-}
-
-
-static const ber_sequence_t AARQ_apdu_sequence[] = {
- { BER_CLASS_CON, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_protocol_versionrq_impl },
- { BER_CLASS_CON, 1, 0, dissect_application_context_name },
- { BER_CLASS_CON, 30, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_user_information_impl },
- { 0, 0, 0, NULL }
-};
-
-static int
-dissect_tcap_AARQ_apdu(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
- AARQ_apdu_sequence, hf_index, ett_tcap_AARQ_apdu);
-
- return offset;
-}
-static int dissect_dialogueRequest(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_AARQ_apdu(FALSE, tvb, offset, actx, tree, hf_tcap_dialogueRequest);
-}
-
-
-static const asn_namedbit T_protocol_versionre_bits[] = {
- { 0, &hf_tcap_T_protocol_versionre_version1, -1, -1, "version1", NULL },
- { 0, NULL, 0, 0, NULL, NULL }
-};
-
-static int
-dissect_tcap_T_protocol_versionre(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_ber_bitstring(implicit_tag, actx->pinfo, tree, tvb, offset,
- T_protocol_versionre_bits, hf_index, ett_tcap_T_protocol_versionre,
- NULL);
-
- return offset;
-}
-static int dissect_protocol_versionre_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_T_protocol_versionre(TRUE, tvb, offset, actx, tree, hf_tcap_protocol_versionre);
-}
-
-
-static const value_string tcap_Associate_result_vals[] = {
- { 0, "accepted" },
- { 1, "reject-permanent" },
- { 0, NULL }
-};
-
-
-static int
-dissect_tcap_Associate_result(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_ber_integer(implicit_tag, actx->pinfo, tree, tvb, offset, hf_index,
- NULL);
-
- return offset;
-}
-static int dissect_result(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_Associate_result(FALSE, tvb, offset, actx, tree, hf_tcap_result);
-}
-
-
-static const value_string tcap_T_dialogue_service_user_vals[] = {
- { 0, "null" },
- { 1, "no-reason-given" },
- { 2, "application-context-name-not-supported" },
- { 0, NULL }
-};
-
-
-static int
-dissect_tcap_T_dialogue_service_user(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_ber_integer(implicit_tag, actx->pinfo, tree, tvb, offset, hf_index,
- NULL);
-
- return offset;
-}
-static int dissect_dialogue_service_user(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_T_dialogue_service_user(FALSE, tvb, offset, actx, tree, hf_tcap_dialogue_service_user);
-}
-
-
-static const value_string tcap_T_dialogue_service_provider_vals[] = {
- { 0, "null" },
- { 1, "no-reason-given" },
- { 2, "no-common-dialogue-portion" },
- { 0, NULL }
-};
-
-
-static int
-dissect_tcap_T_dialogue_service_provider(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_ber_integer(implicit_tag, actx->pinfo, tree, tvb, offset, hf_index,
- NULL);
-
- return offset;
-}
-static int dissect_dialogue_service_provider(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_T_dialogue_service_provider(FALSE, tvb, offset, actx, tree, hf_tcap_dialogue_service_provider);
-}
-
-
-static const value_string tcap_Associate_source_diagnostic_vals[] = {
- { 1, "dialogue-service-user" },
- { 2, "dialogue-service-provider" },
- { 0, NULL }
-};
-
-static const ber_choice_t Associate_source_diagnostic_choice[] = {
- { 1, BER_CLASS_CON, 1, 0, dissect_dialogue_service_user },
- { 2, BER_CLASS_CON, 2, 0, dissect_dialogue_service_provider },
- { 0, 0, 0, 0, NULL }
-};
-
-static int
-dissect_tcap_Associate_source_diagnostic(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_ber_choice(actx, tree, tvb, offset,
- Associate_source_diagnostic_choice, hf_index, ett_tcap_Associate_source_diagnostic,
- NULL);
-
- return offset;
-}
-static int dissect_result_source_diagnostic(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_Associate_source_diagnostic(FALSE, tvb, offset, actx, tree, hf_tcap_result_source_diagnostic);
-}
-
-
-static const ber_sequence_t AARE_apdu_sequence[] = {
- { BER_CLASS_CON, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_protocol_versionre_impl },
- { BER_CLASS_CON, 1, 0, dissect_application_context_name },
- { BER_CLASS_CON, 2, 0, dissect_result },
- { BER_CLASS_CON, 3, BER_FLAGS_NOTCHKTAG, dissect_result_source_diagnostic },
- { BER_CLASS_CON, 30, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_user_information_impl },
- { 0, 0, 0, NULL }
-};
-
-static int
-dissect_tcap_AARE_apdu(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
- AARE_apdu_sequence, hf_index, ett_tcap_AARE_apdu);
-
- return offset;
-}
-static int dissect_dialogueResponse(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_AARE_apdu(FALSE, tvb, offset, actx, tree, hf_tcap_dialogueResponse);
-}
-
-
-static const value_string tcap_ABRT_source_vals[] = {
- { 0, "dialogue-service-user" },
- { 1, "dialogue-service-provider" },
- { 0, NULL }
-};
-
-
-static int
-dissect_tcap_ABRT_source(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_ber_integer(implicit_tag, actx->pinfo, tree, tvb, offset, hf_index,
- NULL);
-
- return offset;
-}
-static int dissect_abort_source_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_ABRT_source(TRUE, tvb, offset, actx, tree, hf_tcap_abort_source);
-}
-
-
-static const ber_sequence_t ABRT_apdu_sequence[] = {
- { BER_CLASS_CON, 0, BER_FLAGS_IMPLTAG, dissect_abort_source_impl },
- { BER_CLASS_CON, 30, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_user_information_impl },
- { 0, 0, 0, NULL }
-};
-
-static int
-dissect_tcap_ABRT_apdu(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
- ABRT_apdu_sequence, hf_index, ett_tcap_ABRT_apdu);
-
- return offset;
-}
-static int dissect_dialogueAbort(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_ABRT_apdu(FALSE, tvb, offset, actx, tree, hf_tcap_dialogueAbort);
-}
-
-
-const value_string tcap_DialoguePDU_vals[] = {
- { 0, "dialogueRequest" },
- { 1, "dialogueResponse" },
- { 4, "dialogueAbort" },
- { 0, NULL }
-};
-
-static const ber_choice_t DialoguePDU_choice[] = {
- { 0, BER_CLASS_APP, 0, BER_FLAGS_NOOWNTAG, dissect_dialogueRequest },
- { 1, BER_CLASS_APP, 1, BER_FLAGS_NOOWNTAG, dissect_dialogueResponse },
- { 4, BER_CLASS_APP, 4, BER_FLAGS_NOOWNTAG, dissect_dialogueAbort },
- { 0, 0, 0, 0, NULL }
-};
-
-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_) {
- offset = dissect_ber_choice(actx, tree, tvb, offset,
- DialoguePDU_choice, hf_index, ett_tcap_DialoguePDU,
- NULL);
-
- return offset;
-}
-
static int
dissect_tcap_OBJECT_IDENTIFIER(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_ber_object_identifier(implicit_tag, actx->pinfo, tree, tvb, offset, hf_index, NULL);
+ offset = dissect_ber_object_identifier(implicit_tag, actx, tree, tvb, offset, hf_index, NULL);
return offset;
}
-static int dissect_oid(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_OBJECT_IDENTIFIER(FALSE, tvb, offset, actx, tree, hf_tcap_oid);
-}
-static int dissect_globalValue(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_OBJECT_IDENTIFIER(FALSE, tvb, offset, actx, tree, hf_tcap_globalValue);
-}
-static int dissect_objectSecurityId_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_OBJECT_IDENTIFIER(TRUE, tvb, offset, actx, tree, hf_tcap_objectSecurityId);
-}
-static int dissect_objectConfidentialityId_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_OBJECT_IDENTIFIER(TRUE, tvb, offset, actx, tree, hf_tcap_objectConfidentialityId);
-}
static int
dissect_tcap_Dialog1(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
-#line 60 "tcap.cnf"
-gint8 class;
- gboolean pc;
- gint tag;
- guint32 len;
- gint ind_field;
-
-/* Calculate the correct length, Tags will be shown in DialoguePDU */
-offset = get_ber_identifier(tvb, offset, &class, &pc, &tag);
-offset = get_ber_length(tree, tvb, offset, &len, &ind_field);
-
- dissect_tcap_DialoguePDU(TRUE, tvb, 0, actx, tree, -1);
-
-return offset+len;
-
-
-
- return offset;
-}
-static int dissect_dialog_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_Dialog1(TRUE, tvb, offset, actx, tree, hf_tcap_dialog);
-}
-
-
-static const ber_sequence_t ExternalPDU_sequence[] = {
- { BER_CLASS_UNI, BER_UNI_TAG_OID, BER_FLAGS_NOOWNTAG, dissect_oid },
- { BER_CLASS_CON, 0, BER_FLAGS_IMPLTAG, dissect_dialog_impl },
- { 0, 0, 0, NULL }
-};
-
-static int
-dissect_tcap_ExternalPDU(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
-#line 49 "tcap.cnf"
-gint8 class;
- gboolean pc;
- gint tag;
- guint32 len;
- gint ind_field;
- /* Workaround for tagged fields */
-offset = dissect_ber_identifier(actx->pinfo, tree, tvb, offset, &class, &pc, &tag);
-offset = dissect_ber_length(actx->pinfo, tree, tvb, offset, &len, &ind_field);
- offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
- ExternalPDU_sequence, hf_index, ett_tcap_ExternalPDU);
-
-
-
-
- return offset;
-}
-
-
-
-static int
-dissect_tcap_UserInfoOID(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_ber_object_identifier(implicit_tag, actx->pinfo, tree, tvb, offset, hf_index, NULL);
-
- return offset;
-}
-static int dissect_useroid(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_UserInfoOID(FALSE, tvb, offset, actx, tree, hf_tcap_useroid);
-}
-
-
-
-static int
-dissect_tcap_ExternUserInfo(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
-#line 128 "tcap.cnf"
-dissect_tcap_TheExternUserInfo(implicit_tag, tvb, offset, actx, tree, hf_index);
-
-
-
- return offset;
-}
-static int dissect_externuserinfo_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_ExternUserInfo(TRUE, tvb, offset, actx, tree, hf_tcap_externuserinfo);
-}
-
-
-static const ber_sequence_t UserInformation_sequence[] = {
- { BER_CLASS_UNI, BER_UNI_TAG_OID, BER_FLAGS_NOOWNTAG, dissect_useroid },
- { BER_CLASS_CON, 0, BER_FLAGS_IMPLTAG, dissect_externuserinfo_impl },
- { 0, 0, 0, NULL }
-};
-
-static int
-dissect_tcap_UserInformation(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
- UserInformation_sequence, hf_index, ett_tcap_UserInformation);
-
- return offset;
-}
-static int dissect_userInformation(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_UserInformation(FALSE, tvb, offset, actx, tree, hf_tcap_userInformation);
-}
-
+#line 69 "tcap.cnf"
-static const value_string tcap_Release_request_reason_vals[] = {
- { 0, "normal" },
- { 1, "urgent" },
- { 30, "user-defined" },
- { 0, NULL }
-};
+ offset = dissect_tcap_DialoguePDU(TRUE, tvb, offset, actx, tree, -1);
-static int
-dissect_tcap_Release_request_reason(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_ber_integer(implicit_tag, actx->pinfo, tree, tvb, offset, hf_index,
- NULL);
return offset;
}
-static int dissect_reasonrq_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_Release_request_reason(TRUE, tvb, offset, actx, tree, hf_tcap_reasonrq);
-}
-static const ber_sequence_t RLRQ_apdu_sequence[] = {
- { BER_CLASS_CON, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_reasonrq_impl },
- { BER_CLASS_CON, 30, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_user_information_impl },
- { 0, 0, 0, NULL }
+static const ber_sequence_t ExternalPDU_U_sequence[] = {
+ { &hf_tcap_oid , BER_CLASS_UNI, BER_UNI_TAG_OID, BER_FLAGS_NOOWNTAG, dissect_tcap_OBJECT_IDENTIFIER },
+ { &hf_tcap_dialog , BER_CLASS_CON, 0, BER_FLAGS_IMPLTAG, dissect_tcap_Dialog1 },
+ { NULL, 0, 0, 0, NULL }
};
static int
-dissect_tcap_RLRQ_apdu(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+dissect_tcap_ExternalPDU_U(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
- RLRQ_apdu_sequence, hf_index, ett_tcap_RLRQ_apdu);
+ ExternalPDU_U_sequence, hf_index, ett_tcap_ExternalPDU_U);
return offset;
}
-static const value_string tcap_Release_response_reason_vals[] = {
- { 0, "normal" },
- { 1, "not-finished" },
- { 30, "user-defined" },
- { 0, NULL }
-};
-
static int
-dissect_tcap_Release_response_reason(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_ber_integer(implicit_tag, actx->pinfo, tree, tvb, offset, hf_index,
- NULL);
-
- return offset;
-}
-static int dissect_reasonre_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_Release_response_reason(TRUE, tvb, offset, actx, tree, hf_tcap_reasonre);
-}
-
-
-static const ber_sequence_t RLRE_apdu_sequence[] = {
- { BER_CLASS_CON, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_reasonre_impl },
- { BER_CLASS_CON, 30, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_user_information_impl },
- { 0, 0, 0, NULL }
-};
-
-static int
-dissect_tcap_RLRE_apdu(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
- RLRE_apdu_sequence, hf_index, ett_tcap_RLRE_apdu);
+dissect_tcap_ExternalPDU(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+#line 64 "tcap.cnf"
- return offset;
-}
+ offset = dissect_ber_tagged_type(implicit_tag, actx, tree, tvb, offset,
+ hf_index, BER_CLASS_UNI, 8, TRUE, dissect_tcap_ExternalPDU_U);
-static const asn_namedbit T_protocol_version3_bits[] = {
- { 0, &hf_tcap_T_protocol_version3_version1, -1, -1, "version1", NULL },
- { 0, NULL, 0, 0, NULL, NULL }
-};
-static int
-dissect_tcap_T_protocol_version3(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_ber_bitstring(implicit_tag, actx->pinfo, tree, tvb, offset,
- T_protocol_version3_bits, hf_index, ett_tcap_T_protocol_version3,
- NULL);
-
- return offset;
-}
-static int dissect_protocol_version3_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_T_protocol_version3(TRUE, tvb, offset, actx, tree, hf_tcap_protocol_version3);
-}
-
-
-static const ber_sequence_t AUDT_apdu_sequence[] = {
- { BER_CLASS_CON, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_protocol_version3_impl },
- { BER_CLASS_CON, 1, 0, dissect_application_context_name },
- { BER_CLASS_CON, 30, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_user_information_impl },
- { 0, 0, 0, NULL }
-};
-
-static int
-dissect_tcap_AUDT_apdu(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
- AUDT_apdu_sequence, hf_index, ett_tcap_AUDT_apdu);
-
- return offset;
-}
-static int dissect_unidialoguePDU(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_AUDT_apdu(FALSE, tvb, offset, actx, tree, hf_tcap_unidialoguePDU);
-}
-
-
-const value_string tcap_UniDialoguePDU_vals[] = {
- { 0, "unidialoguePDU" },
- { 0, NULL }
-};
-
-static const ber_choice_t UniDialoguePDU_choice[] = {
- { 0, BER_CLASS_APP, 0, BER_FLAGS_NOOWNTAG, dissect_unidialoguePDU },
- { 0, 0, 0, 0, NULL }
-};
-
-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_) {
- offset = dissect_ber_choice(actx, tree, tvb, offset,
- UniDialoguePDU_choice, hf_index, ett_tcap_UniDialoguePDU,
- NULL);
return offset;
}
static int
dissect_tcap_DialogueOC(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
-#line 27 "tcap.cnf"
-tvbuff_t *next_tvb;
-gint8 class;
- gboolean pc;
- gint tag;
- guint32 len;
- gint ind_field;
-
-
-offset = dissect_ber_identifier(actx->pinfo, tree, tvb, offset, &class, &pc, &tag);
-offset = dissect_ber_length(actx->pinfo, tree, tvb, offset, &len, &ind_field);
- next_tvb = tvb_new_subset(tvb, offset, len-(2*ind_field), len-(2*ind_field));
-
-
- if (!next_tvb)
- return offset;
-
- dissect_tcap_ExternalPDU(TRUE, next_tvb, 0, actx, tree, -1);
-
+#line 59 "tcap.cnf"
-return offset+len;
+ offset = dissect_tcap_ExternalPDU(FALSE /*implicit_tag*/, tvb, offset, actx, tree, -1);
static int
dissect_tcap_DialoguePortion(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_tcap_DialogueOC(implicit_tag, tvb, offset, actx, tree, hf_index);
+ offset = dissect_ber_tagged_type(implicit_tag, actx, tree, tvb, offset,
+ hf_index, BER_CLASS_APP, 11, TRUE, dissect_tcap_DialogueOC);
return offset;
}
-static int dissect_dialoguePortion(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_DialoguePortion(FALSE, tvb, offset, actx, tree, hf_tcap_dialoguePortion);
-}
-static int dissect_u_abortCause(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_DialoguePortion(FALSE, tvb, offset, actx, tree, hf_tcap_u_abortCause);
-}
static int
dissect_tcap_InvokeIdType(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_ber_integer(implicit_tag, actx->pinfo, tree, tvb, offset, hf_index,
- NULL);
+ offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
+ NULL);
return offset;
}
-static int dissect_invokeID(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_InvokeIdType(FALSE, tvb, offset, actx, tree, hf_tcap_invokeID);
-}
-static int dissect_linkedID_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_InvokeIdType(TRUE, tvb, offset, actx, tree, hf_tcap_linkedID);
-}
-static int dissect_derivable(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_InvokeIdType(FALSE, tvb, offset, actx, tree, hf_tcap_derivable);
-}
static int
dissect_tcap_INTEGER(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_ber_integer(implicit_tag, actx->pinfo, tree, tvb, offset, hf_index,
- NULL);
+ offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
+ NULL);
return offset;
}
-static int dissect_localValue(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_INTEGER(FALSE, tvb, offset, actx, tree, hf_tcap_localValue);
-}
-static int dissect_integerSecurityId_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_INTEGER(TRUE, tvb, offset, actx, tree, hf_tcap_integerSecurityId);
-}
-static int dissect_integerConfidentialityId_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_INTEGER(TRUE, tvb, offset, actx, tree, hf_tcap_integerConfidentialityId);
-}
-static int dissect_private_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_INTEGER(TRUE, tvb, offset, actx, tree, hf_tcap_private);
-}
-static int dissect_privateer_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_INTEGER(TRUE, tvb, offset, actx, tree, hf_tcap_privateer);
-}
static const value_string tcap_OPERATION_vals[] = {
};
static const ber_choice_t OPERATION_choice[] = {
- { 0, BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_localValue },
- { 1, BER_CLASS_UNI, BER_UNI_TAG_OID, BER_FLAGS_NOOWNTAG, dissect_globalValue },
- { 0, 0, 0, 0, NULL }
+ { 0, &hf_tcap_localValue , BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_tcap_INTEGER },
+ { 1, &hf_tcap_globalValue , BER_CLASS_UNI, BER_UNI_TAG_OID, BER_FLAGS_NOOWNTAG, dissect_tcap_OBJECT_IDENTIFIER },
+ { 0, NULL, 0, 0, 0, NULL }
};
static int
return offset;
}
-static int dissect_opCode(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_OPERATION(FALSE, tvb, offset, actx, tree, hf_tcap_opCode);
-}
static int
dissect_tcap_Parameter(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
-#line 75 "tcap.cnf"
-tvbuff_t *next_tvb;
-gint8 class;
- gboolean pc;
- gint tag;
- guint32 len;
- gint ind_field;
-
+#line 74 "tcap.cnf"
- offset = dissect_ber_identifier(actx->pinfo, tree, tvb, offset, &class, &pc, &tag);
- offset = dissect_ber_length(actx->pinfo, tree, tvb, offset, &len, &ind_field);
- /* need to strip the EOC off the next_tvb */
- next_tvb = tvb_new_subset(tvb, offset, len-(2*ind_field), len-(2*ind_field));
-
-if (!next_tvb)
- return offset;
- dissect_tcap_param(actx->pinfo,tree,tvb,0);
- offset += len;
- return offset;
+ offset = dissect_tcap_param(actx,tree,tvb,offset);
return offset;
}
-static int dissect_parameter(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_Parameter(FALSE, tvb, offset, actx, tree, hf_tcap_parameter);
-}
static const ber_sequence_t Invoke_sequence[] = {
- { BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_invokeID },
- { BER_CLASS_CON, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_linkedID_impl },
- { BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_opCode },
- { BER_CLASS_ANY, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_parameter },
- { 0, 0, 0, NULL }
+ { &hf_tcap_invokeID , BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_tcap_InvokeIdType },
+ { &hf_tcap_linkedID , BER_CLASS_CON, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_tcap_InvokeIdType },
+ { &hf_tcap_opCode , BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_tcap_OPERATION },
+ { &hf_tcap_parameter , BER_CLASS_ANY, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_tcap_Parameter },
+ { NULL, 0, 0, 0, NULL }
};
static int
return offset;
}
-static int dissect_invoke_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_Invoke(TRUE, tvb, offset, actx, tree, hf_tcap_invoke);
-}
static const ber_sequence_t T_resultretres_sequence[] = {
- { BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_opCode },
- { BER_CLASS_ANY, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_parameter },
- { 0, 0, 0, NULL }
+ { &hf_tcap_opCode , BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_tcap_OPERATION },
+ { &hf_tcap_parameter , BER_CLASS_ANY, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_tcap_Parameter },
+ { NULL, 0, 0, 0, NULL }
};
static int
return offset;
}
-static int dissect_resultretres(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_T_resultretres(FALSE, tvb, offset, actx, tree, hf_tcap_resultretres);
-}
static const ber_sequence_t ReturnResult_sequence[] = {
- { BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_invokeID },
- { BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_resultretres },
- { 0, 0, 0, NULL }
+ { &hf_tcap_invokeID , BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_tcap_InvokeIdType },
+ { &hf_tcap_resultretres , BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_tcap_T_resultretres },
+ { NULL, 0, 0, 0, NULL }
};
static int
return offset;
}
-static int dissect_returnResultLast_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_ReturnResult(TRUE, tvb, offset, actx, tree, hf_tcap_returnResultLast);
-}
-static int dissect_returnResultNotLast_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_ReturnResult(TRUE, tvb, offset, actx, tree, hf_tcap_returnResultNotLast);
-}
static int
dissect_tcap_INTEGER_M32768_32767(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_ber_integer(implicit_tag, actx->pinfo, tree, tvb, offset, hf_index,
- NULL);
+ offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
+ NULL);
- return offset;
-}
-static int dissect_national_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_INTEGER_M32768_32767(TRUE, tvb, offset, actx, tree, hf_tcap_national);
-}
-static int dissect_nationaler_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_INTEGER_M32768_32767(TRUE, tvb, offset, actx, tree, hf_tcap_nationaler);
+ return offset;
}
};
static const ber_choice_t ErrorCode_choice[] = {
- { 19, BER_CLASS_PRI, 19, BER_FLAGS_IMPLTAG, dissect_nationaler_impl },
- { 20, BER_CLASS_PRI, 20, BER_FLAGS_IMPLTAG, dissect_privateer_impl },
- { 0, 0, 0, 0, NULL }
+ { 19, &hf_tcap_nationaler , BER_CLASS_PRI, 19, BER_FLAGS_IMPLTAG, dissect_tcap_INTEGER_M32768_32767 },
+ { 20, &hf_tcap_privateer , BER_CLASS_PRI, 20, BER_FLAGS_IMPLTAG, dissect_tcap_INTEGER },
+ { 0, NULL, 0, 0, 0, NULL }
};
static int
return offset;
}
-static int dissect_errorCode(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_ErrorCode(FALSE, tvb, offset, actx, tree, hf_tcap_errorCode);
-}
static const ber_sequence_t ReturnError_sequence[] = {
- { BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_invokeID },
- { BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_errorCode },
- { BER_CLASS_ANY, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_parameter },
- { 0, 0, 0, NULL }
+ { &hf_tcap_invokeID , BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_tcap_InvokeIdType },
+ { &hf_tcap_errorCode , BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_tcap_ErrorCode },
+ { &hf_tcap_parameter , BER_CLASS_ANY, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_tcap_Parameter },
+ { NULL, 0, 0, 0, NULL }
};
static int
return offset;
}
-static int dissect_returnError_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_ReturnError(TRUE, tvb, offset, actx, tree, hf_tcap_returnError);
-}
static int
dissect_tcap_NULL(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_ber_null(implicit_tag, actx->pinfo, tree, tvb, offset, hf_index);
+ offset = dissect_ber_null(implicit_tag, actx, tree, tvb, offset, hf_index);
return offset;
}
-static int dissect_not_derivable(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_NULL(FALSE, tvb, offset, actx, tree, hf_tcap_not_derivable);
-}
static const value_string tcap_T_invokeIDRej_vals[] = {
};
static const ber_choice_t T_invokeIDRej_choice[] = {
- { 0, BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_derivable },
- { 1, BER_CLASS_UNI, BER_UNI_TAG_NULL, BER_FLAGS_NOOWNTAG, dissect_not_derivable },
- { 0, 0, 0, 0, NULL }
+ { 0, &hf_tcap_derivable , BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_tcap_InvokeIdType },
+ { 1, &hf_tcap_not_derivable , BER_CLASS_UNI, BER_UNI_TAG_NULL, BER_FLAGS_NOOWNTAG, dissect_tcap_NULL },
+ { 0, NULL, 0, 0, 0, NULL }
};
static int
return offset;
}
-static int dissect_invokeIDRej(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_T_invokeIDRej(FALSE, tvb, offset, actx, tree, hf_tcap_invokeIDRej);
-}
static const value_string tcap_GeneralProblem_vals[] = {
static int
dissect_tcap_GeneralProblem(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_ber_integer(implicit_tag, actx->pinfo, tree, tvb, offset, hf_index,
- NULL);
+ offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
+ NULL);
return offset;
}
-static int dissect_generalProblem_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_GeneralProblem(TRUE, tvb, offset, actx, tree, hf_tcap_generalProblem);
-}
static const value_string tcap_InvokeProblem_vals[] = {
static int
dissect_tcap_InvokeProblem(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_ber_integer(implicit_tag, actx->pinfo, tree, tvb, offset, hf_index,
- NULL);
+ offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
+ NULL);
return offset;
}
-static int dissect_invokeProblem_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_InvokeProblem(TRUE, tvb, offset, actx, tree, hf_tcap_invokeProblem);
-}
static const value_string tcap_ReturnResultProblem_vals[] = {
static int
dissect_tcap_ReturnResultProblem(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_ber_integer(implicit_tag, actx->pinfo, tree, tvb, offset, hf_index,
- NULL);
+ offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
+ NULL);
return offset;
}
-static int dissect_returnResultProblem_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_ReturnResultProblem(TRUE, tvb, offset, actx, tree, hf_tcap_returnResultProblem);
-}
static const value_string tcap_ReturnErrorProblem_vals[] = {
static int
dissect_tcap_ReturnErrorProblem(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_ber_integer(implicit_tag, actx->pinfo, tree, tvb, offset, hf_index,
- NULL);
+ offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
+ NULL);
return offset;
}
-static int dissect_returnErrorProblem_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_ReturnErrorProblem(TRUE, tvb, offset, actx, tree, hf_tcap_returnErrorProblem);
-}
static const value_string tcap_T_problem_vals[] = {
};
static const ber_choice_t T_problem_choice[] = {
- { 0, BER_CLASS_CON, 0, BER_FLAGS_IMPLTAG, dissect_generalProblem_impl },
- { 1, BER_CLASS_CON, 1, BER_FLAGS_IMPLTAG, dissect_invokeProblem_impl },
- { 2, BER_CLASS_CON, 2, BER_FLAGS_IMPLTAG, dissect_returnResultProblem_impl },
- { 3, BER_CLASS_CON, 3, BER_FLAGS_IMPLTAG, dissect_returnErrorProblem_impl },
- { 0, 0, 0, 0, NULL }
+ { 0, &hf_tcap_generalProblem , BER_CLASS_CON, 0, BER_FLAGS_IMPLTAG, dissect_tcap_GeneralProblem },
+ { 1, &hf_tcap_invokeProblem , BER_CLASS_CON, 1, BER_FLAGS_IMPLTAG, dissect_tcap_InvokeProblem },
+ { 2, &hf_tcap_returnResultProblem, BER_CLASS_CON, 2, BER_FLAGS_IMPLTAG, dissect_tcap_ReturnResultProblem },
+ { 3, &hf_tcap_returnErrorProblem, BER_CLASS_CON, 3, BER_FLAGS_IMPLTAG, dissect_tcap_ReturnErrorProblem },
+ { 0, NULL, 0, 0, 0, NULL }
};
static int
return offset;
}
-static int dissect_problem(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_T_problem(FALSE, tvb, offset, actx, tree, hf_tcap_problem);
-}
static const ber_sequence_t Reject_sequence[] = {
- { BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_invokeIDRej },
- { BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_problem },
- { 0, 0, 0, NULL }
+ { &hf_tcap_invokeIDRej , BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_tcap_T_invokeIDRej },
+ { &hf_tcap_problem , BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_tcap_T_problem },
+ { NULL, 0, 0, 0, NULL }
};
static int
return offset;
}
-static int dissect_reject_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_Reject(TRUE, tvb, offset, actx, tree, hf_tcap_reject);
-}
static const value_string tcap_Component_vals[] = {
};
static const ber_choice_t Component_choice[] = {
- { 1, BER_CLASS_CON, 1, BER_FLAGS_IMPLTAG, dissect_invoke_impl },
- { 2, BER_CLASS_CON, 2, BER_FLAGS_IMPLTAG, dissect_returnResultLast_impl },
- { 3, BER_CLASS_CON, 3, BER_FLAGS_IMPLTAG, dissect_returnError_impl },
- { 4, BER_CLASS_CON, 4, BER_FLAGS_IMPLTAG, dissect_reject_impl },
- { 7, BER_CLASS_CON, 7, BER_FLAGS_IMPLTAG, dissect_returnResultNotLast_impl },
- { 0, 0, 0, 0, NULL }
+ { 1, &hf_tcap_invoke , BER_CLASS_CON, 1, BER_FLAGS_IMPLTAG, dissect_tcap_Invoke },
+ { 2, &hf_tcap_returnResultLast, BER_CLASS_CON, 2, BER_FLAGS_IMPLTAG, dissect_tcap_ReturnResult },
+ { 3, &hf_tcap_returnError , BER_CLASS_CON, 3, BER_FLAGS_IMPLTAG, dissect_tcap_ReturnError },
+ { 4, &hf_tcap_reject , BER_CLASS_CON, 4, BER_FLAGS_IMPLTAG, dissect_tcap_Reject },
+ { 7, &hf_tcap_returnResultNotLast, BER_CLASS_CON, 7, BER_FLAGS_IMPLTAG, dissect_tcap_ReturnResult },
+ { 0, NULL, 0, 0, 0, NULL }
};
static int
dissect_tcap_Component(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
-#line 113 "tcap.cnf"
-dissect_tcap_TheComponent(implicit_tag, tvb, offset, actx, tree, hf_index);
+#line 79 "tcap.cnf"
+tvbuff_t *next_tvb;
+gint8 class;
+gboolean pc;
+gint tag;
+guint32 len, comp_offset;
+gint ind_field;
+
+comp_offset = dissect_ber_identifier(actx->pinfo, tree, tvb, offset, &class, &pc, &tag);
+comp_offset = dissect_ber_length(actx->pinfo, tree, tvb, comp_offset, &len, &ind_field);
+/* we can believe the length now */
+next_tvb = tvb_new_subset(tvb, offset, len+comp_offset-offset, len+comp_offset-offset);
+
+if (!next_tvb)
+ return comp_offset;
+
+ offset = dissect_ber_choice(actx, tree, tvb, offset,
+ Component_choice, hf_index, ett_tcap_Component,
+ NULL);
+
+
+ dissect_tcap_ITU_ComponentPDU(implicit_tag, next_tvb, 0, actx, tcap_top_tree, hf_index);
+
+/* return comp_offset+len; or return offset (will be automatically added) */
return offset;
}
-static int dissect_ComponentPortion_item(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_Component(FALSE, tvb, offset, actx, tree, hf_tcap_ComponentPortion_item);
-}
-static const ber_sequence_t ComponentPortion_sequence_of[1] = {
- { BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_ComponentPortion_item },
+static const ber_sequence_t SEQUENCE_SIZE_1_MAX_OF_Component_sequence_of[1] = {
+ { &hf_tcap__untag_item , BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_tcap_Component },
};
static int
-dissect_tcap_ComponentPortion(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+dissect_tcap_SEQUENCE_SIZE_1_MAX_OF_Component(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_sequence_of(implicit_tag, actx, tree, tvb, offset,
- ComponentPortion_sequence_of, hf_index, ett_tcap_ComponentPortion);
+ SEQUENCE_SIZE_1_MAX_OF_Component_sequence_of, hf_index, ett_tcap_SEQUENCE_SIZE_1_MAX_OF_Component);
return offset;
}
-static int dissect_components(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_ComponentPortion(FALSE, tvb, offset, actx, tree, hf_tcap_components);
+
+
+
+static int
+dissect_tcap_ComponentPortion(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+ offset = dissect_ber_tagged_type(implicit_tag, actx, tree, tvb, offset,
+ hf_index, BER_CLASS_APP, 12, TRUE, dissect_tcap_SEQUENCE_SIZE_1_MAX_OF_Component);
+
+ return offset;
}
static const ber_sequence_t Unidirectional_sequence[] = {
- { BER_CLASS_APP, 11, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_dialoguePortion },
- { BER_CLASS_APP, 12, BER_FLAGS_NOOWNTAG, dissect_components },
- { 0, 0, 0, NULL }
+ { &hf_tcap_dialoguePortion, BER_CLASS_APP, 11, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_tcap_DialoguePortion },
+ { &hf_tcap_components , BER_CLASS_APP, 12, BER_FLAGS_NOOWNTAG, dissect_tcap_ComponentPortion },
+ { NULL, 0, 0, 0, NULL }
};
static int
return offset;
}
-static int dissect_unidirectional_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_Unidirectional(TRUE, tvb, offset, actx, tree, hf_tcap_unidirectional);
+
+
+
+static int
+dissect_tcap_OCTET_STRING_SIZE_1_4(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+ offset = dissect_ber_octet_string(implicit_tag, actx, tree, tvb, offset, hf_index,
+ NULL);
+
+ return offset;
}
static int
dissect_tcap_OrigTransactionID(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
-#line 159 "tcap.cnf"
+#line 117 "tcap.cnf"
tvbuff_t *parameter_tvb;
guint8 len, i;
proto_item *tid_item;
tid_item = proto_tree_add_text(tree, tvb, offset, -1, "Source Transaction ID");
subtree = proto_item_add_subtree(tid_item, ett_otid);
-offset = dissect_ber_octet_string(implicit_tag, actx->pinfo, subtree, tvb, offset, hf_tcap_tid,
+offset = dissect_ber_octet_string(implicit_tag, actx, subtree, tvb, offset, hf_tcap_tid,
¶meter_tvb);
if (parameter_tvb){
}
if ((len)&&(check_col(actx->pinfo->cinfo, COL_INFO))){
- col_append_fstr(actx->pinfo->cinfo, COL_INFO, "otid(");
+ col_append_str(actx->pinfo->cinfo, COL_INFO, "otid(");
for(i=0;i<len;i++)
col_append_fstr(actx->pinfo->cinfo, COL_INFO, "%02x",tvb_get_guint8(parameter_tvb,i));
- col_append_fstr(actx->pinfo->cinfo, COL_INFO, ") ");
+ col_append_str(actx->pinfo->cinfo, COL_INFO, ") ");
}
-}
+}
return offset;
}
-static int dissect_otid(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_OrigTransactionID(FALSE, tvb, offset, actx, tree, hf_tcap_otid);
-}
static const ber_sequence_t Begin_sequence[] = {
- { BER_CLASS_APP, 8, BER_FLAGS_NOOWNTAG, dissect_otid },
- { BER_CLASS_APP, 11, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_dialoguePortion },
- { BER_CLASS_APP, 12, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_components },
- { 0, 0, 0, NULL }
+ { &hf_tcap_otid , BER_CLASS_APP, 8, BER_FLAGS_NOOWNTAG, dissect_tcap_OrigTransactionID },
+ { &hf_tcap_dialoguePortion, BER_CLASS_APP, 11, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_tcap_DialoguePortion },
+ { &hf_tcap_components , BER_CLASS_APP, 12, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_tcap_ComponentPortion },
+ { NULL, 0, 0, 0, NULL }
};
static int
dissect_tcap_Begin(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
-#line 232 "tcap.cnf"
+#line 191 "tcap.cnf"
gp_tcapsrt_info->ope=TC_BEGIN;
+/* Do not change col_add_str() to col_append_str() here: we _want_ this call
+ * to overwrite whatever's currently in the INFO column (e.g., "UDT" from
+ * the SCCP dissector).
+ *
+ * If there's something there that should not be overwritten, whoever
+ * put that info there should call col_set_fence() to protect it.
+ */
if (check_col(actx->pinfo->cinfo, COL_INFO))
- col_append_fstr(actx->pinfo->cinfo, COL_INFO, " Begin ");
+ col_set_str(actx->pinfo->cinfo, COL_INFO, "Begin ");
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
Begin_sequence, hf_index, ett_tcap_Begin);
-
-
-
return offset;
}
-static int dissect_begin_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_Begin(TRUE, tvb, offset, actx, tree, hf_tcap_begin);
-}
static int
dissect_tcap_DestTransactionID(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
-#line 197 "tcap.cnf"
+#line 156 "tcap.cnf"
tvbuff_t *parameter_tvb;
guint8 len , i;
proto_item *tid_item;
tid_item = proto_tree_add_text(tree, tvb, offset, -1, "Destination Transaction ID");
subtree = proto_item_add_subtree(tid_item, ett_otid);
-offset = dissect_ber_octet_string(implicit_tag, actx->pinfo, subtree, tvb, offset, hf_tcap_tid,
+offset = dissect_ber_octet_string(implicit_tag, actx, subtree, tvb, offset, hf_tcap_tid,
¶meter_tvb);
if (parameter_tvb){
break;
case 4:
gp_tcapsrt_info->dst_tid=tvb_get_ntohl(parameter_tvb, 0);
- break;
+ break;
default:
gp_tcapsrt_info->dst_tid=0;
break;
}
-
+
if ((len)&&(check_col(actx->pinfo->cinfo, COL_INFO))){
- col_append_fstr(actx->pinfo->cinfo, COL_INFO, "dtid(");
+ col_append_str(actx->pinfo->cinfo, COL_INFO, "dtid(");
for(i=0;i<len;i++)
col_append_fstr(actx->pinfo->cinfo, COL_INFO, "%02x",tvb_get_guint8(parameter_tvb,i));
- col_append_fstr(actx->pinfo->cinfo, COL_INFO, ") ");
+ col_append_str(actx->pinfo->cinfo, COL_INFO, ") ");
}
}
return offset;
}
-static int dissect_dtid(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_DestTransactionID(FALSE, tvb, offset, actx, tree, hf_tcap_dtid);
-}
static const ber_sequence_t End_sequence[] = {
- { BER_CLASS_APP, 9, BER_FLAGS_NOOWNTAG, dissect_dtid },
- { BER_CLASS_APP, 11, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_dialoguePortion },
- { BER_CLASS_APP, 12, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_components },
- { 0, 0, 0, NULL }
+ { &hf_tcap_dtid , BER_CLASS_APP, 9, BER_FLAGS_NOOWNTAG, dissect_tcap_DestTransactionID },
+ { &hf_tcap_dialoguePortion, BER_CLASS_APP, 11, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_tcap_DialoguePortion },
+ { &hf_tcap_components , BER_CLASS_APP, 12, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_tcap_ComponentPortion },
+ { NULL, 0, 0, 0, NULL }
};
static int
dissect_tcap_End(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
-#line 240 "tcap.cnf"
+#line 206 "tcap.cnf"
gp_tcapsrt_info->ope=TC_END;
if (check_col(actx->pinfo->cinfo, COL_INFO))
- col_append_fstr(actx->pinfo->cinfo, COL_INFO, " End ");
+ col_set_str(actx->pinfo->cinfo, COL_INFO, "End ");
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
End_sequence, hf_index, ett_tcap_End);
-
-
-
return offset;
}
-static int dissect_end_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_End(TRUE, tvb, offset, actx, tree, hf_tcap_end);
-}
static const ber_sequence_t Continue_sequence[] = {
- { BER_CLASS_APP, 8, BER_FLAGS_NOOWNTAG, dissect_otid },
- { BER_CLASS_APP, 9, BER_FLAGS_NOOWNTAG, dissect_dtid },
- { BER_CLASS_APP, 11, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_dialoguePortion },
- { BER_CLASS_APP, 12, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_components },
- { 0, 0, 0, NULL }
+ { &hf_tcap_otid , BER_CLASS_APP, 8, BER_FLAGS_NOOWNTAG, dissect_tcap_OrigTransactionID },
+ { &hf_tcap_dtid , BER_CLASS_APP, 9, BER_FLAGS_NOOWNTAG, dissect_tcap_DestTransactionID },
+ { &hf_tcap_dialoguePortion, BER_CLASS_APP, 11, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_tcap_DialoguePortion },
+ { &hf_tcap_components , BER_CLASS_APP, 12, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_tcap_ComponentPortion },
+ { NULL, 0, 0, 0, NULL }
};
static int
dissect_tcap_Continue(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
-#line 248 "tcap.cnf"
+#line 214 "tcap.cnf"
gp_tcapsrt_info->ope=TC_CONT;
if (check_col(actx->pinfo->cinfo, COL_INFO))
- col_append_fstr(actx->pinfo->cinfo, COL_INFO, " Continue ");
+ col_set_str(actx->pinfo->cinfo, COL_INFO, "Continue ");
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
Continue_sequence, hf_index, ett_tcap_Continue);
-
-
-
return offset;
}
-static int dissect_continue_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_Continue(TRUE, tvb, offset, actx, tree, hf_tcap_continue);
-}
-static const value_string tcap_P_AbortCause_vals[] = {
+static const value_string tcap_P_AbortCause_U_vals[] = {
{ 0, "unrecognizedMessageType" },
{ 1, "unrecognizedTransactionID" },
{ 2, "badlyFormattedTransactionPortion" },
static int
-dissect_tcap_P_AbortCause(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_ber_integer(implicit_tag, actx->pinfo, tree, tvb, offset, hf_index,
- NULL);
+dissect_tcap_P_AbortCause_U(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+ offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
+ NULL);
return offset;
}
-static int dissect_p_abortCause(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_P_AbortCause(FALSE, tvb, offset, actx, tree, hf_tcap_p_abortCause);
+
+
+
+static int
+dissect_tcap_P_AbortCause(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+ offset = dissect_ber_tagged_type(implicit_tag, actx, tree, tvb, offset,
+ hf_index, BER_CLASS_APP, 10, TRUE, dissect_tcap_P_AbortCause_U);
+
+ return offset;
}
};
static const ber_choice_t Reason_choice[] = {
- { 10, BER_CLASS_APP, 10, BER_FLAGS_NOOWNTAG, dissect_p_abortCause },
- { 11, BER_CLASS_APP, 11, BER_FLAGS_NOOWNTAG, dissect_u_abortCause },
- { 0, 0, 0, 0, NULL }
+ { 10, &hf_tcap_p_abortCause , BER_CLASS_APP, 10, BER_FLAGS_NOOWNTAG, dissect_tcap_P_AbortCause },
+ { 11, &hf_tcap_u_abortCause , BER_CLASS_APP, 11, BER_FLAGS_NOOWNTAG, dissect_tcap_DialoguePortion },
+ { 0, NULL, 0, 0, 0, NULL }
};
static int
return offset;
}
-static int dissect_reason(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_Reason(FALSE, tvb, offset, actx, tree, hf_tcap_reason);
-}
static const ber_sequence_t Abort_sequence[] = {
- { BER_CLASS_APP, 9, BER_FLAGS_NOOWNTAG, dissect_dtid },
- { BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_reason },
- { 0, 0, 0, NULL }
+ { &hf_tcap_dtid , BER_CLASS_APP, 9, BER_FLAGS_NOOWNTAG, dissect_tcap_DestTransactionID },
+ { &hf_tcap_reason , BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_tcap_Reason },
+ { NULL, 0, 0, 0, NULL }
};
static int
dissect_tcap_Abort(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
-#line 256 "tcap.cnf"
+#line 222 "tcap.cnf"
gp_tcapsrt_info->ope=TC_ABORT;
if (check_col(actx->pinfo->cinfo, COL_INFO))
- col_append_fstr(actx->pinfo->cinfo, COL_INFO, " Abort ");
-
- offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
- Abort_sequence, hf_index, ett_tcap_Abort);
-
-
+ col_set_str(actx->pinfo->cinfo, COL_INFO, "Abort ");
+ offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
+ Abort_sequence, hf_index, ett_tcap_Abort);
return offset;
}
-static int dissect_abort_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_Abort(TRUE, tvb, offset, actx, tree, hf_tcap_abort);
-}
-
-
-
-static int
-dissect_tcap_TransactionID(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
-#line 288 "tcap.cnf"
-
-tvbuff_t *next_tvb;
-
- offset = dissect_ber_octet_string(implicit_tag, actx->pinfo, tree, tvb, offset, hf_index,
- &next_tvb);
-
-
-if(next_tvb)
- tcap_private.TransactionID_str = tvb_bytes_to_str(next_tvb, 0,tvb_length(next_tvb));
-
- return offset;
-}
-static int dissect_identifier(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_TransactionID(FALSE, tvb, offset, actx, tree, hf_tcap_identifier);
-}
-
+static const value_string tcap_TCMessage_vals[] = {
+ { 1, "unidirectional" },
+ { 2, "begin" },
+ { 4, "end" },
+ { 5, "continue" },
+ { 7, "abort" },
+ { 0, NULL }
+};
+static const ber_choice_t TCMessage_choice[] = {
+ { 1, &hf_tcap_unidirectional , BER_CLASS_APP, 1, BER_FLAGS_IMPLTAG, dissect_tcap_Unidirectional },
+ { 2, &hf_tcap_begin , BER_CLASS_APP, 2, BER_FLAGS_IMPLTAG, dissect_tcap_Begin },
+ { 4, &hf_tcap_end , BER_CLASS_APP, 4, BER_FLAGS_IMPLTAG, dissect_tcap_End },
+ { 5, &hf_tcap_continue , BER_CLASS_APP, 5, BER_FLAGS_IMPLTAG, dissect_tcap_Continue },
+ { 7, &hf_tcap_abort , BER_CLASS_APP, 7, BER_FLAGS_IMPLTAG, dissect_tcap_Abort },
+ { 0, NULL, 0, 0, 0, NULL }
+};
static int
-dissect_tcap_ProtocolVersion(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_ber_octet_string(implicit_tag, actx->pinfo, tree, tvb, offset, hf_index,
- NULL);
+dissect_tcap_TCMessage(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+ offset = dissect_ber_choice(actx, tree, tvb, offset,
+ TCMessage_choice, hf_index, ett_tcap_TCMessage,
+ NULL);
return offset;
}
-static int dissect_version(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_ProtocolVersion(FALSE, tvb, offset, actx, tree, hf_tcap_version);
-}
-
-static int
-dissect_tcap_IntegerApplicationContext(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_ber_integer(implicit_tag, actx->pinfo, tree, tvb, offset, hf_index,
- NULL);
-
- return offset;
-}
-static int dissect_integerApplicationId(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_IntegerApplicationContext(FALSE, tvb, offset, actx, tree, hf_tcap_integerApplicationId);
-}
-
+static const value_string tcap_ERROR_vals[] = {
+ { 0, "localValue" },
+ { 1, "globalValue" },
+ { 0, NULL }
+};
+static const ber_choice_t ERROR_choice[] = {
+ { 0, &hf_tcap_localValue , BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_tcap_INTEGER },
+ { 1, &hf_tcap_globalValue , BER_CLASS_UNI, BER_UNI_TAG_OID, BER_FLAGS_NOOWNTAG, dissect_tcap_OBJECT_IDENTIFIER },
+ { 0, NULL, 0, 0, 0, NULL }
+};
static int
-dissect_tcap_ObjectIDApplicationContext(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_ber_object_identifier(implicit_tag, actx->pinfo, tree, tvb, offset, hf_index, NULL);
+dissect_tcap_ERROR(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+ offset = dissect_ber_choice(actx, tree, tvb, offset,
+ ERROR_choice, hf_index, ett_tcap_ERROR,
+ NULL);
return offset;
}
-static int dissect_objectApplicationId(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_ObjectIDApplicationContext(FALSE, tvb, offset, actx, tree, hf_tcap_objectApplicationId);
-}
-static const value_string tcap_T_applicationContext_vals[] = {
- { 27, "integerApplicationId" },
- { 28, "objectApplicationId" },
- { 0, NULL }
-};
-
-static const ber_choice_t T_applicationContext_choice[] = {
- { 27, BER_CLASS_PRI, 27, BER_FLAGS_NOOWNTAG, dissect_integerApplicationId },
- { 28, BER_CLASS_PRI, 28, BER_FLAGS_NOOWNTAG, dissect_objectApplicationId },
- { 0, 0, 0, 0, NULL }
+static const asn_namedbit AUDT_protocol_version_bits[] = {
+ { 0, &hf_tcap_AUDT_protocol_version_version1, -1, -1, "version1", NULL },
+ { 0, NULL, 0, 0, NULL, NULL }
};
static int
-dissect_tcap_T_applicationContext(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_ber_choice(actx, tree, tvb, offset,
- T_applicationContext_choice, hf_index, ett_tcap_T_applicationContext,
- NULL);
+dissect_tcap_AUDT_protocol_version(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+ offset = dissect_ber_bitstring(implicit_tag, actx, tree, tvb, offset,
+ AUDT_protocol_version_bits, hf_index, ett_tcap_AUDT_protocol_version,
+ NULL);
return offset;
}
-static int dissect_applicationContext(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_T_applicationContext(FALSE, tvb, offset, actx, tree, hf_tcap_applicationContext);
-}
-static const value_string tcap_T_securityContext_vals[] = {
- { 0, "integerSecurityId" },
- { 1, "objectSecurityId" },
- { 0, NULL }
-};
-
-static const ber_choice_t T_securityContext_choice[] = {
- { 0, BER_CLASS_CON, 0, BER_FLAGS_IMPLTAG, dissect_integerSecurityId_impl },
- { 1, BER_CLASS_CON, 1, BER_FLAGS_IMPLTAG, dissect_objectSecurityId_impl },
- { 0, 0, 0, 0, NULL }
-};
static int
-dissect_tcap_T_securityContext(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_ber_choice(actx, tree, tvb, offset,
- T_securityContext_choice, hf_index, ett_tcap_T_securityContext,
- NULL);
+dissect_tcap_AUDT_application_context_name(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+#line 102 "tcap.cnf"
+ offset = dissect_ber_object_identifier_str(implicit_tag, actx, tree, tvb, offset, hf_index, &cur_oid);
+
+ tcap_private.oid= (void*) cur_oid;
+ tcap_private.acv=TRUE;
+
return offset;
}
-static int dissect_securityContext(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_T_securityContext(FALSE, tvb, offset, actx, tree, hf_tcap_securityContext);
-}
-static const value_string tcap_T_confidentialityId_vals[] = {
- { 0, "integerConfidentialityId" },
- { 1, "objectConfidentialityId" },
- { 0, NULL }
-};
-
-static const ber_choice_t T_confidentialityId_choice[] = {
- { 0, BER_CLASS_CON, 0, BER_FLAGS_IMPLTAG, dissect_integerConfidentialityId_impl },
- { 1, BER_CLASS_CON, 1, BER_FLAGS_IMPLTAG, dissect_objectConfidentialityId_impl },
- { 0, 0, 0, 0, NULL }
-};
static int
-dissect_tcap_T_confidentialityId(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_ber_choice(actx, tree, tvb, offset,
- T_confidentialityId_choice, hf_index, ett_tcap_T_confidentialityId,
- NULL);
+dissect_tcap_EXTERNAL(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+ offset = dissect_ber_external_type(implicit_tag, tree, tvb, offset, actx, hf_index, NULL);
return offset;
}
-static int dissect_confidentialityId(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_T_confidentialityId(FALSE, tvb, offset, actx, tree, hf_tcap_confidentialityId);
-}
-static const ber_sequence_t Confidentiality_sequence[] = {
- { BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_confidentialityId },
- { 0, 0, 0, NULL }
+static const ber_sequence_t AUDT_user_information_sequence_of[1] = {
+ { &hf_tcap_audt_user_information_item, BER_CLASS_UNI, BER_UNI_TAG_EXTERNAL, BER_FLAGS_NOOWNTAG, dissect_tcap_EXTERNAL },
};
static int
-dissect_tcap_Confidentiality(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
- Confidentiality_sequence, hf_index, ett_tcap_Confidentiality);
+dissect_tcap_AUDT_user_information(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+ offset = dissect_ber_sequence_of(implicit_tag, actx, tree, tvb, offset,
+ AUDT_user_information_sequence_of, hf_index, ett_tcap_AUDT_user_information);
return offset;
}
-static int dissect_confidentiality_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_Confidentiality(TRUE, tvb, offset, actx, tree, hf_tcap_confidentiality);
-}
-static const ber_sequence_t DialoguePortionANSI_sequence[] = {
- { BER_CLASS_PRI, 26, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_version },
- { BER_CLASS_CON, 0, BER_FLAGS_OPTIONAL, dissect_applicationContext },
- { BER_CLASS_UNI, 8, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_userInformation },
- { BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_securityContext },
- { BER_CLASS_CON, 2, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_confidentiality_impl },
- { 0, 0, 0, NULL }
+static const ber_sequence_t AUDT_apdu_U_sequence[] = {
+ { &hf_tcap_audt_protocol_version, BER_CLASS_CON, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_tcap_AUDT_protocol_version },
+ { &hf_tcap_audt_application_context_name, BER_CLASS_CON, 1, 0, dissect_tcap_AUDT_application_context_name },
+ { &hf_tcap_audt_user_information, BER_CLASS_CON, 30, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_tcap_AUDT_user_information },
+ { NULL, 0, 0, 0, NULL }
};
static int
-dissect_tcap_DialoguePortionANSI(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+dissect_tcap_AUDT_apdu_U(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
- DialoguePortionANSI_sequence, hf_index, ett_tcap_DialoguePortionANSI);
+ AUDT_apdu_U_sequence, hf_index, ett_tcap_AUDT_apdu_U);
return offset;
}
-static int dissect_dialoguePortionansi(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_DialoguePortionANSI(FALSE, tvb, offset, actx, tree, hf_tcap_dialoguePortionansi);
-}
static int
-dissect_tcap_OCTET_STRING_SIZE_0_2(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_ber_octet_string(implicit_tag, actx->pinfo, tree, tvb, offset, hf_index,
- NULL);
+dissect_tcap_AUDT_apdu(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+ offset = dissect_ber_tagged_type(implicit_tag, actx, tree, tvb, offset,
+ hf_index, BER_CLASS_APP, 0, TRUE, dissect_tcap_AUDT_apdu_U);
return offset;
}
-static int dissect_componentIDs_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_OCTET_STRING_SIZE_0_2(TRUE, tvb, offset, actx, tree, hf_tcap_componentIDs);
-}
-static const value_string tcap_OperationCode_vals[] = {
- { 16, "national" },
- { 17, "private" },
+const value_string tcap_UniDialoguePDU_vals[] = {
+ { 0, "unidialoguePDU" },
{ 0, NULL }
};
-static const ber_choice_t OperationCode_choice[] = {
- { 16, BER_CLASS_PRI, 16, BER_FLAGS_IMPLTAG, dissect_national_impl },
- { 17, BER_CLASS_PRI, 17, BER_FLAGS_IMPLTAG, dissect_private_impl },
- { 0, 0, 0, 0, NULL }
+static const ber_choice_t UniDialoguePDU_choice[] = {
+ { 0, &hf_tcap_unidialoguePDU , BER_CLASS_APP, 0, BER_FLAGS_NOOWNTAG, dissect_tcap_AUDT_apdu },
+ { 0, NULL, 0, 0, 0, NULL }
};
-static int
-dissect_tcap_OperationCode(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+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_) {
offset = dissect_ber_choice(actx, tree, tvb, offset,
- OperationCode_choice, hf_index, ett_tcap_OperationCode,
+ UniDialoguePDU_choice, hf_index, ett_tcap_UniDialoguePDU,
NULL);
return offset;
}
-static int dissect_operationCode(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_OperationCode(FALSE, tvb, offset, actx, tree, hf_tcap_operationCode);
-}
+static const asn_namedbit AARQ_protocol_version_bits[] = {
+ { 0, &hf_tcap_AARQ_protocol_version_version1, -1, -1, "version1", NULL },
+ { 0, NULL, 0, 0, NULL, NULL }
+};
static int
-dissect_tcap_ANSIParameters(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
-#line 131 "tcap.cnf"
-/* we are doing the ParamSet here so need to look at the tags*/
- guint32 len;
-len = tvb_length_remaining(tvb, offset);
-if (len > 2) /* arghhh I dont know whether this is constructed or not! */
- offset = dissect_tcap_param(actx->pinfo,tree,tvb,offset);
-else
-offset = dissect_ber_octet_string(TRUE, actx->pinfo, tree, tvb, 0, hf_index,
+dissect_tcap_AARQ_protocol_version(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+ offset = dissect_ber_bitstring(implicit_tag, actx, tree, tvb, offset,
+ AARQ_protocol_version_bits, hf_index, ett_tcap_AARQ_protocol_version,
NULL);
+ return offset;
+}
+
+
+static int
+dissect_tcap_AARQ_application_context_name(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+#line 107 "tcap.cnf"
+ offset = dissect_ber_object_identifier_str(implicit_tag, actx, tree, tvb, offset, hf_index, &cur_oid);
+
+ tcap_private.oid= (void*) cur_oid;
+ tcap_private.acv=TRUE;
return offset;
}
-static int dissect_ansiparams(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_ANSIParameters(FALSE, tvb, offset, actx, tree, hf_tcap_ansiparams);
-}
-static int dissect_ansiparams1(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_ANSIParameters(FALSE, tvb, offset, actx, tree, hf_tcap_ansiparams1);
-}
-static int dissect_ansiparams2(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_ANSIParameters(FALSE, tvb, offset, actx, tree, hf_tcap_ansiparams2);
-}
-static int dissect_ansiparams3(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_ANSIParameters(FALSE, tvb, offset, actx, tree, hf_tcap_ansiparams3);
-}
-static int dissect_ansiparams4(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_ANSIParameters(FALSE, tvb, offset, actx, tree, hf_tcap_ansiparams4);
-}
-static int dissect_ansiparams5(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_ANSIParameters(FALSE, tvb, offset, actx, tree, hf_tcap_ansiparams5);
-}
-static int dissect_ansiparams6(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_ANSIParameters(FALSE, tvb, offset, actx, tree, hf_tcap_ansiparams6);
-}
-static int dissect_ansiparams7(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_ANSIParameters(FALSE, tvb, offset, actx, tree, hf_tcap_ansiparams7);
-}
-static int dissect_ansiparams8(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_ANSIParameters(FALSE, tvb, offset, actx, tree, hf_tcap_ansiparams8);
-}
-static int dissect_ansiparams9(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_ANSIParameters(FALSE, tvb, offset, actx, tree, hf_tcap_ansiparams9);
-}
-static int dissect_ansiparams10(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_ANSIParameters(FALSE, tvb, offset, actx, tree, hf_tcap_ansiparams10);
-}
-static int dissect_ansiparams11(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_ANSIParameters(FALSE, tvb, offset, actx, tree, hf_tcap_ansiparams11);
-}
-static int dissect_ansiparams12(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_ANSIParameters(FALSE, tvb, offset, actx, tree, hf_tcap_ansiparams12);
-}
-static int dissect_ansiparams13(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_ANSIParameters(FALSE, tvb, offset, actx, tree, hf_tcap_ansiparams13);
-}
-static int dissect_ansiparams14(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_ANSIParameters(FALSE, tvb, offset, actx, tree, hf_tcap_ansiparams14);
-}
-static int dissect_ansiparams15(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_ANSIParameters(FALSE, tvb, offset, actx, tree, hf_tcap_ansiparams15);
-}
-static int dissect_ansiparams16(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_ANSIParameters(FALSE, tvb, offset, actx, tree, hf_tcap_ansiparams16);
-}
-static int dissect_ansiparams17(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_ANSIParameters(FALSE, tvb, offset, actx, tree, hf_tcap_ansiparams17);
-}
-static int dissect_ansiparams18(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_ANSIParameters(FALSE, tvb, offset, actx, tree, hf_tcap_ansiparams18);
-}
-static int dissect_ansiparams19(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_ANSIParameters(FALSE, tvb, offset, actx, tree, hf_tcap_ansiparams19);
-}
-static int dissect_ansiparams20(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_ANSIParameters(FALSE, tvb, offset, actx, tree, hf_tcap_ansiparams20);
-}
-static int dissect_ansiparams21(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_ANSIParameters(FALSE, tvb, offset, actx, tree, hf_tcap_ansiparams21);
-}
-static const ber_sequence_t ANSIparamch_sequence[] = {
- { BER_CLASS_ANY, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_ansiparams },
- { BER_CLASS_ANY, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_ansiparams1 },
- { BER_CLASS_ANY, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_ansiparams2 },
- { BER_CLASS_ANY, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_ansiparams3 },
- { BER_CLASS_ANY, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_ansiparams4 },
- { BER_CLASS_ANY, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_ansiparams5 },
- { BER_CLASS_ANY, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_ansiparams6 },
- { BER_CLASS_ANY, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_ansiparams7 },
- { BER_CLASS_ANY, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_ansiparams8 },
- { BER_CLASS_ANY, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_ansiparams9 },
- { BER_CLASS_ANY, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_ansiparams10 },
- { BER_CLASS_ANY, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_ansiparams11 },
- { BER_CLASS_ANY, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_ansiparams12 },
- { BER_CLASS_ANY, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_ansiparams13 },
- { BER_CLASS_ANY, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_ansiparams14 },
- { BER_CLASS_ANY, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_ansiparams15 },
- { BER_CLASS_ANY, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_ansiparams16 },
- { BER_CLASS_ANY, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_ansiparams17 },
- { BER_CLASS_ANY, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_ansiparams18 },
- { BER_CLASS_ANY, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_ansiparams19 },
- { BER_CLASS_ANY, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_ansiparams20 },
- { BER_CLASS_ANY, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_ansiparams21 },
- { 0, 0, 0, NULL }
+static const ber_sequence_t AARQ_user_information_sequence_of[1] = {
+ { &hf_tcap_aarq_user_information_item, BER_CLASS_UNI, BER_UNI_TAG_EXTERNAL, BER_FLAGS_NOOWNTAG, dissect_tcap_EXTERNAL },
};
static int
-dissect_tcap_ANSIparamch(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
- ANSIparamch_sequence, hf_index, ett_tcap_ANSIparamch);
+dissect_tcap_AARQ_user_information(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+ offset = dissect_ber_sequence_of(implicit_tag, actx, tree, tvb, offset,
+ AARQ_user_information_sequence_of, hf_index, ett_tcap_AARQ_user_information);
return offset;
}
-static int dissect_parameterinv(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_ANSIparamch(FALSE, tvb, offset, actx, tree, hf_tcap_parameterinv);
-}
-static int dissect_parameterrr(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_ANSIparamch(FALSE, tvb, offset, actx, tree, hf_tcap_parameterrr);
-}
-static int dissect_parameterre(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_ANSIparamch(FALSE, tvb, offset, actx, tree, hf_tcap_parameterre);
-}
-static int dissect_parameterrj(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_ANSIparamch(FALSE, tvb, offset, actx, tree, hf_tcap_parameterrj);
-}
-static const ber_sequence_t InvokePDU_sequence[] = {
- { BER_CLASS_PRI, 15, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_componentIDs_impl },
- { BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_operationCode },
- { BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_parameterinv },
- { 0, 0, 0, NULL }
+static const ber_sequence_t AARQ_apdu_U_sequence[] = {
+ { &hf_tcap_aarq_protocol_version, BER_CLASS_CON, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_tcap_AARQ_protocol_version },
+ { &hf_tcap_aarq_application_context_name, BER_CLASS_CON, 1, 0, dissect_tcap_AARQ_application_context_name },
+ { &hf_tcap_aarq_user_information, BER_CLASS_CON, 30, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_tcap_AARQ_user_information },
+ { NULL, 0, 0, 0, NULL }
};
static int
-dissect_tcap_InvokePDU(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+dissect_tcap_AARQ_apdu_U(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
- InvokePDU_sequence, hf_index, ett_tcap_InvokePDU);
+ AARQ_apdu_U_sequence, hf_index, ett_tcap_AARQ_apdu_U);
return offset;
}
-static int dissect_invokeLastansi_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_InvokePDU(TRUE, tvb, offset, actx, tree, hf_tcap_invokeLastansi);
-}
-static int dissect_invokeNotLastansi_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_InvokePDU(TRUE, tvb, offset, actx, tree, hf_tcap_invokeNotLastansi);
-}
static int
-dissect_tcap_ComponentID(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_ber_octet_string(implicit_tag, actx->pinfo, tree, tvb, offset, hf_index,
- NULL);
+dissect_tcap_AARQ_apdu(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+ offset = dissect_ber_tagged_type(implicit_tag, actx, tree, tvb, offset,
+ hf_index, BER_CLASS_APP, 0, TRUE, dissect_tcap_AARQ_apdu_U);
return offset;
}
-static int dissect_componentID(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_ComponentID(FALSE, tvb, offset, actx, tree, hf_tcap_componentID);
-}
-static const ber_sequence_t ReturnResultPDU_sequence[] = {
- { BER_CLASS_PRI, 15, BER_FLAGS_NOOWNTAG, dissect_componentID },
- { BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_parameterrr },
- { 0, 0, 0, NULL }
+static const asn_namedbit AARE_protocol_version_bits[] = {
+ { 0, &hf_tcap_AARE_protocol_version_version1, -1, -1, "version1", NULL },
+ { 0, NULL, 0, 0, NULL, NULL }
};
static int
-dissect_tcap_ReturnResultPDU(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
- ReturnResultPDU_sequence, hf_index, ett_tcap_ReturnResultPDU);
+dissect_tcap_AARE_protocol_version(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+ offset = dissect_ber_bitstring(implicit_tag, actx, tree, tvb, offset,
+ AARE_protocol_version_bits, hf_index, ett_tcap_AARE_protocol_version,
+ NULL);
return offset;
}
-static int dissect_returnResultLastansi_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_ReturnResultPDU(TRUE, tvb, offset, actx, tree, hf_tcap_returnResultLastansi);
-}
-static int dissect_returnResultNotLastansi_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_ReturnResultPDU(TRUE, tvb, offset, actx, tree, hf_tcap_returnResultNotLastansi);
-}
-static const ber_sequence_t ReturnErrorPDU_sequence[] = {
- { BER_CLASS_PRI, 15, BER_FLAGS_NOOWNTAG, dissect_componentID },
- { BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_errorCode },
- { BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_parameterre },
- { 0, 0, 0, NULL }
-};
static int
-dissect_tcap_ReturnErrorPDU(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
- ReturnErrorPDU_sequence, hf_index, ett_tcap_ReturnErrorPDU);
+dissect_tcap_AARE_application_context_name(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+#line 112 "tcap.cnf"
+ offset = dissect_ber_object_identifier_str(implicit_tag, actx, tree, tvb, offset, hf_index, &cur_oid);
+
+ tcap_private.oid= (void*) cur_oid;
+ tcap_private.acv=TRUE;
+
return offset;
}
-static int dissect_returnErroransi_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_ReturnErrorPDU(TRUE, tvb, offset, actx, tree, hf_tcap_returnErroransi);
-}
-static const value_string tcap_ProblemPDU_vals[] = {
- { 257, "general-unrecognisedComponentType" },
- { 258, "general-incorrectComponentPortion" },
- { 259, "general-badlyStructuredCompPortion" },
+static const value_string tcap_Associate_result_vals[] = {
+ { 0, "accepted" },
+ { 1, "reject-permanent" },
{ 0, NULL }
};
static int
-dissect_tcap_ProblemPDU(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_ber_integer(implicit_tag, actx->pinfo, tree, tvb, offset, hf_index,
- NULL);
+dissect_tcap_Associate_result(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+ offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
+ NULL);
return offset;
}
-static int dissect_rejectProblem_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_ProblemPDU(TRUE, tvb, offset, actx, tree, hf_tcap_rejectProblem);
-}
-static const ber_sequence_t RejectPDU_sequence[] = {
- { BER_CLASS_PRI, 15, BER_FLAGS_NOOWNTAG, dissect_componentID },
- { BER_CLASS_PRI, 21, BER_FLAGS_IMPLTAG, dissect_rejectProblem_impl },
- { BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_parameterrj },
- { 0, 0, 0, NULL }
+static const value_string tcap_T_dialogue_service_user_vals[] = {
+ { 0, "null" },
+ { 1, "no-reason-given" },
+ { 2, "application-context-name-not-supported" },
+ { 0, NULL }
};
+
static int
-dissect_tcap_RejectPDU(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
- RejectPDU_sequence, hf_index, ett_tcap_RejectPDU);
+dissect_tcap_T_dialogue_service_user(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+ offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
+ NULL);
return offset;
}
-static int dissect_rejectansi_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_RejectPDU(TRUE, tvb, offset, actx, tree, hf_tcap_rejectansi);
-}
-static const value_string tcap_ComponentPDU_vals[] = {
- { 9, "invokeLastansi" },
- { 10, "returnResultLastansi" },
- { 11, "returnErroransi" },
- { 12, "rejectansi" },
- { 13, "invokeNotLastansi" },
- { 14, "returnResultNotLastansi" },
+static const value_string tcap_T_dialogue_service_provider_vals[] = {
+ { 0, "null" },
+ { 1, "no-reason-given" },
+ { 2, "no-common-dialogue-portion" },
{ 0, NULL }
};
-static const ber_choice_t ComponentPDU_choice[] = {
- { 9, BER_CLASS_PRI, 9, BER_FLAGS_IMPLTAG, dissect_invokeLastansi_impl },
- { 10, BER_CLASS_PRI, 10, BER_FLAGS_IMPLTAG, dissect_returnResultLastansi_impl },
- { 11, BER_CLASS_PRI, 11, BER_FLAGS_IMPLTAG, dissect_returnErroransi_impl },
- { 12, BER_CLASS_PRI, 12, BER_FLAGS_IMPLTAG, dissect_rejectansi_impl },
- { 13, BER_CLASS_PRI, 13, BER_FLAGS_IMPLTAG, dissect_invokeNotLastansi_impl },
- { 14, BER_CLASS_PRI, 14, BER_FLAGS_IMPLTAG, dissect_returnResultNotLastansi_impl },
- { 0, 0, 0, 0, NULL }
-};
static int
-dissect_tcap_ComponentPDU(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
-#line 142 "tcap.cnf"
-tvbuff_t *next_tvb;
-dissector_handle_t subdissector_handle;
-
-next_tvb = tvb_new_subset(tvb, offset, tvb_length_remaining(tvb, offset), tvb_length_remaining(tvb, offset));
-
-if (! (subdissector_handle = get_ansi_tcap_subdissector(actx->pinfo->match_port))) {
- subdissector_handle = data_handle;
-}
-
- tcap_subdissector_used=TRUE;
-
-call_dissector(subdissector_handle, next_tvb, actx->pinfo, tcap_top_tree);
-
-offset = dissect_ber_choice(actx, tree, tvb, offset,
- ComponentPDU_choice, hf_index, ett_tcap_ComponentPDU,NULL);
-
-
+dissect_tcap_T_dialogue_service_provider(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+ offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
+ NULL);
return offset;
}
-static int dissect_ComponentSequence_item(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_ComponentPDU(FALSE, tvb, offset, actx, tree, hf_tcap_ComponentSequence_item);
-}
-static const ber_sequence_t ComponentSequence_sequence_of[1] = {
- { BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_ComponentSequence_item },
+static const value_string tcap_Associate_source_diagnostic_vals[] = {
+ { 1, "dialogue-service-user" },
+ { 2, "dialogue-service-provider" },
+ { 0, NULL }
+};
+
+static const ber_choice_t Associate_source_diagnostic_choice[] = {
+ { 1, &hf_tcap_dialogue_service_user, BER_CLASS_CON, 1, 0, dissect_tcap_T_dialogue_service_user },
+ { 2, &hf_tcap_dialogue_service_provider, BER_CLASS_CON, 2, 0, dissect_tcap_T_dialogue_service_provider },
+ { 0, NULL, 0, 0, 0, NULL }
};
static int
-dissect_tcap_ComponentSequence(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_ber_sequence_of(implicit_tag, actx, tree, tvb, offset,
- ComponentSequence_sequence_of, hf_index, ett_tcap_ComponentSequence);
+dissect_tcap_Associate_source_diagnostic(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+ offset = dissect_ber_choice(actx, tree, tvb, offset,
+ Associate_source_diagnostic_choice, hf_index, ett_tcap_Associate_source_diagnostic,
+ NULL);
return offset;
}
-static int dissect_componentPortion(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_ComponentSequence(FALSE, tvb, offset, actx, tree, hf_tcap_componentPortion);
-}
-static const ber_sequence_t UniTransactionPDU_sequence[] = {
- { BER_CLASS_PRI, 7, BER_FLAGS_NOOWNTAG, dissect_identifier },
- { BER_CLASS_PRI, 25, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_dialoguePortionansi },
- { BER_CLASS_PRI, 8, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_componentPortion },
- { 0, 0, 0, NULL }
+static const ber_sequence_t AARE_user_information_sequence_of[1] = {
+ { &hf_tcap_aare_user_information_item, BER_CLASS_UNI, BER_UNI_TAG_EXTERNAL, BER_FLAGS_NOOWNTAG, dissect_tcap_EXTERNAL },
};
static int
-dissect_tcap_UniTransactionPDU(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
- UniTransactionPDU_sequence, hf_index, ett_tcap_UniTransactionPDU);
+dissect_tcap_AARE_user_information(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+ offset = dissect_ber_sequence_of(implicit_tag, actx, tree, tvb, offset,
+ AARE_user_information_sequence_of, hf_index, ett_tcap_AARE_user_information);
return offset;
}
-static int dissect_ansiunidirectional_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_UniTransactionPDU(TRUE, tvb, offset, actx, tree, hf_tcap_ansiunidirectional);
-}
-static const ber_sequence_t TransactionPDU_sequence[] = {
- { BER_CLASS_PRI, 7, BER_FLAGS_NOOWNTAG, dissect_identifier },
- { BER_CLASS_PRI, 25, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_dialoguePortionansi },
- { BER_CLASS_PRI, 8, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_componentPortion },
- { 0, 0, 0, NULL }
+static const ber_sequence_t AARE_apdu_U_sequence[] = {
+ { &hf_tcap_aare_protocol_version, BER_CLASS_CON, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_tcap_AARE_protocol_version },
+ { &hf_tcap_aare_application_context_name, BER_CLASS_CON, 1, 0, dissect_tcap_AARE_application_context_name },
+ { &hf_tcap_result , BER_CLASS_CON, 2, 0, dissect_tcap_Associate_result },
+ { &hf_tcap_result_source_diagnostic, BER_CLASS_CON, 3, BER_FLAGS_NOTCHKTAG, dissect_tcap_Associate_source_diagnostic },
+ { &hf_tcap_aare_user_information, BER_CLASS_CON, 30, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_tcap_AARE_user_information },
+ { NULL, 0, 0, 0, NULL }
};
static int
-dissect_tcap_TransactionPDU(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
-#line 270 "tcap.cnf"
-if ((hf_index == hf_tcap_ansiqueryWithPerm)&&(check_col(actx->pinfo->cinfo, COL_INFO)))
- col_append_fstr(actx->pinfo->cinfo, COL_INFO, " QueryWithPerm");
-
-if ((hf_index == hf_tcap_ansiqueryWithoutPerm)&&(check_col(actx->pinfo->cinfo, COL_INFO)))
- col_append_fstr(actx->pinfo->cinfo, COL_INFO, " QueryWithOutPerm");
-
-if ((hf_index == hf_tcap_ansiresponse)&&(check_col(actx->pinfo->cinfo, COL_INFO)))
- col_append_fstr(actx->pinfo->cinfo, COL_INFO, " Response");
-
-if ((hf_index == hf_tcap_ansiconversationWithPerm)&&(check_col(actx->pinfo->cinfo, COL_INFO)))
- col_append_fstr(actx->pinfo->cinfo, COL_INFO, " ConversationWithPerm");
-
-if ((hf_index == hf_tcap_ansiconversationWithoutPerm)&&(check_col(actx->pinfo->cinfo, COL_INFO)))
- col_append_fstr(actx->pinfo->cinfo, COL_INFO, " ConversationWithoutPerm");
-
+dissect_tcap_AARE_apdu_U(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
- TransactionPDU_sequence, hf_index, ett_tcap_TransactionPDU);
-
-
-
+ AARE_apdu_U_sequence, hf_index, ett_tcap_AARE_apdu_U);
return offset;
}
-static int dissect_ansiqueryWithPerm_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_TransactionPDU(TRUE, tvb, offset, actx, tree, hf_tcap_ansiqueryWithPerm);
-}
-static int dissect_ansiqueryWithoutPerm_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_TransactionPDU(TRUE, tvb, offset, actx, tree, hf_tcap_ansiqueryWithoutPerm);
-}
-static int dissect_ansiresponse_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_TransactionPDU(TRUE, tvb, offset, actx, tree, hf_tcap_ansiresponse);
-}
-static int dissect_ansiconversationWithPerm_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_TransactionPDU(TRUE, tvb, offset, actx, tree, hf_tcap_ansiconversationWithPerm);
-}
-static int dissect_ansiconversationWithoutPerm_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_TransactionPDU(TRUE, tvb, offset, actx, tree, hf_tcap_ansiconversationWithoutPerm);
-}
-
-static const value_string tcap_P_Abort_cause_vals[] = {
- { 1, "unrecognizedPackageType" },
- { 2, "incorrestTransactionPortion" },
- { 3, "badlyStructuredTransactionPortion" },
- { 4, "unassignedRespondingTransactionID" },
- { 5, "permissionToReleaseProblem" },
- { 6, "resourceUnavilable" },
- { 7, "unrecognizedDialoguePortionID" },
- { 8, "badlyStructuredDialoguePortion" },
- { 9, "missingDialoguePortion" },
- { 10, "inconsistentDialoguePortion" },
- { 0, NULL }
-};
static int
-dissect_tcap_P_Abort_cause(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_ber_integer(implicit_tag, actx->pinfo, tree, tvb, offset, hf_index,
- NULL);
+dissect_tcap_AARE_apdu(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+ offset = dissect_ber_tagged_type(implicit_tag, actx, tree, tvb, offset,
+ hf_index, BER_CLASS_APP, 1, TRUE, dissect_tcap_AARE_apdu_U);
return offset;
}
-static int dissect_abortCause(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_P_Abort_cause(FALSE, tvb, offset, actx, tree, hf_tcap_abortCause);
-}
-static const value_string tcap_T_causeInformation_vals[] = {
- { 0, "abortCause" },
- { 1, "userInformation" },
+static const value_string tcap_ABRT_source_vals[] = {
+ { 0, "dialogue-service-user" },
+ { 1, "dialogue-service-provider" },
{ 0, NULL }
};
-static const ber_choice_t T_causeInformation_choice[] = {
- { 0, BER_CLASS_PRI, 23, BER_FLAGS_NOOWNTAG, dissect_abortCause },
- { 1, BER_CLASS_UNI, 8, BER_FLAGS_NOOWNTAG, dissect_userInformation },
- { 0, 0, 0, 0, NULL }
-};
static int
-dissect_tcap_T_causeInformation(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_ber_choice(actx, tree, tvb, offset,
- T_causeInformation_choice, hf_index, ett_tcap_T_causeInformation,
- NULL);
+dissect_tcap_ABRT_source(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+ offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
+ NULL);
return offset;
}
-static int dissect_causeInformation(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_T_causeInformation(FALSE, tvb, offset, actx, tree, hf_tcap_causeInformation);
-}
-static const ber_sequence_t AbortPDU_sequence[] = {
- { BER_CLASS_PRI, 7, BER_FLAGS_NOOWNTAG, dissect_identifier },
- { BER_CLASS_PRI, 25, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_dialoguePortionansi },
- { BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_causeInformation },
- { 0, 0, 0, NULL }
+static const ber_sequence_t ABRT_user_information_sequence_of[1] = {
+ { &hf_tcap_abrt_user_information_item, BER_CLASS_UNI, BER_UNI_TAG_EXTERNAL, BER_FLAGS_NOOWNTAG, dissect_tcap_EXTERNAL },
};
static int
-dissect_tcap_AbortPDU(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
-#line 264 "tcap.cnf"
-if (check_col(actx->pinfo->cinfo, COL_INFO))
- col_append_fstr(actx->pinfo->cinfo, COL_INFO, " Abort ");
+dissect_tcap_ABRT_user_information(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+ offset = dissect_ber_sequence_of(implicit_tag, actx, tree, tvb, offset,
+ ABRT_user_information_sequence_of, hf_index, ett_tcap_ABRT_user_information);
- offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
- AbortPDU_sequence, hf_index, ett_tcap_AbortPDU);
+ return offset;
+}
+static const ber_sequence_t ABRT_apdu_U_sequence[] = {
+ { &hf_tcap_abort_source , BER_CLASS_CON, 0, BER_FLAGS_IMPLTAG, dissect_tcap_ABRT_source },
+ { &hf_tcap_abrt_user_information, BER_CLASS_CON, 30, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_tcap_ABRT_user_information },
+ { NULL, 0, 0, 0, NULL }
+};
+static int
+dissect_tcap_ABRT_apdu_U(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+ offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
+ ABRT_apdu_U_sequence, hf_index, ett_tcap_ABRT_apdu_U);
return offset;
}
-static int dissect_ansiabort_impl(proto_tree *tree _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_) {
- return dissect_tcap_AbortPDU(TRUE, tvb, offset, actx, tree, hf_tcap_ansiabort);
-}
-
-static const value_string tcap_TCMessage_vals[] = {
- { 0, "unidirectional" },
- { 1, "begin" },
- { 2, "end" },
- { 3, "continue" },
- { 4, "abort" },
- { 5, "ansiunidirectional" },
- { 6, "ansiqueryWithPerm" },
- { 7, "ansiqueryWithoutPerm" },
- { 8, "ansiresponse" },
- { 9, "ansiconversationWithPerm" },
- { 10, "ansiconversationWithoutPerm" },
- { 11, "ansiabort" },
- { 0, NULL }
-};
-static const ber_choice_t TCMessage_choice[] = {
- { 0, BER_CLASS_APP, 1, BER_FLAGS_IMPLTAG, dissect_unidirectional_impl },
- { 1, BER_CLASS_APP, 2, BER_FLAGS_IMPLTAG, dissect_begin_impl },
- { 2, BER_CLASS_APP, 4, BER_FLAGS_IMPLTAG, dissect_end_impl },
- { 3, BER_CLASS_APP, 5, BER_FLAGS_IMPLTAG, dissect_continue_impl },
- { 4, BER_CLASS_APP, 7, BER_FLAGS_IMPLTAG, dissect_abort_impl },
- { 5, BER_CLASS_PRI, 1, BER_FLAGS_IMPLTAG, dissect_ansiunidirectional_impl },
- { 6, BER_CLASS_PRI, 2, BER_FLAGS_IMPLTAG, dissect_ansiqueryWithPerm_impl },
- { 7, BER_CLASS_PRI, 3, BER_FLAGS_IMPLTAG, dissect_ansiqueryWithoutPerm_impl },
- { 8, BER_CLASS_PRI, 4, BER_FLAGS_IMPLTAG, dissect_ansiresponse_impl },
- { 9, BER_CLASS_PRI, 5, BER_FLAGS_IMPLTAG, dissect_ansiconversationWithPerm_impl },
- { 10, BER_CLASS_PRI, 6, BER_FLAGS_IMPLTAG, dissect_ansiconversationWithoutPerm_impl },
- { 11, BER_CLASS_PRI, 22, BER_FLAGS_IMPLTAG, dissect_ansiabort_impl },
- { 0, 0, 0, 0, NULL }
-};
static int
-dissect_tcap_TCMessage(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_ber_choice(actx, tree, tvb, offset,
- TCMessage_choice, hf_index, ett_tcap_TCMessage,
- NULL);
+dissect_tcap_ABRT_apdu(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+ offset = dissect_ber_tagged_type(implicit_tag, actx, tree, tvb, offset,
+ hf_index, BER_CLASS_APP, 4, TRUE, dissect_tcap_ABRT_apdu_U);
return offset;
}
-static const value_string tcap_ERROR_vals[] = {
- { 0, "localValue" },
- { 1, "globalValue" },
+const value_string tcap_DialoguePDU_vals[] = {
+ { 0, "dialogueRequest" },
+ { 1, "dialogueResponse" },
+ { 4, "dialogueAbort" },
{ 0, NULL }
};
-static const ber_choice_t ERROR_choice[] = {
- { 0, BER_CLASS_UNI, BER_UNI_TAG_INTEGER, BER_FLAGS_NOOWNTAG, dissect_localValue },
- { 1, BER_CLASS_UNI, BER_UNI_TAG_OID, BER_FLAGS_NOOWNTAG, dissect_globalValue },
- { 0, 0, 0, 0, NULL }
+static const ber_choice_t DialoguePDU_choice[] = {
+ { 0, &hf_tcap_dialogueRequest, BER_CLASS_APP, 0, BER_FLAGS_NOOWNTAG, dissect_tcap_AARQ_apdu },
+ { 1, &hf_tcap_dialogueResponse, BER_CLASS_APP, 1, BER_FLAGS_NOOWNTAG, dissect_tcap_AARE_apdu },
+ { 4, &hf_tcap_dialogueAbort , BER_CLASS_APP, 4, BER_FLAGS_NOOWNTAG, dissect_tcap_ABRT_apdu },
+ { 0, NULL, 0, 0, 0, NULL }
};
-static int
-dissect_tcap_ERROR(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
+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_) {
offset = dissect_ber_choice(actx, tree, tvb, offset,
- ERROR_choice, hf_index, ett_tcap_ERROR,
+ DialoguePDU_choice, hf_index, ett_tcap_DialoguePDU,
NULL);
return offset;
/*--- PDUs ---*/
-static void dissect_DialoguePDU_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
+static void dissect_UniDialoguePDU_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
asn1_ctx_t asn1_ctx;
asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
- dissect_tcap_DialoguePDU(FALSE, tvb, 0, &asn1_ctx, tree, hf_tcap_DialoguePDU_PDU);
+ dissect_tcap_UniDialoguePDU(FALSE, tvb, 0, &asn1_ctx, tree, hf_tcap_UniDialoguePDU_PDU);
}
-static void dissect_UniDialoguePDU_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
+static void dissect_DialoguePDU_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
asn1_ctx_t asn1_ctx;
asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
- dissect_tcap_UniDialoguePDU(FALSE, tvb, 0, &asn1_ctx, tree, hf_tcap_UniDialoguePDU_PDU);
+ dissect_tcap_DialoguePDU(FALSE, tvb, 0, &asn1_ctx, tree, hf_tcap_DialoguePDU_PDU);
}
/*--- End of included file: packet-tcap-fn.c ---*/
-#line 144 "packet-tcap-template.c"
+#line 141 "packet-tcap-template.c"
{
proto_item *item=NULL;
proto_tree *tree=NULL;
- proto_item *stat_item=NULL;
- proto_tree *stat_tree=NULL;
- gint offset = 0;
+
struct tcaphash_context_t * p_tcap_context;
dissector_handle_t subdissector_handle;
asn1_ctx_t asn1_ctx;
+ gint8 class;
+ gboolean pc;
+ gint tag;
+
+ /* Check if ANSI TCAP and call the ANSI TCAP dissector if that's the case
+ * PackageType ::= CHOICE { unidirectional [PRIVATE 1] IMPLICIT UniTransactionPDU,
+ * queryWithPerm [PRIVATE 2] IMPLICIT TransactionPDU,
+ * queryWithoutPerm [PRIVATE 3] IMPLICIT TransactionPDU,
+ * response [PRIVATE 4] IMPLICIT TransactionPDU,
+ * conversationWithPerm [PRIVATE 5] IMPLICIT TransactionPDU,
+ * conversationWithoutPerm [PRIVATE 6] IMPLICIT TransactionPDU,
+ * abort [PRIVATE 22] IMPLICIT Abort
+ * }
+ *
+ *
+ */
+ get_ber_identifier(tvb, 0, &class, &pc, &tag);
+
+ if(class == BER_CLASS_PRI){
+ switch(tag){
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 5:
+ case 6:
+ case 22:
+ call_dissector(ansi_tcap_handle, tvb, pinfo, parent_tree);
+ return;
+ break;
+ default:
+ return;
+ }
+ }
+
+ /* ITU TCAP */
asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
tcap_top_tree = parent_tree;
- if (check_col(pinfo->cinfo, COL_PROTOCOL))
- {
- col_set_str(pinfo->cinfo, COL_PROTOCOL, "TCAP");
- }
+ tcap_stat_tree = NULL;
+
+ col_set_str(pinfo->cinfo, COL_PROTOCOL, "TCAP");
/* create display subtree for the protocol */
if(parent_tree){
item = proto_tree_add_item(parent_tree, proto_tcap, tvb, 0, -1, FALSE);
tree = proto_item_add_subtree(item, ett_tcap);
- tcap_stat_item=item;
tcap_stat_tree=tree;
}
cur_oid = NULL;
dissect_tcap_TCMessage(FALSE, tvb, 0, &asn1_ctx, tree, -1);
if (gtcap_HandleSRT && !tcap_subdissector_used ) {
- if (gtcap_DisplaySRT && tree) {
- stat_item = proto_tree_add_text(tree, tvb, 0, 0, "Stat");
- PROTO_ITEM_SET_GENERATED(stat_item);
- stat_tree = proto_item_add_subtree(stat_item, ett_tcap_stat);
- }
- p_tcap_context=tcapsrt_call_matching(tvb, pinfo, stat_tree, gp_tcapsrt_info);
- tcap_private.context=p_tcap_context;
+ p_tcap_context=tcapsrt_call_matching(tvb, pinfo, tcap_stat_tree, gp_tcapsrt_info);
+ tcap_private.context=p_tcap_context;
/* If the current message is TCAP only,
- * save the Application contexte name for the next messages
+ * save the Application Context Name for the next messages
*/
if ( p_tcap_context && cur_oid && !p_tcap_context->oid_present ) {
/* Save the application context and the sub dissector */
- ber_oid_dissector_table = find_dissector_table("ber.oid");
- strncpy(p_tcap_context->oid,cur_oid, LENGTH_OID);
+ g_strlcpy(p_tcap_context->oid,cur_oid, LENGTH_OID);
+ p_tcap_context->oid_present=TRUE;
if ( (subdissector_handle = dissector_get_string_handle(ber_oid_dissector_table, cur_oid)) ) {
p_tcap_context->subdissector_handle=subdissector_handle;
- p_tcap_context->oid_present=TRUE;
+ p_tcap_context->subdissector_present=TRUE;
}
}
if (gtcap_HandleSRT && p_tcap_context && p_tcap_context->callback) {
/* Callback fonction for the upper layer */
- (p_tcap_context->callback)(tvb, pinfo, stat_tree, p_tcap_context);
+ (p_tcap_context->callback)(tvb, pinfo, tcap_stat_tree, p_tcap_context);
}
}
}
proto_reg_handoff_tcap(void)
{
- static gboolean prefs_initialized = FALSE;
-
- if (! prefs_initialized) {
- sccp_ssn_table = find_dissector_table("sccp.ssn");
- prefs_initialized = TRUE;
- }
-
data_handle = find_dissector("data");
+ ansi_tcap_handle = find_dissector("ansi_tcap");
+ ber_oid_dissector_table = find_dissector_table("ber.oid");
+
/*--- Included file: packet-tcap-dis-tab.c ---*/
#line 1 "packet-tcap-dis-tab.c"
- register_ber_oid_dissector("0.0.17.773.1.1.1", dissect_DialoguePDU_PDU, proto_tcap, "dialogue-as-id");
- register_ber_oid_dissector("0.0.17.773.1.2.1", dissect_UniDialoguePDU_PDU, proto_tcap, "uniDialogue-as-id");
+ register_ber_oid_dissector("0.0.17.773.1.1.1", dissect_DialoguePDU_PDU, proto_tcap, "id-as-dialogue");
+ register_ber_oid_dissector("0.0.17.773.1.2.1", dissect_UniDialoguePDU_PDU, proto_tcap, "id-as-uniDialogue");
/*--- End of included file: packet-tcap-dis-tab.c ---*/
-#line 233 "packet-tcap-template.c"
+#line 253 "packet-tcap-template.c"
}
static void init_tcap(void);
{ &hf_tcap_tag,
{ "Tag", "tcap.msgtype",
FT_UINT8, BASE_HEX, NULL, 0,
- "", HFILL }
+ NULL, HFILL }
},
{ &hf_tcap_length,
{ "Length", "tcap.len",
- FT_UINT8, BASE_HEX, NULL, 0,
- "", HFILL }
+ FT_UINT8, BASE_DEC, NULL, 0,
+ NULL, HFILL }
},
{ &hf_tcap_data,
{ "Data", "tcap.data",
- FT_BYTES, BASE_HEX, NULL, 0,
- "", HFILL }
+ FT_BYTES, BASE_NONE, NULL, 0,
+ NULL, HFILL }
},
{ &hf_tcap_tid,
{ "Transaction Id", "tcap.tid",
- FT_BYTES, BASE_HEX, NULL, 0,
- "", HFILL }
+ FT_BYTES, BASE_NONE, NULL, 0,
+ NULL, HFILL }
},
/* Tcap Service Response Time */
{ &hf_tcapsrt_SessionId,
{ "Session Id",
"tcap.srt.session_id",
FT_UINT32, BASE_DEC, NULL, 0x0,
- "", HFILL }
+ NULL, HFILL }
},
{ &hf_tcapsrt_BeginSession,
{ "Begin Session",
"Duration of the TCAP session", HFILL }
},
{ &hf_tcapsrt_Duplicate,
- { "Request Duplicate",
+ { "Session Duplicate",
"tcap.srt.duplicate",
- FT_UINT32, BASE_DEC, NULL, 0x0,
- "", HFILL }
+ FT_FRAMENUM, BASE_NONE, NULL, 0x0,
+ "SRT Duplicated with Session", HFILL }
},
/*--- Included file: packet-tcap-hfarr.c ---*/
#line 1 "packet-tcap-hfarr.c"
- { &hf_tcap_DialoguePDU_PDU,
- { "DialoguePDU", "tcap.DialoguePDU",
- FT_UINT32, BASE_DEC, VALS(tcap_DialoguePDU_vals), 0,
- "tcap.DialoguePDU", HFILL }},
{ &hf_tcap_UniDialoguePDU_PDU,
{ "UniDialoguePDU", "tcap.UniDialoguePDU",
FT_UINT32, BASE_DEC, VALS(tcap_UniDialoguePDU_vals), 0,
"tcap.UniDialoguePDU", HFILL }},
- { &hf_tcap_dialogueRequest,
- { "dialogueRequest", "tcap.dialogueRequest",
- FT_NONE, BASE_NONE, NULL, 0,
- "tcap.AARQ_apdu", HFILL }},
- { &hf_tcap_dialogueResponse,
- { "dialogueResponse", "tcap.dialogueResponse",
- FT_NONE, BASE_NONE, NULL, 0,
- "tcap.AARE_apdu", HFILL }},
- { &hf_tcap_dialogueAbort,
- { "dialogueAbort", "tcap.dialogueAbort",
- FT_NONE, BASE_NONE, NULL, 0,
- "tcap.ABRT_apdu", HFILL }},
+ { &hf_tcap_DialoguePDU_PDU,
+ { "DialoguePDU", "tcap.DialoguePDU",
+ FT_UINT32, BASE_DEC, VALS(tcap_DialoguePDU_vals), 0,
+ "tcap.DialoguePDU", HFILL }},
{ &hf_tcap_oid,
{ "oid", "tcap.oid",
FT_OID, BASE_NONE, NULL, 0,
"tcap.OBJECT_IDENTIFIER", HFILL }},
{ &hf_tcap_dialog,
{ "dialog", "tcap.dialog",
- FT_BYTES, BASE_HEX, NULL, 0,
+ FT_BYTES, BASE_NONE, NULL, 0,
"tcap.Dialog1", HFILL }},
- { &hf_tcap_useroid,
- { "useroid", "tcap.useroid",
- FT_OID, BASE_NONE, NULL, 0,
- "tcap.UserInfoOID", HFILL }},
- { &hf_tcap_externuserinfo,
- { "externuserinfo", "tcap.externuserinfo",
- FT_BYTES, BASE_HEX, NULL, 0,
- "tcap.ExternUserInfo", HFILL }},
- { &hf_tcap_protocol_versionrq,
- { "protocol-versionrq", "tcap.protocol_versionrq",
- FT_BYTES, BASE_HEX, NULL, 0,
- "tcap.T_protocol_versionrq", HFILL }},
- { &hf_tcap_application_context_name,
- { "application-context-name", "tcap.application_context_name",
- FT_OID, BASE_NONE, NULL, 0,
- "tcap.Applicationcontext", HFILL }},
- { &hf_tcap_user_information,
- { "user-information", "tcap.user_information",
- FT_BYTES, BASE_HEX, NULL, 0,
- "tcap.User_information", HFILL }},
- { &hf_tcap_protocol_versionre,
- { "protocol-versionre", "tcap.protocol_versionre",
- FT_BYTES, BASE_HEX, NULL, 0,
- "tcap.T_protocol_versionre", HFILL }},
- { &hf_tcap_result,
- { "result", "tcap.result",
- FT_INT32, BASE_DEC, VALS(tcap_Associate_result_vals), 0,
- "tcap.Associate_result", HFILL }},
- { &hf_tcap_result_source_diagnostic,
- { "result-source-diagnostic", "tcap.result_source_diagnostic",
- FT_UINT32, BASE_DEC, VALS(tcap_Associate_source_diagnostic_vals), 0,
- "tcap.Associate_source_diagnostic", HFILL }},
- { &hf_tcap_reasonrq,
- { "reasonrq", "tcap.reasonrq",
- FT_INT32, BASE_DEC, VALS(tcap_Release_request_reason_vals), 0,
- "tcap.Release_request_reason", HFILL }},
- { &hf_tcap_reasonre,
- { "reasonre", "tcap.reasonre",
- FT_INT32, BASE_DEC, VALS(tcap_Release_response_reason_vals), 0,
- "tcap.Release_response_reason", HFILL }},
- { &hf_tcap_abort_source,
- { "abort-source", "tcap.abort_source",
- FT_INT32, BASE_DEC, VALS(tcap_ABRT_source_vals), 0,
- "tcap.ABRT_source", HFILL }},
- { &hf_tcap_dialogue_service_user,
- { "dialogue-service-user", "tcap.dialogue_service_user",
- FT_INT32, BASE_DEC, VALS(tcap_T_dialogue_service_user_vals), 0,
- "tcap.T_dialogue_service_user", HFILL }},
- { &hf_tcap_dialogue_service_provider,
- { "dialogue-service-provider", "tcap.dialogue_service_provider",
- FT_INT32, BASE_DEC, VALS(tcap_T_dialogue_service_provider_vals), 0,
- "tcap.T_dialogue_service_provider", HFILL }},
- { &hf_tcap_unidialoguePDU,
- { "unidialoguePDU", "tcap.unidialoguePDU",
- FT_NONE, BASE_NONE, NULL, 0,
- "tcap.AUDT_apdu", HFILL }},
- { &hf_tcap_protocol_version3,
- { "protocol-version3", "tcap.protocol_version3",
- FT_BYTES, BASE_HEX, NULL, 0,
- "tcap.T_protocol_version3", HFILL }},
{ &hf_tcap_unidirectional,
{ "unidirectional", "tcap.unidirectional",
FT_NONE, BASE_NONE, NULL, 0,
{ "abort", "tcap.abort",
FT_NONE, BASE_NONE, NULL, 0,
"tcap.Abort", HFILL }},
- { &hf_tcap_ansiunidirectional,
- { "ansiunidirectional", "tcap.ansiunidirectional",
- FT_NONE, BASE_NONE, NULL, 0,
- "tcap.UniTransactionPDU", HFILL }},
- { &hf_tcap_ansiqueryWithPerm,
- { "ansiqueryWithPerm", "tcap.ansiqueryWithPerm",
- FT_NONE, BASE_NONE, NULL, 0,
- "tcap.TransactionPDU", HFILL }},
- { &hf_tcap_ansiqueryWithoutPerm,
- { "ansiqueryWithoutPerm", "tcap.ansiqueryWithoutPerm",
- FT_NONE, BASE_NONE, NULL, 0,
- "tcap.TransactionPDU", HFILL }},
- { &hf_tcap_ansiresponse,
- { "ansiresponse", "tcap.ansiresponse",
- FT_NONE, BASE_NONE, NULL, 0,
- "tcap.TransactionPDU", HFILL }},
- { &hf_tcap_ansiconversationWithPerm,
- { "ansiconversationWithPerm", "tcap.ansiconversationWithPerm",
- FT_NONE, BASE_NONE, NULL, 0,
- "tcap.TransactionPDU", HFILL }},
- { &hf_tcap_ansiconversationWithoutPerm,
- { "ansiconversationWithoutPerm", "tcap.ansiconversationWithoutPerm",
- FT_NONE, BASE_NONE, NULL, 0,
- "tcap.TransactionPDU", HFILL }},
- { &hf_tcap_ansiabort,
- { "ansiabort", "tcap.ansiabort",
- FT_NONE, BASE_NONE, NULL, 0,
- "tcap.AbortPDU", HFILL }},
{ &hf_tcap_dialoguePortion,
{ "dialoguePortion", "tcap.dialoguePortion",
- FT_BYTES, BASE_HEX, NULL, 0,
+ FT_BYTES, BASE_NONE, NULL, 0,
"tcap.DialoguePortion", HFILL }},
{ &hf_tcap_components,
{ "components", "tcap.components",
"tcap.ComponentPortion", HFILL }},
{ &hf_tcap_otid,
{ "otid", "tcap.otid",
- FT_BYTES, BASE_HEX, NULL, 0,
+ FT_BYTES, BASE_NONE, NULL, 0,
"tcap.OrigTransactionID", HFILL }},
{ &hf_tcap_dtid,
{ "dtid", "tcap.dtid",
- FT_BYTES, BASE_HEX, NULL, 0,
+ FT_BYTES, BASE_NONE, NULL, 0,
"tcap.DestTransactionID", HFILL }},
{ &hf_tcap_reason,
{ "reason", "tcap.reason",
"tcap.Reason", HFILL }},
{ &hf_tcap_p_abortCause,
{ "p-abortCause", "tcap.p_abortCause",
- FT_UINT32, BASE_DEC, VALS(tcap_P_AbortCause_vals), 0,
+ FT_UINT32, BASE_DEC, VALS(tcap_P_AbortCause_U_vals), 0,
"tcap.P_AbortCause", HFILL }},
{ &hf_tcap_u_abortCause,
{ "u-abortCause", "tcap.u_abortCause",
- FT_BYTES, BASE_HEX, NULL, 0,
+ FT_BYTES, BASE_NONE, NULL, 0,
"tcap.DialoguePortion", HFILL }},
- { &hf_tcap_ComponentPortion_item,
- { "Item", "tcap.ComponentPortion_item",
+ { &hf_tcap__untag_item,
+ { "Component", "tcap.Component",
FT_UINT32, BASE_DEC, VALS(tcap_Component_vals), 0,
"tcap.Component", HFILL }},
{ &hf_tcap_invoke,
{ "globalValue", "tcap.globalValue",
FT_OID, BASE_NONE, NULL, 0,
"tcap.OBJECT_IDENTIFIER", HFILL }},
- { &hf_tcap_identifier,
- { "identifier", "tcap.identifier",
- FT_BYTES, BASE_HEX, NULL, 0,
- "tcap.TransactionID", HFILL }},
- { &hf_tcap_dialoguePortionansi,
- { "dialoguePortionansi", "tcap.dialoguePortionansi",
- FT_NONE, BASE_NONE, NULL, 0,
- "tcap.DialoguePortionANSI", HFILL }},
- { &hf_tcap_componentPortion,
- { "componentPortion", "tcap.componentPortion",
- FT_UINT32, BASE_DEC, NULL, 0,
- "tcap.ComponentSequence", HFILL }},
- { &hf_tcap_causeInformation,
- { "causeInformation", "tcap.causeInformation",
- FT_UINT32, BASE_DEC, VALS(tcap_T_causeInformation_vals), 0,
- "tcap.T_causeInformation", HFILL }},
- { &hf_tcap_abortCause,
- { "abortCause", "tcap.abortCause",
- FT_INT32, BASE_DEC, VALS(tcap_P_Abort_cause_vals), 0,
- "tcap.P_Abort_cause", HFILL }},
- { &hf_tcap_userInformation,
- { "userInformation", "tcap.userInformation",
- FT_NONE, BASE_NONE, NULL, 0,
- "tcap.UserInformation", HFILL }},
- { &hf_tcap_version,
- { "version", "tcap.version",
- FT_BYTES, BASE_HEX, NULL, 0,
- "tcap.ProtocolVersion", HFILL }},
- { &hf_tcap_applicationContext,
- { "applicationContext", "tcap.applicationContext",
- FT_UINT32, BASE_DEC, VALS(tcap_T_applicationContext_vals), 0,
- "tcap.T_applicationContext", HFILL }},
- { &hf_tcap_integerApplicationId,
- { "integerApplicationId", "tcap.integerApplicationId",
+ { &hf_tcap_nationaler,
+ { "nationaler", "tcap.nationaler",
FT_INT32, BASE_DEC, NULL, 0,
- "tcap.IntegerApplicationContext", HFILL }},
- { &hf_tcap_objectApplicationId,
- { "objectApplicationId", "tcap.objectApplicationId",
- FT_OID, BASE_NONE, NULL, 0,
- "tcap.ObjectIDApplicationContext", HFILL }},
- { &hf_tcap_securityContext,
- { "securityContext", "tcap.securityContext",
- FT_UINT32, BASE_DEC, VALS(tcap_T_securityContext_vals), 0,
- "tcap.T_securityContext", HFILL }},
- { &hf_tcap_integerSecurityId,
- { "integerSecurityId", "tcap.integerSecurityId",
+ "tcap.INTEGER_M32768_32767", HFILL }},
+ { &hf_tcap_privateer,
+ { "privateer", "tcap.privateer",
FT_INT32, BASE_DEC, NULL, 0,
"tcap.INTEGER", HFILL }},
- { &hf_tcap_objectSecurityId,
- { "objectSecurityId", "tcap.objectSecurityId",
- FT_OID, BASE_NONE, NULL, 0,
- "tcap.OBJECT_IDENTIFIER", HFILL }},
- { &hf_tcap_confidentiality,
- { "confidentiality", "tcap.confidentiality",
+ { &hf_tcap_unidialoguePDU,
+ { "unidialoguePDU", "tcap.unidialoguePDU",
FT_NONE, BASE_NONE, NULL, 0,
- "tcap.Confidentiality", HFILL }},
- { &hf_tcap_confidentialityId,
- { "confidentialityId", "tcap.confidentialityId",
- FT_UINT32, BASE_DEC, VALS(tcap_T_confidentialityId_vals), 0,
- "tcap.T_confidentialityId", HFILL }},
- { &hf_tcap_integerConfidentialityId,
- { "integerConfidentialityId", "tcap.integerConfidentialityId",
- FT_INT32, BASE_DEC, NULL, 0,
- "tcap.INTEGER", HFILL }},
- { &hf_tcap_objectConfidentialityId,
- { "objectConfidentialityId", "tcap.objectConfidentialityId",
+ "tcap.AUDT_apdu", HFILL }},
+ { &hf_tcap_audt_protocol_version,
+ { "protocol-version", "tcap.protocol_version",
+ FT_BYTES, BASE_NONE, NULL, 0,
+ "tcap.AUDT_protocol_version", HFILL }},
+ { &hf_tcap_audt_application_context_name,
+ { "application-context-name", "tcap.application_context_name",
FT_OID, BASE_NONE, NULL, 0,
- "tcap.OBJECT_IDENTIFIER", HFILL }},
- { &hf_tcap_ComponentSequence_item,
- { "Item", "tcap.ComponentSequence_item",
- FT_UINT32, BASE_DEC, VALS(tcap_ComponentPDU_vals), 0,
- "tcap.ComponentPDU", HFILL }},
- { &hf_tcap_invokeLastansi,
- { "invokeLastansi", "tcap.invokeLastansi",
- FT_NONE, BASE_NONE, NULL, 0,
- "tcap.InvokePDU", HFILL }},
- { &hf_tcap_returnResultLastansi,
- { "returnResultLastansi", "tcap.returnResultLastansi",
- FT_NONE, BASE_NONE, NULL, 0,
- "tcap.ReturnResultPDU", HFILL }},
- { &hf_tcap_returnErroransi,
- { "returnErroransi", "tcap.returnErroransi",
- FT_NONE, BASE_NONE, NULL, 0,
- "tcap.ReturnErrorPDU", HFILL }},
- { &hf_tcap_rejectansi,
- { "rejectansi", "tcap.rejectansi",
- FT_NONE, BASE_NONE, NULL, 0,
- "tcap.RejectPDU", HFILL }},
- { &hf_tcap_invokeNotLastansi,
- { "invokeNotLastansi", "tcap.invokeNotLastansi",
- FT_NONE, BASE_NONE, NULL, 0,
- "tcap.InvokePDU", HFILL }},
- { &hf_tcap_returnResultNotLastansi,
- { "returnResultNotLastansi", "tcap.returnResultNotLastansi",
- FT_NONE, BASE_NONE, NULL, 0,
- "tcap.ReturnResultPDU", HFILL }},
- { &hf_tcap_componentIDs,
- { "componentIDs", "tcap.componentIDs",
- FT_BYTES, BASE_HEX, NULL, 0,
- "tcap.OCTET_STRING_SIZE_0_2", HFILL }},
- { &hf_tcap_operationCode,
- { "operationCode", "tcap.operationCode",
- FT_UINT32, BASE_DEC, VALS(tcap_OperationCode_vals), 0,
- "tcap.OperationCode", HFILL }},
- { &hf_tcap_parameterinv,
- { "parameterinv", "tcap.parameterinv",
- FT_NONE, BASE_NONE, NULL, 0,
- "tcap.ANSIparamch", HFILL }},
- { &hf_tcap_ansiparams,
- { "ansiparams", "tcap.ansiparams",
- FT_NONE, BASE_NONE, NULL, 0,
- "tcap.ANSIParameters", HFILL }},
- { &hf_tcap_ansiparams1,
- { "ansiparams1", "tcap.ansiparams1",
- FT_NONE, BASE_NONE, NULL, 0,
- "tcap.ANSIParameters", HFILL }},
- { &hf_tcap_ansiparams2,
- { "ansiparams2", "tcap.ansiparams2",
- FT_NONE, BASE_NONE, NULL, 0,
- "tcap.ANSIParameters", HFILL }},
- { &hf_tcap_ansiparams3,
- { "ansiparams3", "tcap.ansiparams3",
- FT_NONE, BASE_NONE, NULL, 0,
- "tcap.ANSIParameters", HFILL }},
- { &hf_tcap_ansiparams4,
- { "ansiparams4", "tcap.ansiparams4",
- FT_NONE, BASE_NONE, NULL, 0,
- "tcap.ANSIParameters", HFILL }},
- { &hf_tcap_ansiparams5,
- { "ansiparams5", "tcap.ansiparams5",
- FT_NONE, BASE_NONE, NULL, 0,
- "tcap.ANSIParameters", HFILL }},
- { &hf_tcap_ansiparams6,
- { "ansiparams6", "tcap.ansiparams6",
- FT_NONE, BASE_NONE, NULL, 0,
- "tcap.ANSIParameters", HFILL }},
- { &hf_tcap_ansiparams7,
- { "ansiparams7", "tcap.ansiparams7",
- FT_NONE, BASE_NONE, NULL, 0,
- "tcap.ANSIParameters", HFILL }},
- { &hf_tcap_ansiparams8,
- { "ansiparams8", "tcap.ansiparams8",
- FT_NONE, BASE_NONE, NULL, 0,
- "tcap.ANSIParameters", HFILL }},
- { &hf_tcap_ansiparams9,
- { "ansiparams9", "tcap.ansiparams9",
- FT_NONE, BASE_NONE, NULL, 0,
- "tcap.ANSIParameters", HFILL }},
- { &hf_tcap_ansiparams10,
- { "ansiparams10", "tcap.ansiparams10",
- FT_NONE, BASE_NONE, NULL, 0,
- "tcap.ANSIParameters", HFILL }},
- { &hf_tcap_ansiparams11,
- { "ansiparams11", "tcap.ansiparams11",
- FT_NONE, BASE_NONE, NULL, 0,
- "tcap.ANSIParameters", HFILL }},
- { &hf_tcap_ansiparams12,
- { "ansiparams12", "tcap.ansiparams12",
- FT_NONE, BASE_NONE, NULL, 0,
- "tcap.ANSIParameters", HFILL }},
- { &hf_tcap_ansiparams13,
- { "ansiparams13", "tcap.ansiparams13",
- FT_NONE, BASE_NONE, NULL, 0,
- "tcap.ANSIParameters", HFILL }},
- { &hf_tcap_ansiparams14,
- { "ansiparams14", "tcap.ansiparams14",
- FT_NONE, BASE_NONE, NULL, 0,
- "tcap.ANSIParameters", HFILL }},
- { &hf_tcap_ansiparams15,
- { "ansiparams15", "tcap.ansiparams15",
- FT_NONE, BASE_NONE, NULL, 0,
- "tcap.ANSIParameters", HFILL }},
- { &hf_tcap_ansiparams16,
- { "ansiparams16", "tcap.ansiparams16",
- FT_NONE, BASE_NONE, NULL, 0,
- "tcap.ANSIParameters", HFILL }},
- { &hf_tcap_ansiparams17,
- { "ansiparams17", "tcap.ansiparams17",
- FT_NONE, BASE_NONE, NULL, 0,
- "tcap.ANSIParameters", HFILL }},
- { &hf_tcap_ansiparams18,
- { "ansiparams18", "tcap.ansiparams18",
+ "tcap.AUDT_application_context_name", HFILL }},
+ { &hf_tcap_audt_user_information,
+ { "user-information", "tcap.user_information",
+ FT_UINT32, BASE_DEC, NULL, 0,
+ "tcap.AUDT_user_information", HFILL }},
+ { &hf_tcap_audt_user_information_item,
+ { "user-information item", "tcap.user_information_item",
FT_NONE, BASE_NONE, NULL, 0,
- "tcap.ANSIParameters", HFILL }},
- { &hf_tcap_ansiparams19,
- { "ansiparams19", "tcap.ansiparams19",
+ "tcap.EXTERNAL", HFILL }},
+ { &hf_tcap_dialogueRequest,
+ { "dialogueRequest", "tcap.dialogueRequest",
FT_NONE, BASE_NONE, NULL, 0,
- "tcap.ANSIParameters", HFILL }},
- { &hf_tcap_ansiparams20,
- { "ansiparams20", "tcap.ansiparams20",
+ "tcap.AARQ_apdu", HFILL }},
+ { &hf_tcap_dialogueResponse,
+ { "dialogueResponse", "tcap.dialogueResponse",
FT_NONE, BASE_NONE, NULL, 0,
- "tcap.ANSIParameters", HFILL }},
- { &hf_tcap_ansiparams21,
- { "ansiparams21", "tcap.ansiparams21",
+ "tcap.AARE_apdu", HFILL }},
+ { &hf_tcap_dialogueAbort,
+ { "dialogueAbort", "tcap.dialogueAbort",
FT_NONE, BASE_NONE, NULL, 0,
- "tcap.ANSIParameters", HFILL }},
- { &hf_tcap_componentID,
- { "componentID", "tcap.componentID",
- FT_BYTES, BASE_HEX, NULL, 0,
- "tcap.ComponentID", HFILL }},
- { &hf_tcap_parameterrr,
- { "parameterrr", "tcap.parameterrr",
+ "tcap.ABRT_apdu", HFILL }},
+ { &hf_tcap_aarq_protocol_version,
+ { "protocol-version", "tcap.protocol_version",
+ FT_BYTES, BASE_NONE, NULL, 0,
+ "tcap.AARQ_protocol_version", HFILL }},
+ { &hf_tcap_aarq_application_context_name,
+ { "application-context-name", "tcap.application_context_name",
+ FT_OID, BASE_NONE, NULL, 0,
+ "tcap.AARQ_application_context_name", HFILL }},
+ { &hf_tcap_aarq_user_information,
+ { "user-information", "tcap.user_information",
+ FT_UINT32, BASE_DEC, NULL, 0,
+ "tcap.AARQ_user_information", HFILL }},
+ { &hf_tcap_aarq_user_information_item,
+ { "user-information item", "tcap.user_information_item",
FT_NONE, BASE_NONE, NULL, 0,
- "tcap.ANSIparamch", HFILL }},
- { &hf_tcap_parameterre,
- { "parameterre", "tcap.parameterre",
+ "tcap.EXTERNAL", HFILL }},
+ { &hf_tcap_aare_protocol_version,
+ { "protocol-version", "tcap.protocol_version",
+ FT_BYTES, BASE_NONE, NULL, 0,
+ "tcap.AARE_protocol_version", HFILL }},
+ { &hf_tcap_aare_application_context_name,
+ { "application-context-name", "tcap.application_context_name",
+ FT_OID, BASE_NONE, NULL, 0,
+ "tcap.AARE_application_context_name", HFILL }},
+ { &hf_tcap_result,
+ { "result", "tcap.result",
+ FT_INT32, BASE_DEC, VALS(tcap_Associate_result_vals), 0,
+ "tcap.Associate_result", HFILL }},
+ { &hf_tcap_result_source_diagnostic,
+ { "result-source-diagnostic", "tcap.result_source_diagnostic",
+ FT_UINT32, BASE_DEC, VALS(tcap_Associate_source_diagnostic_vals), 0,
+ "tcap.Associate_source_diagnostic", HFILL }},
+ { &hf_tcap_aare_user_information,
+ { "user-information", "tcap.user_information",
+ FT_UINT32, BASE_DEC, NULL, 0,
+ "tcap.AARE_user_information", HFILL }},
+ { &hf_tcap_aare_user_information_item,
+ { "user-information item", "tcap.user_information_item",
FT_NONE, BASE_NONE, NULL, 0,
- "tcap.ANSIparamch", HFILL }},
- { &hf_tcap_rejectProblem,
- { "rejectProblem", "tcap.rejectProblem",
- FT_INT32, BASE_DEC, VALS(tcap_ProblemPDU_vals), 0,
- "tcap.ProblemPDU", HFILL }},
- { &hf_tcap_parameterrj,
- { "parameterrj", "tcap.parameterrj",
+ "tcap.EXTERNAL", HFILL }},
+ { &hf_tcap_abort_source,
+ { "abort-source", "tcap.abort_source",
+ FT_INT32, BASE_DEC, VALS(tcap_ABRT_source_vals), 0,
+ "tcap.ABRT_source", HFILL }},
+ { &hf_tcap_abrt_user_information,
+ { "user-information", "tcap.user_information",
+ FT_UINT32, BASE_DEC, NULL, 0,
+ "tcap.ABRT_user_information", HFILL }},
+ { &hf_tcap_abrt_user_information_item,
+ { "user-information item", "tcap.user_information_item",
FT_NONE, BASE_NONE, NULL, 0,
- "tcap.ANSIparamch", HFILL }},
- { &hf_tcap_national,
- { "national", "tcap.national",
- FT_INT32, BASE_DEC, NULL, 0,
- "tcap.INTEGER_M32768_32767", HFILL }},
- { &hf_tcap_private,
- { "private", "tcap.private",
- FT_INT32, BASE_DEC, NULL, 0,
- "tcap.INTEGER", HFILL }},
- { &hf_tcap_nationaler,
- { "nationaler", "tcap.nationaler",
- FT_INT32, BASE_DEC, NULL, 0,
- "tcap.INTEGER_M32768_32767", HFILL }},
- { &hf_tcap_privateer,
- { "privateer", "tcap.privateer",
- FT_INT32, BASE_DEC, NULL, 0,
- "tcap.INTEGER", HFILL }},
- { &hf_tcap_T_protocol_versionrq_version1,
+ "tcap.EXTERNAL", HFILL }},
+ { &hf_tcap_dialogue_service_user,
+ { "dialogue-service-user", "tcap.dialogue_service_user",
+ FT_INT32, BASE_DEC, VALS(tcap_T_dialogue_service_user_vals), 0,
+ "tcap.T_dialogue_service_user", HFILL }},
+ { &hf_tcap_dialogue_service_provider,
+ { "dialogue-service-provider", "tcap.dialogue_service_provider",
+ FT_INT32, BASE_DEC, VALS(tcap_T_dialogue_service_provider_vals), 0,
+ "tcap.T_dialogue_service_provider", HFILL }},
+ { &hf_tcap_AUDT_protocol_version_version1,
{ "version1", "tcap.version1",
FT_BOOLEAN, 8, NULL, 0x80,
- "", HFILL }},
- { &hf_tcap_T_protocol_versionre_version1,
+ NULL, HFILL }},
+ { &hf_tcap_AARQ_protocol_version_version1,
{ "version1", "tcap.version1",
FT_BOOLEAN, 8, NULL, 0x80,
- "", HFILL }},
- { &hf_tcap_T_protocol_version3_version1,
+ NULL, HFILL }},
+ { &hf_tcap_AARE_protocol_version_version1,
{ "version1", "tcap.version1",
FT_BOOLEAN, 8, NULL, 0x80,
- "", HFILL }},
+ NULL, HFILL }},
/*--- End of included file: packet-tcap-hfarr.c ---*/
-#line 295 "packet-tcap-template.c"
+#line 315 "packet-tcap-template.c"
};
/* Setup protocol subtree array */
/*--- Included file: packet-tcap-ettarr.c ---*/
#line 1 "packet-tcap-ettarr.c"
- &ett_tcap_DialoguePDU,
- &ett_tcap_ExternalPDU,
- &ett_tcap_UserInformation,
- &ett_tcap_AARQ_apdu,
- &ett_tcap_T_protocol_versionrq,
- &ett_tcap_AARE_apdu,
- &ett_tcap_T_protocol_versionre,
- &ett_tcap_RLRQ_apdu,
- &ett_tcap_RLRE_apdu,
- &ett_tcap_ABRT_apdu,
- &ett_tcap_Associate_source_diagnostic,
- &ett_tcap_UniDialoguePDU,
- &ett_tcap_AUDT_apdu,
- &ett_tcap_T_protocol_version3,
+ &ett_tcap_ExternalPDU_U,
&ett_tcap_TCMessage,
&ett_tcap_Unidirectional,
&ett_tcap_Begin,
&ett_tcap_Continue,
&ett_tcap_Abort,
&ett_tcap_Reason,
- &ett_tcap_ComponentPortion,
+ &ett_tcap_SEQUENCE_SIZE_1_MAX_OF_Component,
&ett_tcap_Component,
&ett_tcap_Invoke,
&ett_tcap_ReturnResult,
&ett_tcap_T_problem,
&ett_tcap_OPERATION,
&ett_tcap_ERROR,
- &ett_tcap_UniTransactionPDU,
- &ett_tcap_TransactionPDU,
- &ett_tcap_AbortPDU,
- &ett_tcap_T_causeInformation,
- &ett_tcap_DialoguePortionANSI,
- &ett_tcap_T_applicationContext,
- &ett_tcap_T_securityContext,
- &ett_tcap_Confidentiality,
- &ett_tcap_T_confidentialityId,
- &ett_tcap_ComponentSequence,
- &ett_tcap_ComponentPDU,
- &ett_tcap_InvokePDU,
- &ett_tcap_ANSIparamch,
- &ett_tcap_ReturnResultPDU,
- &ett_tcap_ReturnErrorPDU,
- &ett_tcap_RejectPDU,
- &ett_tcap_OperationCode,
&ett_tcap_ErrorCode,
+ &ett_tcap_UniDialoguePDU,
+ &ett_tcap_AUDT_apdu_U,
+ &ett_tcap_AUDT_protocol_version,
+ &ett_tcap_AUDT_user_information,
+ &ett_tcap_DialoguePDU,
+ &ett_tcap_AARQ_apdu_U,
+ &ett_tcap_AARQ_protocol_version,
+ &ett_tcap_AARQ_user_information,
+ &ett_tcap_AARE_apdu_U,
+ &ett_tcap_AARE_protocol_version,
+ &ett_tcap_AARE_user_information,
+ &ett_tcap_ABRT_apdu_U,
+ &ett_tcap_ABRT_user_information,
+ &ett_tcap_Associate_source_diagnostic,
/*--- End of included file: packet-tcap-ettarr.c ---*/
-#line 305 "packet-tcap-template.c"
+#line 325 "packet-tcap-template.c"
};
/*static enum_val_t tcap_options[] = {
proto_register_field_array(proto_tcap, hf, array_length(hf));
proto_register_subtree_array(ett, array_length(ett));
- tcap_module = prefs_register_protocol(proto_tcap, proto_reg_handoff_tcap);
+ tcap_module = prefs_register_protocol(proto_tcap, NULL);
#if 0
prefs_register_enum_preference(tcap_module, "standard", "ITU TCAP standard",
}
static int
-dissect_tcap_param(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset)
+dissect_tcap_param(asn1_ctx_t *actx, proto_tree *tree, tvbuff_t *tvb, int offset)
{
gint tag_offset, saved_offset, len_offset;
tvbuff_t *next_tvb;
gboolean pc;
gint32 tag;
guint32 len;
+ guint32 tag_length;
+ guint32 len_length;
gboolean ind_field;
while (tvb_reported_length_remaining(tvb, offset) > 0)
offset = get_ber_identifier(tvb, offset, &class, &pc, &tag);
tag_offset = offset;
- offset = get_ber_length(tree, tvb, offset, &len, &ind_field);
+ offset = get_ber_length(tvb, offset, &len, &ind_field);
len_offset = offset;
+ tag_length = tag_offset - saved_offset;
+ len_length = len_offset - tag_offset;
+
if (pc)
{
- pi =
- proto_tree_add_text(tree, tvb, saved_offset, len + (len_offset - saved_offset), "CONSTRUCTOR");
+ pi = proto_tree_add_text(tree, tvb, saved_offset,
+ len + (len_offset - saved_offset),
+ "CONSTRUCTOR");
subtree = proto_item_add_subtree(pi, ett_param);
proto_tree_add_uint_format(subtree, hf_tcap_tag, tvb,
- saved_offset, tag_offset-saved_offset, tag, "CONSTRUCTOR Tag");
- proto_tree_add_uint(subtree, hf_tcap_tag, tvb,
- saved_offset, tag_offset-saved_offset, class);
-
- proto_tree_add_uint(subtree, hf_tcap_length, tvb,
- tag_offset, len_offset-tag_offset, len);
- if (len-(2*ind_field)) /*should always be positive unless we get an empty contructor pointless? */
- {
- next_tvb = tvb_new_subset(tvb, offset, len-(2*ind_field), len-(2*ind_field));
- dissect_tcap_param(pinfo, subtree,next_tvb,0);
+ saved_offset, tag_length, tag,
+ "CONSTRUCTOR Tag");
+ proto_tree_add_uint(subtree, hf_tcap_tag, tvb, saved_offset,
+ tag_length, class);
+
+ proto_tree_add_uint(subtree, hf_tcap_length, tvb, tag_offset,
+ len_length, len);
+
+ if (len-(2*ind_field)) /*should always be positive unless we get an empty contructor pointless? */
+ {
+ next_tvb = tvb_new_subset(tvb, offset, len-(2*ind_field),
+ len-(2*ind_field));
+ dissect_tcap_param(actx, subtree,next_tvb,0);
}
- if (ind_field)
- proto_tree_add_text(subtree, tvb, offset+len-2, 2, "CONSTRUCTOR EOC");
+
+ if (ind_field)
+ proto_tree_add_text(subtree, tvb, offset+len-2, 2, "CONSTRUCTOR EOC");
+
offset += len;
}
else
{
- pi = proto_tree_add_text(tree, tvb,
- saved_offset, len + (len_offset - saved_offset), "Parameter (0x%.2x)", tag);
+ pi = proto_tree_add_text(tree, tvb, saved_offset,
+ len + (len_offset - saved_offset),
+ "Parameter (0x%.2x)", tag);
subtree = proto_item_add_subtree(pi, ett_param);
- proto_tree_add_uint(subtree, hf_tcap_tag, tvb,
- saved_offset, 1, tag);
+ proto_tree_add_uint(subtree, hf_tcap_tag, tvb, saved_offset,
+ tag_length, tag);
proto_tree_add_uint(subtree, hf_tcap_length, tvb,
- saved_offset+1, 1, len);
- if (len) /* check for NULLS */
- {
- next_tvb = tvb_new_subset(tvb, offset, len, len);
- dissect_ber_octet_string(TRUE, pinfo, tree, next_tvb, 0, hf_tcap_data,
- NULL);
- }
+ saved_offset+tag_length, len_length, len);
+
+ if (len) /* check for NULLS */
+ {
+ next_tvb = tvb_new_subset(tvb, offset, len, len);
+ dissect_ber_octet_string(TRUE, actx, tree, next_tvb, 0,
+ hf_tcap_data, NULL);
+ }
+
offset += len;
}
}
memset(p_tcap_private,0,sizeof(struct tcap_private_t) );
}
-
+/*
+ * Call ITU Subdissector to decode the Tcap Component
+ */
static int
-dissect_tcap_TheComponent(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, asn1_ctx_t *actx _U_, proto_tree *tree, int hf_index _U_)
+dissect_tcap_ITU_ComponentPDU(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, asn1_ctx_t *actx _U_, proto_tree *tree, int hf_index _U_)
{
- tvbuff_t * next_tvb;
- dissector_handle_t subdissector_handle;
+ dissector_handle_t subdissector_handle=NULL;
gboolean is_subdissector=FALSE;
struct tcaphash_context_t * p_tcap_context=NULL;
- gint8 class;
- gboolean pc;
- gint tag;
- guint32 len, s_offset;
- gint ind_field;
- proto_tree * stat_tree=NULL;
- proto_item * stat_item=NULL;
/*
* ok lets look at the oid and ssn and try and find a dissector, otherwise lets decode it.
*/
- ber_oid_dissector_table = find_dissector_table("ber.oid");
- s_offset = offset;
- offset = get_ber_identifier(tvb, offset, &class, &pc, &tag);
- offset = get_ber_length(tree, tvb, offset, &len, &ind_field);
- /* we can believe the length now */
- next_tvb = tvb_new_subset(tvb, s_offset, len+(offset-s_offset), len+(offset-s_offset));
- if (!next_tvb)
- return offset+len;
-
- dissect_ber_choice(actx, tree, next_tvb, 0,
- Component_choice, hf_index, ett_tcap_Component,NULL);
-
/*
* Handle The TCAP Service Response Time
*/
if ( gtcap_HandleSRT ) {
if (!tcap_subdissector_used) {
- /* Create TCAP context and tree for display */
- if (gtcap_DisplaySRT && tree) {
- stat_item = proto_tree_add_text(tcap_stat_tree, tvb, offset, -1, "Stat");
- PROTO_ITEM_SET_GENERATED(stat_item);
- stat_tree = proto_item_add_subtree(stat_item, ett_tcap_stat);
- }
- p_tcap_context=tcapsrt_call_matching(tvb, actx->pinfo, stat_tree, gp_tcapsrt_info);
- tcap_subdissector_used=TRUE;
- gp_tcap_context=p_tcap_context;
- tcap_private.context=p_tcap_context;
+ p_tcap_context=tcapsrt_call_matching(tvb, actx->pinfo, tcap_stat_tree, gp_tcapsrt_info);
+ tcap_subdissector_used=TRUE;
+ gp_tcap_context=p_tcap_context;
+ tcap_private.context=p_tcap_context;
}else{
/* Take the last TCAP context */
p_tcap_context = gp_tcap_context;
/* We have already an Application Context, check if we have
to fallback to a lower version */
if ( strncmp(p_tcap_context->oid,cur_oid, LENGTH_OID)!=0) {
- /* ACN, changed, Fallback to lower version
- * and update the subdissector (purely formal)
+ /* ACN, changed, Fallback to lower version
+ * and update the subdissector (purely formal)
*/
- strncpy(p_tcap_context->oid,cur_oid, LENGTH_OID);
+ g_strlcpy(p_tcap_context->oid,cur_oid, LENGTH_OID);
if ( (subdissector_handle = dissector_get_string_handle(ber_oid_dissector_table, cur_oid)) ) {
p_tcap_context->subdissector_handle=subdissector_handle;
+ p_tcap_context->subdissector_present=TRUE;
}
}
} else {
/* We do not have the OID in the TCAP context, so store it */
- strncpy(p_tcap_context->oid,cur_oid, LENGTH_OID);
+ g_strlcpy(p_tcap_context->oid,cur_oid, LENGTH_OID);
+ p_tcap_context->oid_present=TRUE;
+ /* Try to find a subdissector according to OID */
if ( (subdissector_handle
= dissector_get_string_handle(ber_oid_dissector_table, cur_oid)) ) {
p_tcap_context->subdissector_handle=subdissector_handle;
- p_tcap_context->oid_present=TRUE;
+ p_tcap_context->subdissector_present=TRUE;
+ } else {
+ /* Not found, so try to find a subdissector according to SSN */
+ if ( (subdissector_handle = get_itu_tcap_subdissector(actx->pinfo->match_port))) {
+ /* Found according to SSN */
+ p_tcap_context->subdissector_handle=subdissector_handle;
+ p_tcap_context->subdissector_present=TRUE;
+ }
}
} /* context OID */
} else {
if ( p_tcap_context
- && p_tcap_context->oid_present) {
+ && p_tcap_context->subdissector_present) {
/* Take the subdissector from the context */
subdissector_handle=p_tcap_context->subdissector_handle;
is_subdissector=TRUE;
/* Call the sub dissector if present, and not already called */
if (is_subdissector)
- call_dissector(subdissector_handle, next_tvb, actx->pinfo, tcap_top_tree);
-
- return offset+len;
-}
-
-
-static int
-dissect_tcap_TheExternUserInfo(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, asn1_ctx_t *actx _U_, proto_tree *tree, int hf_index _U_)
-{
- tvbuff_t *next_tvb;
- gint8 class;
- gboolean pc;
- gint tag;
- guint32 len, start_offset;
- gint ind_field;
+ call_dissector(subdissector_handle, tvb, actx->pinfo, tree);
- /*
- * ok lets look at the oid and ssn and try and find a dissector, otherwise lets decode it.
- */
- ber_oid_dissector_table = find_dissector_table("ber.oid");
- start_offset = offset;
- offset = get_ber_identifier(tvb, offset, &class, &pc, &tag);
- offset = get_ber_length(tree, tvb, offset, &len, &ind_field);
-
- next_tvb = tvb_new_subset(tvb, start_offset, len +(offset - start_offset), len+(offset - start_offset));
- if (!next_tvb)
- return offset+len;
-
- if (ber_oid_dissector_table && tcapext_oid){
- if(!dissector_try_string(ber_oid_dissector_table, tcapext_oid, next_tvb, actx->pinfo, tcap_top_tree))
- {
- dissect_tcap_param(actx->pinfo,tree,next_tvb,0);
- offset+=len;
- return offset;
- }
- }
- return offset+len;
+ return offset;
}
-
void call_tcap_dissector(dissector_handle_t handle, tvbuff_t* tvb, packet_info* pinfo, proto_tree* tree) {
requested_subdissector_handle = handle;