2005-06-07 05:49:06 +00:00
|
|
|
/* Do not modify this file. */
|
2006-05-24 12:24:54 +00:00
|
|
|
/* It is created automatically by the ASN.1 to Wireshark dissector compiler */
|
2007-11-07 21:22:25 +00:00
|
|
|
/* packet-tcap.c */
|
2008-07-26 22:39:32 +00:00
|
|
|
/* ../../tools/asn2wrs.py -b -p tcap -c tcap.cnf -s packet-tcap-template tcap.asn */
|
2005-06-07 05:49:06 +00:00
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
/* Input file: packet-tcap-template.c */
|
2005-06-07 05:49:06 +00:00
|
|
|
|
2005-12-08 23:29:21 +00:00
|
|
|
#line 1 "packet-tcap-template.c"
|
2005-06-07 05:49:06 +00:00
|
|
|
/* packet-tcap-template.c
|
|
|
|
* Routines for TCAP
|
|
|
|
* Copyright 2004 - 2005, Tim Endean <endeant@hotmail.com>
|
|
|
|
* Built from the gsm-map dissector Copyright 2004 - 2005, Anders Broman <anders.broman@ericsson.com>
|
2003-10-02 06:13:29 +00:00
|
|
|
*
|
2004-07-18 00:24:25 +00:00
|
|
|
* $Id$
|
2007-07-27 19:24:40 +00:00
|
|
|
*
|
2006-05-21 04:49:01 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
2003-10-02 06:13:29 +00:00
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
2005-06-07 05:49:06 +00:00
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
* References: ETSI 300 374
|
2003-10-02 06:13:29 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
# include "config.h"
|
|
|
|
#endif
|
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
#include <glib.h>
|
|
|
|
#include <epan/packet.h>
|
|
|
|
#include <epan/prefs.h>
|
|
|
|
#include <epan/conversation.h>
|
2007-08-25 01:14:24 +00:00
|
|
|
#include <epan/oids.h>
|
From Florent Drouin:
Here are some patches and a new module to introduce the notion of Tcap context for a Tcap transaction. For each Tcap transaction, several parameters, like session identifier, start time or OID, will be saved in a hash table, to keep these informations available for the next messages. This context is then given to the upper layer, and can be used, for example, to generate transaction-associated statistics.
Moreover, the Upper protocol, detected in the Begin of the TCAP transaction ( according to the OID ), is saved in the context, and will be reused for the next messages of the transaction. This help the decoding of SS7 messages, without any SSN configuration in the "wireshark preferences".
You will have too, the possibility to apply a filter to see only the messages related to a TCAP transaction. (tcap.srt.session_id=XXX)
To enable the use of the Tcap context, you have 2 new parameters in the preferences,
- SRT, enable search for a Tcap context for any TCAP messages
- persistentSRT, keep the Tcap context, even after the transaction has been closed. This is mandatory with Wireshark, to have a clean display of the stats.
There is 2 new timers in the preferences for the statistics, to tune the retransmission timeout, and messages lost timeout.
svn path=/trunk/; revision=19341
2006-09-27 20:06:06 +00:00
|
|
|
#include <epan/emem.h>
|
2007-05-13 20:58:29 +00:00
|
|
|
#include <epan/asn1.h>
|
2008-03-01 17:23:39 +00:00
|
|
|
#include <epan/strutil.h>
|
2005-06-07 05:49:06 +00:00
|
|
|
|
2003-10-02 06:13:29 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <string.h>
|
2005-06-07 05:49:06 +00:00
|
|
|
#include "packet-ber.h"
|
|
|
|
#include "packet-tcap.h"
|
From Florent Drouin:
Here are some patches and a new module to introduce the notion of Tcap context for a Tcap transaction. For each Tcap transaction, several parameters, like session identifier, start time or OID, will be saved in a hash table, to keep these informations available for the next messages. This context is then given to the upper layer, and can be used, for example, to generate transaction-associated statistics.
Moreover, the Upper protocol, detected in the Begin of the TCAP transaction ( according to the OID ), is saved in the context, and will be reused for the next messages of the transaction. This help the decoding of SS7 messages, without any SSN configuration in the "wireshark preferences".
You will have too, the possibility to apply a filter to see only the messages related to a TCAP transaction. (tcap.srt.session_id=XXX)
To enable the use of the Tcap context, you have 2 new parameters in the preferences,
- SRT, enable search for a Tcap context for any TCAP messages
- persistentSRT, keep the Tcap context, even after the transaction has been closed. This is mandatory with Wireshark, to have a clean display of the stats.
There is 2 new timers in the preferences for the statistics, to tune the retransmission timeout, and messages lost timeout.
svn path=/trunk/; revision=19341
2006-09-27 20:06:06 +00:00
|
|
|
#include "epan/tcap-persistentdata.h"
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
#define PNAME "Transaction Capabilities Application Part"
|
|
|
|
#define PSNAME "TCAP"
|
|
|
|
#define PFNAME "tcap"
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
/* Initialize the protocol and registered fields */
|
|
|
|
int proto_tcap = -1;
|
2007-04-23 10:45:00 +00:00
|
|
|
static int hf_tcap_tag = -1;
|
|
|
|
static int hf_tcap_length = -1;
|
2005-06-07 05:49:06 +00:00
|
|
|
static int hf_tcap_data = -1;
|
2005-08-18 21:36:59 +00:00
|
|
|
static int hf_tcap_tid = -1;
|
2005-06-07 05:49:06 +00:00
|
|
|
|
From Florent Drouin:
Here are some patches and a new module to introduce the notion of Tcap context for a Tcap transaction. For each Tcap transaction, several parameters, like session identifier, start time or OID, will be saved in a hash table, to keep these informations available for the next messages. This context is then given to the upper layer, and can be used, for example, to generate transaction-associated statistics.
Moreover, the Upper protocol, detected in the Begin of the TCAP transaction ( according to the OID ), is saved in the context, and will be reused for the next messages of the transaction. This help the decoding of SS7 messages, without any SSN configuration in the "wireshark preferences".
You will have too, the possibility to apply a filter to see only the messages related to a TCAP transaction. (tcap.srt.session_id=XXX)
To enable the use of the Tcap context, you have 2 new parameters in the preferences,
- SRT, enable search for a Tcap context for any TCAP messages
- persistentSRT, keep the Tcap context, even after the transaction has been closed. This is mandatory with Wireshark, to have a clean display of the stats.
There is 2 new timers in the preferences for the statistics, to tune the retransmission timeout, and messages lost timeout.
svn path=/trunk/; revision=19341
2006-09-27 20:06:06 +00:00
|
|
|
int hf_tcapsrt_SessionId=-1;
|
|
|
|
int hf_tcapsrt_Duplicate=-1;
|
|
|
|
int hf_tcapsrt_BeginSession=-1;
|
|
|
|
int hf_tcapsrt_EndSession=-1;
|
|
|
|
int hf_tcapsrt_SessionTime=-1;
|
|
|
|
|
2005-12-17 16:55:45 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
/*--- Included file: packet-tcap-hf.c ---*/
|
2005-12-08 23:29:21 +00:00
|
|
|
#line 1 "packet-tcap-hf.c"
|
2007-04-21 20:53:35 +00:00
|
|
|
static int hf_tcap_DialoguePDU_PDU = -1; /* DialoguePDU */
|
|
|
|
static int hf_tcap_UniDialoguePDU_PDU = -1; /* UniDialoguePDU */
|
2005-06-07 05:49:06 +00:00
|
|
|
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_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_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 */
|
2007-07-27 06:23:45 +00:00
|
|
|
static int hf_tcap_ansiqueryWithPerm = -1; /* T_ansiqueryWithPerm */
|
|
|
|
static int hf_tcap_ansiqueryWithoutPerm = -1; /* T_ansiqueryWithoutPerm */
|
|
|
|
static int hf_tcap_ansiresponse = -1; /* T_ansiresponse */
|
|
|
|
static int hf_tcap_ansiconversationWithPerm = -1; /* T_ansiconversationWithPerm */
|
|
|
|
static int hf_tcap_ansiconversationWithoutPerm = -1; /* T_ansiconversationWithoutPerm */
|
2005-06-07 05:49:06 +00:00
|
|
|
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_dtid = -1; /* DestTransactionID */
|
|
|
|
static int hf_tcap_reason = -1; /* Reason */
|
|
|
|
static int hf_tcap_p_abortCause = -1; /* P_AbortCause */
|
|
|
|
static int hf_tcap_u_abortCause = -1; /* DialoguePortion */
|
2007-11-07 21:22:25 +00:00
|
|
|
static int hf_tcap__untag_item = -1; /* Component */
|
2005-06-07 05:49:06 +00:00
|
|
|
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_reject = -1; /* Reject */
|
|
|
|
static int hf_tcap_returnResultNotLast = -1; /* ReturnResult */
|
|
|
|
static int hf_tcap_invokeID = -1; /* InvokeIdType */
|
|
|
|
static int hf_tcap_linkedID = -1; /* InvokeIdType */
|
2005-06-07 20:29:23 +00:00
|
|
|
static int hf_tcap_opCode = -1; /* OPERATION */
|
2005-06-07 05:49:06 +00:00
|
|
|
static int hf_tcap_parameter = -1; /* Parameter */
|
|
|
|
static int hf_tcap_resultretres = -1; /* T_resultretres */
|
|
|
|
static int hf_tcap_errorCode = -1; /* ErrorCode */
|
|
|
|
static int hf_tcap_invokeIDRej = -1; /* T_invokeIDRej */
|
|
|
|
static int hf_tcap_derivable = -1; /* InvokeIdType */
|
|
|
|
static int hf_tcap_not_derivable = -1; /* NULL */
|
|
|
|
static int hf_tcap_problem = -1; /* T_problem */
|
|
|
|
static int hf_tcap_generalProblem = -1; /* GeneralProblem */
|
|
|
|
static int hf_tcap_invokeProblem = -1; /* InvokeProblem */
|
|
|
|
static int hf_tcap_returnResultProblem = -1; /* ReturnResultProblem */
|
|
|
|
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 */
|
2007-11-07 21:22:25 +00:00
|
|
|
static int hf_tcap__untag_item_01 = -1; /* ComponentPDU */
|
2005-06-07 05:49:06 +00:00
|
|
|
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 */
|
2005-06-07 20:29:23 +00:00
|
|
|
static int hf_tcap_operationCode = -1; /* OperationCode */
|
2005-06-07 05:49:06 +00:00
|
|
|
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 */
|
|
|
|
/* 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;
|
|
|
|
|
|
|
|
/*--- End of included file: packet-tcap-hf.c ---*/
|
2008-03-01 17:23:39 +00:00
|
|
|
#line 65 "packet-tcap-template.c"
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
/* Initialize the subtree pointers */
|
|
|
|
static gint ett_tcap = -1;
|
|
|
|
static gint ett_param = -1;
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-08-18 21:36:59 +00:00
|
|
|
static gint ett_otid = -1;
|
|
|
|
static gint ett_dtid = -1;
|
From Florent Drouin:
Here are some patches and a new module to introduce the notion of Tcap context for a Tcap transaction. For each Tcap transaction, several parameters, like session identifier, start time or OID, will be saved in a hash table, to keep these informations available for the next messages. This context is then given to the upper layer, and can be used, for example, to generate transaction-associated statistics.
Moreover, the Upper protocol, detected in the Begin of the TCAP transaction ( according to the OID ), is saved in the context, and will be reused for the next messages of the transaction. This help the decoding of SS7 messages, without any SSN configuration in the "wireshark preferences".
You will have too, the possibility to apply a filter to see only the messages related to a TCAP transaction. (tcap.srt.session_id=XXX)
To enable the use of the Tcap context, you have 2 new parameters in the preferences,
- SRT, enable search for a Tcap context for any TCAP messages
- persistentSRT, keep the Tcap context, even after the transaction has been closed. This is mandatory with Wireshark, to have a clean display of the stats.
There is 2 new timers in the preferences for the statistics, to tune the retransmission timeout, and messages lost timeout.
svn path=/trunk/; revision=19341
2006-09-27 20:06:06 +00:00
|
|
|
gint ett_tcap_stat = -1;
|
2005-08-18 21:36:59 +00:00
|
|
|
|
From Florent Drouin:
Here are some patches and a new module to introduce the notion of Tcap context for a Tcap transaction. For each Tcap transaction, several parameters, like session identifier, start time or OID, will be saved in a hash table, to keep these informations available for the next messages. This context is then given to the upper layer, and can be used, for example, to generate transaction-associated statistics.
Moreover, the Upper protocol, detected in the Begin of the TCAP transaction ( according to the OID ), is saved in the context, and will be reused for the next messages of the transaction. This help the decoding of SS7 messages, without any SSN configuration in the "wireshark preferences".
You will have too, the possibility to apply a filter to see only the messages related to a TCAP transaction. (tcap.srt.session_id=XXX)
To enable the use of the Tcap context, you have 2 new parameters in the preferences,
- SRT, enable search for a Tcap context for any TCAP messages
- persistentSRT, keep the Tcap context, even after the transaction has been closed. This is mandatory with Wireshark, to have a clean display of the stats.
There is 2 new timers in the preferences for the statistics, to tune the retransmission timeout, and messages lost timeout.
svn path=/trunk/; revision=19341
2006-09-27 20:06:06 +00:00
|
|
|
static struct tcapsrt_info_t * gp_tcapsrt_info;
|
|
|
|
static gboolean tcap_subdissector_used=FALSE;
|
2007-04-03 19:08:00 +00:00
|
|
|
static dissector_handle_t requested_subdissector_handle = NULL;
|
|
|
|
|
From Florent Drouin:
Here are some patches and a new module to introduce the notion of Tcap context for a Tcap transaction. For each Tcap transaction, several parameters, like session identifier, start time or OID, will be saved in a hash table, to keep these informations available for the next messages. This context is then given to the upper layer, and can be used, for example, to generate transaction-associated statistics.
Moreover, the Upper protocol, detected in the Begin of the TCAP transaction ( according to the OID ), is saved in the context, and will be reused for the next messages of the transaction. This help the decoding of SS7 messages, without any SSN configuration in the "wireshark preferences".
You will have too, the possibility to apply a filter to see only the messages related to a TCAP transaction. (tcap.srt.session_id=XXX)
To enable the use of the Tcap context, you have 2 new parameters in the preferences,
- SRT, enable search for a Tcap context for any TCAP messages
- persistentSRT, keep the Tcap context, even after the transaction has been closed. This is mandatory with Wireshark, to have a clean display of the stats.
There is 2 new timers in the preferences for the statistics, to tune the retransmission timeout, and messages lost timeout.
svn path=/trunk/; revision=19341
2006-09-27 20:06:06 +00:00
|
|
|
static struct tcaphash_context_t * gp_tcap_context=NULL;
|
2005-08-18 21:36:59 +00:00
|
|
|
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
/*--- Included file: packet-tcap-ett.c ---*/
|
2005-12-08 23:29:21 +00:00
|
|
|
#line 1 "packet-tcap-ett.c"
|
2005-06-07 05:49:06 +00:00
|
|
|
static gint ett_tcap_DialoguePDU = -1;
|
2007-11-07 21:22:25 +00:00
|
|
|
static gint ett_tcap_ExternalPDU_U = -1;
|
|
|
|
static gint ett_tcap_UserInformation_U = -1;
|
|
|
|
static gint ett_tcap_AARQ_apdu_U = -1;
|
2005-06-07 05:49:06 +00:00
|
|
|
static gint ett_tcap_T_protocol_versionrq = -1;
|
2007-11-07 21:22:25 +00:00
|
|
|
static gint ett_tcap_AARE_apdu_U = -1;
|
2005-06-07 05:49:06 +00:00
|
|
|
static gint ett_tcap_T_protocol_versionre = -1;
|
2007-11-07 21:22:25 +00:00
|
|
|
static gint ett_tcap_ABRT_apdu_U = -1;
|
2005-06-07 05:49:06 +00:00
|
|
|
static gint ett_tcap_Associate_source_diagnostic = -1;
|
|
|
|
static gint ett_tcap_UniDialoguePDU = -1;
|
2007-11-07 21:22:25 +00:00
|
|
|
static gint ett_tcap_AUDT_apdu_U = -1;
|
2005-06-07 05:49:06 +00:00
|
|
|
static gint ett_tcap_T_protocol_version3 = -1;
|
2007-04-23 06:24:39 +00:00
|
|
|
static gint ett_tcap_TCMessage = -1;
|
2005-06-07 05:49:06 +00:00
|
|
|
static gint ett_tcap_Unidirectional = -1;
|
|
|
|
static gint ett_tcap_Begin = -1;
|
|
|
|
static gint ett_tcap_End = -1;
|
|
|
|
static gint ett_tcap_Continue = -1;
|
|
|
|
static gint ett_tcap_Abort = -1;
|
|
|
|
static gint ett_tcap_Reason = -1;
|
2007-11-07 21:22:25 +00:00
|
|
|
static gint ett_tcap_SEQUENCE_SIZE_1_MAX_OF_Component = -1;
|
2005-06-07 05:49:06 +00:00
|
|
|
static gint ett_tcap_Component = -1;
|
|
|
|
static gint ett_tcap_Invoke = -1;
|
|
|
|
static gint ett_tcap_ReturnResult = -1;
|
|
|
|
static gint ett_tcap_T_resultretres = -1;
|
|
|
|
static gint ett_tcap_ReturnError = -1;
|
|
|
|
static gint ett_tcap_Reject = -1;
|
|
|
|
static gint ett_tcap_T_invokeIDRej = -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;
|
2007-11-07 21:22:25 +00:00
|
|
|
static gint ett_tcap_DialoguePortionANSI_U = -1;
|
2005-06-07 05:49:06 +00:00
|
|
|
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;
|
2007-11-07 21:22:25 +00:00
|
|
|
static gint ett_tcap_SEQUENCE_OF_ComponentPDU = -1;
|
2005-06-07 05:49:06 +00:00
|
|
|
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;
|
|
|
|
|
|
|
|
/*--- End of included file: packet-tcap-ett.c ---*/
|
2008-03-01 17:23:39 +00:00
|
|
|
#line 81 "packet-tcap-template.c"
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2004-10-14 23:45:09 +00:00
|
|
|
#define MAX_SSN 254
|
2004-10-16 23:32:24 +00:00
|
|
|
static range_t *global_ssn_range;
|
|
|
|
static range_t *ssn_range;
|
From Florent Drouin:
Here are some patches and a new module to introduce the notion of Tcap context for a Tcap transaction. For each Tcap transaction, several parameters, like session identifier, start time or OID, will be saved in a hash table, to keep these informations available for the next messages. This context is then given to the upper layer, and can be used, for example, to generate transaction-associated statistics.
Moreover, the Upper protocol, detected in the Begin of the TCAP transaction ( according to the OID ), is saved in the context, and will be reused for the next messages of the transaction. This help the decoding of SS7 messages, without any SSN configuration in the "wireshark preferences".
You will have too, the possibility to apply a filter to see only the messages related to a TCAP transaction. (tcap.srt.session_id=XXX)
To enable the use of the Tcap context, you have 2 new parameters in the preferences,
- SRT, enable search for a Tcap context for any TCAP messages
- persistentSRT, keep the Tcap context, even after the transaction has been closed. This is mandatory with Wireshark, to have a clean display of the stats.
There is 2 new timers in the preferences for the statistics, to tune the retransmission timeout, and messages lost timeout.
svn path=/trunk/; revision=19341
2006-09-27 20:06:06 +00:00
|
|
|
struct tcap_private_t tcap_private;
|
|
|
|
|
|
|
|
gboolean gtcap_HandleSRT=FALSE;
|
|
|
|
extern gboolean gtcap_PersistentSRT;
|
|
|
|
extern gboolean gtcap_DisplaySRT;
|
|
|
|
extern guint gtcap_RepetitionTimeout;
|
|
|
|
extern guint gtcap_LostTimeout;
|
2004-10-14 23:45:09 +00:00
|
|
|
|
2006-12-07 20:34:08 +00:00
|
|
|
static dissector_handle_t tcap_handle = NULL;
|
2005-06-07 05:49:06 +00:00
|
|
|
static dissector_table_t ber_oid_dissector_table=NULL;
|
2005-11-14 10:02:31 +00:00
|
|
|
static const char * cur_oid;
|
|
|
|
static const char * tcapext_oid;
|
From Florent Drouin:
Here are some patches and a new module to introduce the notion of Tcap context for a Tcap transaction. For each Tcap transaction, several parameters, like session identifier, start time or OID, will be saved in a hash table, to keep these informations available for the next messages. This context is then given to the upper layer, and can be used, for example, to generate transaction-associated statistics.
Moreover, the Upper protocol, detected in the Begin of the TCAP transaction ( according to the OID ), is saved in the context, and will be reused for the next messages of the transaction. This help the decoding of SS7 messages, without any SSN configuration in the "wireshark preferences".
You will have too, the possibility to apply a filter to see only the messages related to a TCAP transaction. (tcap.srt.session_id=XXX)
To enable the use of the Tcap context, you have 2 new parameters in the preferences,
- SRT, enable search for a Tcap context for any TCAP messages
- persistentSRT, keep the Tcap context, even after the transaction has been closed. This is mandatory with Wireshark, to have a clean display of the stats.
There is 2 new timers in the preferences for the statistics, to tune the retransmission timeout, and messages lost timeout.
svn path=/trunk/; revision=19341
2006-09-27 20:06:06 +00:00
|
|
|
static proto_tree * tcap_top_tree=NULL;
|
|
|
|
static proto_tree * tcap_stat_tree=NULL;
|
|
|
|
|
2003-10-02 06:13:29 +00:00
|
|
|
static dissector_handle_t data_handle;
|
2007-08-14 22:05:36 +00:00
|
|
|
static dissector_handle_t ansi_tcap_handle;
|
2003-10-02 06:13:29 +00:00
|
|
|
|
From Florent Drouin:
Here are some patches and a new module to introduce the notion of Tcap context for a Tcap transaction. For each Tcap transaction, several parameters, like session identifier, start time or OID, will be saved in a hash table, to keep these informations available for the next messages. This context is then given to the upper layer, and can be used, for example, to generate transaction-associated statistics.
Moreover, the Upper protocol, detected in the Begin of the TCAP transaction ( according to the OID ), is saved in the context, and will be reused for the next messages of the transaction. This help the decoding of SS7 messages, without any SSN configuration in the "wireshark preferences".
You will have too, the possibility to apply a filter to see only the messages related to a TCAP transaction. (tcap.srt.session_id=XXX)
To enable the use of the Tcap context, you have 2 new parameters in the preferences,
- SRT, enable search for a Tcap context for any TCAP messages
- persistentSRT, keep the Tcap context, even after the transaction has been closed. This is mandatory with Wireshark, to have a clean display of the stats.
There is 2 new timers in the preferences for the statistics, to tune the retransmission timeout, and messages lost timeout.
svn path=/trunk/; revision=19341
2006-09-27 20:06:06 +00:00
|
|
|
static void raz_tcap_private(struct tcap_private_t * p_tcap_private);
|
2007-05-15 05:49:43 +00:00
|
|
|
static int dissect_tcap_param(asn1_ctx_t *actx, proto_tree *tree, tvbuff_t *tvb, int offset);
|
2007-05-13 20:58:29 +00:00
|
|
|
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_);
|
2007-07-30 17:10:20 +00:00
|
|
|
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 int dissect_tcap_ANSI_ComponentPDU(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, asn1_ctx_t *actx _U_, proto_tree *tree, int hf_index _U_);
|
2007-05-13 20:58:29 +00:00
|
|
|
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_);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-12-17 16:55:45 +00:00
|
|
|
static GHashTable* ansi_sub_dissectors = NULL;
|
|
|
|
static GHashTable* itu_sub_dissectors = NULL;
|
|
|
|
|
|
|
|
static void dissect_tcap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree);
|
|
|
|
|
|
|
|
extern void add_ansi_tcap_subdissector(guint32 ssn, dissector_handle_t dissector) {
|
|
|
|
g_hash_table_insert(ansi_sub_dissectors,GUINT_TO_POINTER(ssn),dissector);
|
|
|
|
dissector_add("sccp.ssn",ssn,tcap_handle);
|
|
|
|
}
|
|
|
|
|
|
|
|
extern void add_itu_tcap_subdissector(guint32 ssn, dissector_handle_t dissector) {
|
|
|
|
g_hash_table_insert(itu_sub_dissectors,GUINT_TO_POINTER(ssn),dissector);
|
|
|
|
dissector_add("sccp.ssn",ssn,tcap_handle);
|
|
|
|
}
|
|
|
|
|
|
|
|
extern void delete_ansi_tcap_subdissector(guint32 ssn, dissector_handle_t dissector _U_) {
|
|
|
|
g_hash_table_remove(ansi_sub_dissectors,GUINT_TO_POINTER(ssn));
|
2007-07-30 17:10:20 +00:00
|
|
|
if (!get_itu_tcap_subdissector(ssn))
|
|
|
|
dissector_delete("sccp.ssn",ssn,tcap_handle);
|
2005-12-17 16:55:45 +00:00
|
|
|
}
|
|
|
|
extern void delete_itu_tcap_subdissector(guint32 ssn, dissector_handle_t dissector _U_) {
|
|
|
|
g_hash_table_remove(itu_sub_dissectors,GUINT_TO_POINTER(ssn));
|
2007-07-30 17:10:20 +00:00
|
|
|
if (!get_ansi_tcap_subdissector(ssn))
|
|
|
|
dissector_delete("sccp.ssn", ssn,tcap_handle);
|
2005-12-17 16:55:45 +00:00
|
|
|
}
|
|
|
|
|
2006-12-07 20:53:32 +00:00
|
|
|
dissector_handle_t get_ansi_tcap_subdissector(guint32 ssn) {
|
2005-12-17 16:55:45 +00:00
|
|
|
return g_hash_table_lookup(ansi_sub_dissectors,GUINT_TO_POINTER(ssn));
|
|
|
|
}
|
|
|
|
|
2006-12-07 20:53:32 +00:00
|
|
|
dissector_handle_t get_itu_tcap_subdissector(guint32 ssn) {
|
2005-12-17 16:55:45 +00:00
|
|
|
return g_hash_table_lookup(itu_sub_dissectors,GUINT_TO_POINTER(ssn));
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2003-10-16 18:15:54 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
/*--- Included file: packet-tcap-fn.c ---*/
|
2005-12-08 23:29:21 +00:00
|
|
|
#line 1 "packet-tcap-fn.c"
|
2005-08-18 21:36:59 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static const asn_namedbit T_protocol_versionrq_bits[] = {
|
2005-06-07 20:29:23 +00:00
|
|
|
{ 0, &hf_tcap_T_protocol_versionrq_version1, -1, -1, "version1", NULL },
|
2005-06-07 05:49:06 +00:00
|
|
|
{ 0, NULL, 0, 0, NULL, NULL }
|
|
|
|
};
|
2004-02-20 10:43:12 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2007-05-15 05:49:43 +00:00
|
|
|
offset = dissect_ber_bitstring(implicit_tag, actx, tree, tvb, offset,
|
2005-08-18 21:36:59 +00:00
|
|
|
T_protocol_versionrq_bits, hf_index, ett_tcap_T_protocol_versionrq,
|
|
|
|
NULL);
|
2004-02-20 10:43:12 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2004-02-20 10:43:12 +00:00
|
|
|
|
2004-03-19 07:54:58 +00:00
|
|
|
|
2005-06-07 20:29:23 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2008-07-26 22:39:32 +00:00
|
|
|
#line 79 "tcap.cnf"
|
2007-05-15 05:49:43 +00:00
|
|
|
offset = dissect_ber_object_identifier_str(implicit_tag, actx, tree, tvb, offset, hf_index, &cur_oid);
|
2005-11-14 10:02:31 +00:00
|
|
|
|
2007-07-26 20:05:54 +00:00
|
|
|
tcap_private.oid= (void*) cur_oid;
|
From Florent Drouin:
Here are some patches and a new module to introduce the notion of Tcap context for a Tcap transaction. For each Tcap transaction, several parameters, like session identifier, start time or OID, will be saved in a hash table, to keep these informations available for the next messages. This context is then given to the upper layer, and can be used, for example, to generate transaction-associated statistics.
Moreover, the Upper protocol, detected in the Begin of the TCAP transaction ( according to the OID ), is saved in the context, and will be reused for the next messages of the transaction. This help the decoding of SS7 messages, without any SSN configuration in the "wireshark preferences".
You will have too, the possibility to apply a filter to see only the messages related to a TCAP transaction. (tcap.srt.session_id=XXX)
To enable the use of the Tcap context, you have 2 new parameters in the preferences,
- SRT, enable search for a Tcap context for any TCAP messages
- persistentSRT, keep the Tcap context, even after the transaction has been closed. This is mandatory with Wireshark, to have a clean display of the stats.
There is 2 new timers in the preferences for the statistics, to tune the retransmission timeout, and messages lost timeout.
svn path=/trunk/; revision=19341
2006-09-27 20:06:06 +00:00
|
|
|
tcap_private.acv=TRUE;
|
2004-03-19 07:54:58 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
|
2005-12-08 23:29:21 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2004-03-19 07:54:58 +00:00
|
|
|
|
|
|
|
|
2005-08-18 21:36:59 +00:00
|
|
|
|
2003-10-02 06:13:29 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2008-07-26 22:39:32 +00:00
|
|
|
#line 51 "tcap.cnf"
|
2005-06-07 05:49:06 +00:00
|
|
|
|
2007-11-13 21:59:53 +00:00
|
|
|
return dissect_tcap_UserInformation(FALSE, tvb, offset, actx, tree, -1);
|
2005-06-07 05:49:06 +00:00
|
|
|
|
2005-12-08 23:29:21 +00:00
|
|
|
|
2007-07-27 19:24:40 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-08-18 21:36:59 +00:00
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
static const ber_sequence_t AARQ_apdu_U_sequence[] = {
|
|
|
|
{ &hf_tcap_protocol_versionrq, BER_CLASS_CON, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_tcap_T_protocol_versionrq },
|
|
|
|
{ &hf_tcap_application_context_name, BER_CLASS_CON, 1, 0, dissect_tcap_Applicationcontext },
|
|
|
|
{ &hf_tcap_user_information, BER_CLASS_CON, 30, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_tcap_User_information },
|
|
|
|
{ NULL, 0, 0, 0, NULL }
|
2005-06-07 05:49:06 +00:00
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-11-07 21:22:25 +00:00
|
|
|
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,
|
|
|
|
AARQ_apdu_U_sequence, hf_index, ett_tcap_AARQ_apdu_U);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2007-11-07 21:22:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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_tagged_type(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
hf_index, BER_CLASS_APP, 0, TRUE, dissect_tcap_AARQ_apdu_U);
|
|
|
|
|
|
|
|
return offset;
|
2003-10-02 06:13:29 +00:00
|
|
|
}
|
|
|
|
|
2005-08-18 21:36:59 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static const asn_namedbit T_protocol_versionre_bits[] = {
|
2005-06-07 20:29:23 +00:00
|
|
|
{ 0, &hf_tcap_T_protocol_versionre_version1, -1, -1, "version1", NULL },
|
2005-06-07 05:49:06 +00:00
|
|
|
{ 0, NULL, 0, 0, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
2003-10-02 06:13:29 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2007-05-15 05:49:43 +00:00
|
|
|
offset = dissect_ber_bitstring(implicit_tag, actx, tree, tvb, offset,
|
2005-08-18 21:36:59 +00:00
|
|
|
T_protocol_versionre_bits, hf_index, ett_tcap_T_protocol_versionre,
|
|
|
|
NULL);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2003-10-02 06:13:29 +00:00
|
|
|
|
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static const value_string tcap_Associate_result_vals[] = {
|
|
|
|
{ 0, "accepted" },
|
|
|
|
{ 1, "reject-permanent" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2007-05-15 05:49:43 +00:00
|
|
|
offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
|
2008-03-01 17:23:39 +00:00
|
|
|
NULL);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
2003-10-02 06:13:29 +00:00
|
|
|
}
|
2005-06-07 05:49:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
static const value_string tcap_T_dialogue_service_user_vals[] = {
|
|
|
|
{ 0, "null" },
|
|
|
|
{ 1, "no-reason-given" },
|
|
|
|
{ 2, "application-context-name-not-supported" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
|
|
|
|
2003-10-02 06:13:29 +00:00
|
|
|
|
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2007-05-15 05:49:43 +00:00
|
|
|
offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
|
2008-03-01 17:23:39 +00:00
|
|
|
NULL);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
|
|
|
|
static const value_string tcap_T_dialogue_service_provider_vals[] = {
|
|
|
|
{ 0, "null" },
|
|
|
|
{ 1, "no-reason-given" },
|
|
|
|
{ 2, "no-common-dialogue-portion" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2003-10-02 06:13:29 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2007-05-15 05:49:43 +00:00
|
|
|
offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
|
2008-03-01 17:23:39 +00:00
|
|
|
NULL);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
2003-10-02 06:13:29 +00:00
|
|
|
}
|
2005-06-07 05:49:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
static const value_string tcap_Associate_source_diagnostic_vals[] = {
|
|
|
|
{ 1, "dialogue-service-user" },
|
|
|
|
{ 2, "dialogue-service-provider" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
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 }
|
2005-06-07 05:49:06 +00:00
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2007-11-07 21:22:25 +00:00
|
|
|
offset = dissect_ber_choice(actx, tree, tvb, offset,
|
|
|
|
Associate_source_diagnostic_choice, hf_index, ett_tcap_Associate_source_diagnostic,
|
|
|
|
NULL);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
2003-10-02 06:13:29 +00:00
|
|
|
}
|
2005-06-07 05:49:06 +00:00
|
|
|
|
2005-08-18 21:36:59 +00:00
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
static const ber_sequence_t AARE_apdu_U_sequence[] = {
|
|
|
|
{ &hf_tcap_protocol_versionre, BER_CLASS_CON, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_tcap_T_protocol_versionre },
|
|
|
|
{ &hf_tcap_application_context_name, BER_CLASS_CON, 1, 0, dissect_tcap_Applicationcontext },
|
|
|
|
{ &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_user_information, BER_CLASS_CON, 30, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_tcap_User_information },
|
|
|
|
{ NULL, 0, 0, 0, NULL }
|
2005-06-07 05:49:06 +00:00
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
|
|
|
static int
|
2007-11-07 21:22:25 +00:00
|
|
|
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,
|
|
|
|
AARE_apdu_U_sequence, hf_index, ett_tcap_AARE_apdu_U);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2007-11-07 21:22:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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_tagged_type(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
hf_index, BER_CLASS_APP, 1, TRUE, dissect_tcap_AARE_apdu_U);
|
|
|
|
|
|
|
|
return offset;
|
2005-06-07 05:49:06 +00:00
|
|
|
}
|
2003-10-02 06:13:29 +00:00
|
|
|
|
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static const value_string tcap_ABRT_source_vals[] = {
|
|
|
|
{ 0, "dialogue-service-user" },
|
|
|
|
{ 1, "dialogue-service-provider" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2007-05-15 05:49:43 +00:00
|
|
|
offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
|
2008-03-01 17:23:39 +00:00
|
|
|
NULL);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2004-03-20 07:26:41 +00:00
|
|
|
|
2005-08-18 21:36:59 +00:00
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
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_user_information, BER_CLASS_CON, 30, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_tcap_User_information },
|
|
|
|
{ NULL, 0, 0, 0, NULL }
|
2005-06-07 05:49:06 +00:00
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-11-07 21:22:25 +00:00
|
|
|
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);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2007-11-07 21:22:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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_tagged_type(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
hf_index, BER_CLASS_APP, 4, TRUE, dissect_tcap_ABRT_apdu_U);
|
|
|
|
|
|
|
|
return offset;
|
2005-06-07 05:49:06 +00:00
|
|
|
}
|
2003-10-02 06:13:29 +00:00
|
|
|
|
|
|
|
|
2007-04-21 20:53:35 +00:00
|
|
|
const value_string tcap_DialoguePDU_vals[] = {
|
2005-06-07 05:49:06 +00:00
|
|
|
{ 0, "dialogueRequest" },
|
|
|
|
{ 1, "dialogueResponse" },
|
|
|
|
{ 4, "dialogueAbort" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
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 }
|
2005-06-07 05:49:06 +00:00
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2007-04-21 20:53:35 +00:00
|
|
|
int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2007-11-07 21:22:25 +00:00
|
|
|
offset = dissect_ber_choice(actx, tree, tvb, offset,
|
|
|
|
DialoguePDU_choice, hf_index, ett_tcap_DialoguePDU,
|
|
|
|
NULL);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
2003-10-02 06:13:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-06-07 20:29:23 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2007-05-15 05:49:43 +00:00
|
|
|
offset = dissect_ber_object_identifier(implicit_tag, actx, tree, tvb, offset, hf_index, NULL);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2003-10-02 06:13:29 +00:00
|
|
|
|
|
|
|
|
2005-08-18 21:36:59 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2008-07-26 22:39:32 +00:00
|
|
|
#line 41 "tcap.cnf"
|
2007-04-21 20:27:05 +00:00
|
|
|
|
2007-11-13 21:59:53 +00:00
|
|
|
return dissect_tcap_DialoguePDU(TRUE, tvb, offset, actx, tree, -1);
|
2005-06-07 05:49:06 +00:00
|
|
|
|
|
|
|
|
2005-12-08 23:29:21 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
2005-08-18 21:36:59 +00:00
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
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 }
|
2005-06-07 05:49:06 +00:00
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
static int
|
|
|
|
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,
|
|
|
|
ExternalPDU_U_sequence, hf_index, ett_tcap_ExternalPDU_U);
|
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2008-07-26 22:39:32 +00:00
|
|
|
#line 36 "tcap.cnf"
|
2007-11-13 21:59:53 +00:00
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
offset = dissect_ber_tagged_type(implicit_tag, actx, tree, tvb, offset,
|
2007-11-13 21:59:53 +00:00
|
|
|
hf_index, BER_CLASS_UNI, 8, TRUE, dissect_tcap_ExternalPDU_U);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2007-04-21 20:27:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
2003-10-02 06:13:29 +00:00
|
|
|
}
|
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
|
2005-06-07 20:29:23 +00:00
|
|
|
|
2003-10-02 06:13:29 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2008-07-26 22:39:32 +00:00
|
|
|
#line 87 "tcap.cnf"
|
2007-07-13 13:45:11 +00:00
|
|
|
offset = dissect_ber_object_identifier_str(implicit_tag, actx, tree, tvb, offset, hf_index, &tcapext_oid);
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-12-08 23:29:21 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2004-02-20 10:43:12 +00:00
|
|
|
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-08-18 21:36:59 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2008-07-26 22:39:32 +00:00
|
|
|
#line 91 "tcap.cnf"
|
2007-07-27 19:24:40 +00:00
|
|
|
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_octet_string(implicit_tag, actx, tree, tvb, offset, hf_index,
|
|
|
|
NULL);
|
|
|
|
|
|
|
|
|
|
|
|
dissect_tcap_TheExternUserInfo(implicit_tag, next_tvb, 0, actx, tcap_top_tree, hf_index);
|
|
|
|
|
|
|
|
return comp_offset+len;
|
2003-10-02 06:13:29 +00:00
|
|
|
|
|
|
|
|
2005-12-08 23:29:21 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-08-18 21:36:59 +00:00
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
static const ber_sequence_t UserInformation_U_sequence[] = {
|
|
|
|
{ &hf_tcap_useroid , BER_CLASS_UNI, BER_UNI_TAG_OID, BER_FLAGS_NOOWNTAG, dissect_tcap_UserInfoOID },
|
|
|
|
{ &hf_tcap_externuserinfo , BER_CLASS_CON, 0, BER_FLAGS_IMPLTAG, dissect_tcap_ExternUserInfo },
|
|
|
|
{ NULL, 0, 0, 0, NULL }
|
2005-06-07 05:49:06 +00:00
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-11-07 21:22:25 +00:00
|
|
|
dissect_tcap_UserInformation_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,
|
|
|
|
UserInformation_U_sequence, hf_index, ett_tcap_UserInformation_U);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2007-11-07 21:22:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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_tagged_type(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
hf_index, BER_CLASS_UNI, 8, TRUE, dissect_tcap_UserInformation_U);
|
|
|
|
|
|
|
|
return offset;
|
2005-06-07 05:49:06 +00:00
|
|
|
}
|
2003-10-02 06:13:29 +00:00
|
|
|
|
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static const value_string tcap_Release_request_reason_vals[] = {
|
|
|
|
{ 0, "normal" },
|
|
|
|
{ 1, "urgent" },
|
|
|
|
{ 30, "user-defined" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2004-02-20 10:43:12 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2007-05-15 05:49:43 +00:00
|
|
|
offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
|
2008-03-01 17:23:39 +00:00
|
|
|
NULL);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-08-18 21:36:59 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static const value_string tcap_Release_response_reason_vals[] = {
|
|
|
|
{ 0, "normal" },
|
|
|
|
{ 1, "not-finished" },
|
|
|
|
{ 30, "user-defined" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2007-05-15 05:49:43 +00:00
|
|
|
offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
|
2008-03-01 17:23:39 +00:00
|
|
|
NULL);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-08-18 21:36:59 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static const asn_namedbit T_protocol_version3_bits[] = {
|
2005-06-07 20:29:23 +00:00
|
|
|
{ 0, &hf_tcap_T_protocol_version3_version1, -1, -1, "version1", NULL },
|
2005-06-07 05:49:06 +00:00
|
|
|
{ 0, NULL, 0, 0, NULL, NULL }
|
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2007-05-15 05:49:43 +00:00
|
|
|
offset = dissect_ber_bitstring(implicit_tag, actx, tree, tvb, offset,
|
2005-08-18 21:36:59 +00:00
|
|
|
T_protocol_version3_bits, hf_index, ett_tcap_T_protocol_version3,
|
|
|
|
NULL);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-08-18 21:36:59 +00:00
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
static const ber_sequence_t AUDT_apdu_U_sequence[] = {
|
|
|
|
{ &hf_tcap_protocol_version3, BER_CLASS_CON, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_tcap_T_protocol_version3 },
|
|
|
|
{ &hf_tcap_application_context_name, BER_CLASS_CON, 1, 0, dissect_tcap_Applicationcontext },
|
|
|
|
{ &hf_tcap_user_information, BER_CLASS_CON, 30, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_tcap_User_information },
|
|
|
|
{ NULL, 0, 0, 0, NULL }
|
2005-06-07 05:49:06 +00:00
|
|
|
};
|
2004-02-20 10:43:12 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-11-07 21:22:25 +00:00
|
|
|
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,
|
|
|
|
AUDT_apdu_U_sequence, hf_index, ett_tcap_AUDT_apdu_U);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
2003-10-02 06:13:29 +00:00
|
|
|
}
|
2007-11-07 21:22:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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_tagged_type(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
hf_index, BER_CLASS_APP, 0, TRUE, dissect_tcap_AUDT_apdu_U);
|
|
|
|
|
|
|
|
return offset;
|
2003-10-02 06:13:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2007-04-21 20:53:35 +00:00
|
|
|
const value_string tcap_UniDialoguePDU_vals[] = {
|
2005-06-07 05:49:06 +00:00
|
|
|
{ 0, "unidialoguePDU" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
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 }
|
2005-06-07 05:49:06 +00:00
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2007-04-21 20:53:35 +00:00
|
|
|
int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2007-11-07 21:22:25 +00:00
|
|
|
offset = dissect_ber_choice(actx, tree, tvb, offset,
|
|
|
|
UniDialoguePDU_choice, hf_index, ett_tcap_UniDialoguePDU,
|
|
|
|
NULL);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
2003-10-02 06:13:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-08-18 21:36:59 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2008-07-26 22:39:32 +00:00
|
|
|
#line 31 "tcap.cnf"
|
2007-07-26 20:05:54 +00:00
|
|
|
|
2007-11-13 21:59:53 +00:00
|
|
|
return dissect_tcap_ExternalPDU(FALSE /*implicit_tag*/, tvb, offset, actx, tree, -1);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
|
|
|
|
2005-12-08 23:29:21 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
2003-10-02 06:13:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-08-18 21:36:59 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2007-11-07 21:22:25 +00:00
|
|
|
offset = dissect_ber_tagged_type(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
hf_index, BER_CLASS_APP, 11, TRUE, dissect_tcap_DialogueOC);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
2003-10-02 06:13:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2007-05-15 05:49:43 +00:00
|
|
|
offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
|
2008-03-01 17:23:39 +00:00
|
|
|
NULL);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
2003-10-02 06:13:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2007-05-15 05:49:43 +00:00
|
|
|
offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
|
2008-03-01 17:23:39 +00:00
|
|
|
NULL);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
2003-10-02 06:13:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-06-07 20:29:23 +00:00
|
|
|
static const value_string tcap_OPERATION_vals[] = {
|
|
|
|
{ 0, "localValue" },
|
|
|
|
{ 1, "globalValue" },
|
2005-06-07 05:49:06 +00:00
|
|
|
{ 0, NULL }
|
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
static const ber_choice_t OPERATION_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 }
|
2005-06-07 05:49:06 +00:00
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_tcap_OPERATION(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2007-11-07 21:22:25 +00:00
|
|
|
offset = dissect_ber_choice(actx, tree, tvb, offset,
|
|
|
|
OPERATION_choice, hf_index, ett_tcap_OPERATION,
|
|
|
|
NULL);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2003-10-02 06:13:29 +00:00
|
|
|
|
|
|
|
|
2005-06-07 20:29:23 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2008-07-26 22:39:32 +00:00
|
|
|
#line 46 "tcap.cnf"
|
2005-08-18 21:36:59 +00:00
|
|
|
|
2007-11-13 21:59:53 +00:00
|
|
|
return dissect_tcap_param(actx,tree,tvb,offset);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 20:29:23 +00:00
|
|
|
|
2005-12-08 23:29:21 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-08-18 21:36:59 +00:00
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
static const ber_sequence_t Invoke_sequence[] = {
|
|
|
|
{ &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 }
|
2005-06-07 05:49:06 +00:00
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_tcap_Invoke(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2007-11-07 21:22:25 +00:00
|
|
|
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
Invoke_sequence, hf_index, ett_tcap_Invoke);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-08-18 21:36:59 +00:00
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
static const ber_sequence_t T_resultretres_sequence[] = {
|
|
|
|
{ &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 }
|
2005-06-07 05:49:06 +00:00
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_tcap_T_resultretres(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2007-11-07 21:22:25 +00:00
|
|
|
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
T_resultretres_sequence, hf_index, ett_tcap_T_resultretres);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2004-10-27 20:04:56 +00:00
|
|
|
|
2005-08-18 21:36:59 +00:00
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
static const ber_sequence_t ReturnResult_sequence[] = {
|
|
|
|
{ &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 }
|
2005-06-07 05:49:06 +00:00
|
|
|
};
|
2004-10-27 20:04:56 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_tcap_ReturnResult(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2007-11-07 21:22:25 +00:00
|
|
|
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
ReturnResult_sequence, hf_index, ett_tcap_ReturnResult);
|
2004-10-27 20:04:56 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2004-10-27 20:04:56 +00:00
|
|
|
|
|
|
|
|
2005-06-07 20:29:23 +00:00
|
|
|
|
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2007-05-15 05:49:43 +00:00
|
|
|
offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
|
2008-03-01 17:23:39 +00:00
|
|
|
NULL);
|
2005-06-07 20:29:23 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static const value_string tcap_ErrorCode_vals[] = {
|
|
|
|
{ 19, "nationaler" },
|
|
|
|
{ 20, "privateer" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
static const ber_choice_t ErrorCode_choice[] = {
|
|
|
|
{ 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 }
|
2005-06-07 05:49:06 +00:00
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_tcap_ErrorCode(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2007-11-07 21:22:25 +00:00
|
|
|
offset = dissect_ber_choice(actx, tree, tvb, offset,
|
|
|
|
ErrorCode_choice, hf_index, ett_tcap_ErrorCode,
|
|
|
|
NULL);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-08-18 21:36:59 +00:00
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
static const ber_sequence_t ReturnError_sequence[] = {
|
|
|
|
{ &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 }
|
2005-06-07 05:49:06 +00:00
|
|
|
};
|
|
|
|
|
2003-10-02 06:13:29 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_tcap_ReturnError(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2007-11-07 21:22:25 +00:00
|
|
|
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
ReturnError_sequence, hf_index, ett_tcap_ReturnError);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2003-10-02 06:13:29 +00:00
|
|
|
|
|
|
|
|
2005-06-07 20:29:23 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2007-05-15 05:49:43 +00:00
|
|
|
offset = dissect_ber_null(implicit_tag, actx, tree, tvb, offset, hf_index);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2003-10-02 06:13:29 +00:00
|
|
|
|
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static const value_string tcap_T_invokeIDRej_vals[] = {
|
|
|
|
{ 0, "derivable" },
|
|
|
|
{ 1, "not-derivable" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
static const ber_choice_t T_invokeIDRej_choice[] = {
|
|
|
|
{ 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 }
|
2005-06-07 05:49:06 +00:00
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_tcap_T_invokeIDRej(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2007-11-07 21:22:25 +00:00
|
|
|
offset = dissect_ber_choice(actx, tree, tvb, offset,
|
|
|
|
T_invokeIDRej_choice, hf_index, ett_tcap_T_invokeIDRej,
|
|
|
|
NULL);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2003-10-02 06:13:29 +00:00
|
|
|
|
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static const value_string tcap_GeneralProblem_vals[] = {
|
|
|
|
{ 0, "unrecognizedComponent" },
|
|
|
|
{ 1, "mistypedComponent" },
|
|
|
|
{ 2, "badlyStructuredComponent" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2007-05-15 05:49:43 +00:00
|
|
|
offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
|
2008-03-01 17:23:39 +00:00
|
|
|
NULL);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2003-10-02 06:13:29 +00:00
|
|
|
|
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static const value_string tcap_InvokeProblem_vals[] = {
|
|
|
|
{ 0, "duplicateInvokeID" },
|
|
|
|
{ 1, "unrecognizedOperation" },
|
|
|
|
{ 2, "mistypedParameter" },
|
|
|
|
{ 3, "resourceLimitation" },
|
|
|
|
{ 4, "initiatingRelease" },
|
|
|
|
{ 5, "unrecognizedLinkedID" },
|
|
|
|
{ 6, "linkedResponseUnexpected" },
|
|
|
|
{ 7, "unexpectedLinkedOperation" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2007-05-15 05:49:43 +00:00
|
|
|
offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
|
2008-03-01 17:23:39 +00:00
|
|
|
NULL);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2003-10-02 06:13:29 +00:00
|
|
|
|
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static const value_string tcap_ReturnResultProblem_vals[] = {
|
|
|
|
{ 0, "unrecognizedInvokeID" },
|
|
|
|
{ 1, "returnResultUnexpected" },
|
|
|
|
{ 2, "mistypedParameter" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2007-05-15 05:49:43 +00:00
|
|
|
offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
|
2008-03-01 17:23:39 +00:00
|
|
|
NULL);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2003-10-02 06:13:29 +00:00
|
|
|
|
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static const value_string tcap_ReturnErrorProblem_vals[] = {
|
|
|
|
{ 0, "unrecognizedInvokeID" },
|
|
|
|
{ 1, "returnErrorUnexpected" },
|
|
|
|
{ 2, "unrecognizedError" },
|
|
|
|
{ 3, "unexpectedError" },
|
|
|
|
{ 4, "mistypedParameter" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2007-05-15 05:49:43 +00:00
|
|
|
offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
|
2008-03-01 17:23:39 +00:00
|
|
|
NULL);
|
2005-06-07 05:49:06 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
2003-10-02 06:13:29 +00:00
|
|
|
|
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static const value_string tcap_T_problem_vals[] = {
|
|
|
|
{ 0, "generalProblem" },
|
|
|
|
{ 1, "invokeProblem" },
|
|
|
|
{ 2, "returnResultProblem" },
|
|
|
|
{ 3, "returnErrorProblem" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
static const ber_choice_t T_problem_choice[] = {
|
|
|
|
{ 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 }
|
2005-06-07 05:49:06 +00:00
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_tcap_T_problem(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2007-11-07 21:22:25 +00:00
|
|
|
offset = dissect_ber_choice(actx, tree, tvb, offset,
|
|
|
|
T_problem_choice, hf_index, ett_tcap_T_problem,
|
|
|
|
NULL);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-08-18 21:36:59 +00:00
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
static const ber_sequence_t Reject_sequence[] = {
|
|
|
|
{ &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 }
|
2005-06-07 05:49:06 +00:00
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_tcap_Reject(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2007-11-07 21:22:25 +00:00
|
|
|
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
Reject_sequence, hf_index, ett_tcap_Reject);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2003-10-02 06:13:29 +00:00
|
|
|
|
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static const value_string tcap_Component_vals[] = {
|
|
|
|
{ 1, "invoke" },
|
|
|
|
{ 2, "returnResultLast" },
|
|
|
|
{ 3, "returnError" },
|
|
|
|
{ 4, "reject" },
|
|
|
|
{ 7, "returnResultNotLast" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
static const ber_choice_t Component_choice[] = {
|
|
|
|
{ 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 }
|
2005-06-07 05:49:06 +00:00
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2008-07-26 22:39:32 +00:00
|
|
|
#line 56 "tcap.cnf"
|
2007-07-27 19:24:40 +00:00
|
|
|
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;
|
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
offset = dissect_ber_choice(actx, tree, tvb, offset,
|
|
|
|
Component_choice, hf_index, ett_tcap_Component,
|
|
|
|
NULL);
|
2007-07-27 19:24:40 +00:00
|
|
|
|
|
|
|
|
2007-07-30 17:10:20 +00:00
|
|
|
dissect_tcap_ITU_ComponentPDU(implicit_tag, next_tvb, 0, actx, tcap_top_tree, hf_index);
|
2007-07-27 19:24:40 +00:00
|
|
|
|
|
|
|
/* return comp_offset+len; or return offset (will be automatically added */
|
2003-10-02 06:13:29 +00:00
|
|
|
|
|
|
|
|
2005-12-08 23:29:21 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-08-18 21:36:59 +00:00
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
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 },
|
2005-06-07 05:49:06 +00:00
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-11-07 21:22:25 +00:00
|
|
|
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,
|
|
|
|
SEQUENCE_SIZE_1_MAX_OF_Component_sequence_of, hf_index, ett_tcap_SEQUENCE_SIZE_1_MAX_OF_Component);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2007-11-07 21:22:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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;
|
2005-06-07 05:49:06 +00:00
|
|
|
}
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-08-18 21:36:59 +00:00
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
static const ber_sequence_t Unidirectional_sequence[] = {
|
|
|
|
{ &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 }
|
2005-06-07 05:49:06 +00:00
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_tcap_Unidirectional(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2007-11-07 21:22:25 +00:00
|
|
|
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
Unidirectional_sequence, hf_index, ett_tcap_Unidirectional);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2007-11-07 21:22:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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;
|
2005-06-07 05:49:06 +00:00
|
|
|
}
|
2003-10-02 06:13:29 +00:00
|
|
|
|
|
|
|
|
2005-08-18 21:36:59 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2008-07-26 22:39:32 +00:00
|
|
|
#line 146 "tcap.cnf"
|
2005-06-07 05:49:06 +00:00
|
|
|
tvbuff_t *parameter_tvb;
|
|
|
|
guint8 len, i;
|
2005-08-18 21:36:59 +00:00
|
|
|
proto_item *tid_item;
|
|
|
|
proto_tree *subtree;
|
|
|
|
tid_item = proto_tree_add_text(tree, tvb, offset, -1, "Source Transaction ID");
|
|
|
|
subtree = proto_item_add_subtree(tid_item, ett_otid);
|
From Florent Drouin:
Here are some patches and a new module to introduce the notion of Tcap context for a Tcap transaction. For each Tcap transaction, several parameters, like session identifier, start time or OID, will be saved in a hash table, to keep these informations available for the next messages. This context is then given to the upper layer, and can be used, for example, to generate transaction-associated statistics.
Moreover, the Upper protocol, detected in the Begin of the TCAP transaction ( according to the OID ), is saved in the context, and will be reused for the next messages of the transaction. This help the decoding of SS7 messages, without any SSN configuration in the "wireshark preferences".
You will have too, the possibility to apply a filter to see only the messages related to a TCAP transaction. (tcap.srt.session_id=XXX)
To enable the use of the Tcap context, you have 2 new parameters in the preferences,
- SRT, enable search for a Tcap context for any TCAP messages
- persistentSRT, keep the Tcap context, even after the transaction has been closed. This is mandatory with Wireshark, to have a clean display of the stats.
There is 2 new timers in the preferences for the statistics, to tune the retransmission timeout, and messages lost timeout.
svn path=/trunk/; revision=19341
2006-09-27 20:06:06 +00:00
|
|
|
|
2007-05-15 05:49:43 +00:00
|
|
|
offset = dissect_ber_octet_string(implicit_tag, actx, subtree, tvb, offset, hf_tcap_tid,
|
2005-06-07 05:49:06 +00:00
|
|
|
¶meter_tvb);
|
2005-06-08 18:52:34 +00:00
|
|
|
|
|
|
|
if (parameter_tvb){
|
|
|
|
len = tvb_length_remaining(parameter_tvb, 0);
|
From Florent Drouin:
Here are some patches and a new module to introduce the notion of Tcap context for a Tcap transaction. For each Tcap transaction, several parameters, like session identifier, start time or OID, will be saved in a hash table, to keep these informations available for the next messages. This context is then given to the upper layer, and can be used, for example, to generate transaction-associated statistics.
Moreover, the Upper protocol, detected in the Begin of the TCAP transaction ( according to the OID ), is saved in the context, and will be reused for the next messages of the transaction. This help the decoding of SS7 messages, without any SSN configuration in the "wireshark preferences".
You will have too, the possibility to apply a filter to see only the messages related to a TCAP transaction. (tcap.srt.session_id=XXX)
To enable the use of the Tcap context, you have 2 new parameters in the preferences,
- SRT, enable search for a Tcap context for any TCAP messages
- persistentSRT, keep the Tcap context, even after the transaction has been closed. This is mandatory with Wireshark, to have a clean display of the stats.
There is 2 new timers in the preferences for the statistics, to tune the retransmission timeout, and messages lost timeout.
svn path=/trunk/; revision=19341
2006-09-27 20:06:06 +00:00
|
|
|
switch(len) {
|
|
|
|
case 1:
|
|
|
|
gp_tcapsrt_info->src_tid=tvb_get_guint8(parameter_tvb, 0);
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
gp_tcapsrt_info->src_tid=tvb_get_ntohs(parameter_tvb, 0);
|
|
|
|
break;
|
|
|
|
case 4:
|
|
|
|
gp_tcapsrt_info->src_tid=tvb_get_ntohl(parameter_tvb, 0);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
gp_tcapsrt_info->src_tid=0;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
2007-05-13 20:58:29 +00:00
|
|
|
if ((len)&&(check_col(actx->pinfo->cinfo, COL_INFO))){
|
2007-11-07 21:22:25 +00:00
|
|
|
col_append_str(actx->pinfo->cinfo, COL_INFO, "otid(");
|
2005-06-07 05:49:06 +00:00
|
|
|
for(i=0;i<len;i++)
|
2007-05-13 20:58:29 +00:00
|
|
|
col_append_fstr(actx->pinfo->cinfo, COL_INFO, "%02x",tvb_get_guint8(parameter_tvb,i));
|
2007-11-07 21:22:25 +00:00
|
|
|
col_append_str(actx->pinfo->cinfo, COL_INFO, ") ");
|
2005-06-08 18:52:34 +00:00
|
|
|
}
|
2005-06-07 05:49:06 +00:00
|
|
|
|
2007-07-26 20:05:54 +00:00
|
|
|
}
|
2005-08-18 21:36:59 +00:00
|
|
|
|
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
|
2005-12-08 23:29:21 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-08-18 21:36:59 +00:00
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
static const ber_sequence_t Begin_sequence[] = {
|
|
|
|
{ &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 }
|
2005-06-07 05:49:06 +00:00
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2008-07-26 22:39:32 +00:00
|
|
|
#line 220 "tcap.cnf"
|
From Florent Drouin:
Here are some patches and a new module to introduce the notion of Tcap context for a Tcap transaction. For each Tcap transaction, several parameters, like session identifier, start time or OID, will be saved in a hash table, to keep these informations available for the next messages. This context is then given to the upper layer, and can be used, for example, to generate transaction-associated statistics.
Moreover, the Upper protocol, detected in the Begin of the TCAP transaction ( according to the OID ), is saved in the context, and will be reused for the next messages of the transaction. This help the decoding of SS7 messages, without any SSN configuration in the "wireshark preferences".
You will have too, the possibility to apply a filter to see only the messages related to a TCAP transaction. (tcap.srt.session_id=XXX)
To enable the use of the Tcap context, you have 2 new parameters in the preferences,
- SRT, enable search for a Tcap context for any TCAP messages
- persistentSRT, keep the Tcap context, even after the transaction has been closed. This is mandatory with Wireshark, to have a clean display of the stats.
There is 2 new timers in the preferences for the statistics, to tune the retransmission timeout, and messages lost timeout.
svn path=/trunk/; revision=19341
2006-09-27 20:06:06 +00:00
|
|
|
gp_tcapsrt_info->ope=TC_BEGIN;
|
|
|
|
|
2007-07-26 20:05:54 +00:00
|
|
|
/* 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.
|
|
|
|
*/
|
2007-05-13 20:58:29 +00:00
|
|
|
if (check_col(actx->pinfo->cinfo, COL_INFO))
|
2007-11-07 21:22:25 +00:00
|
|
|
col_set_str(actx->pinfo->cinfo, COL_INFO, "Begin ");
|
2007-04-23 20:20:46 +00:00
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
Begin_sequence, hf_index, ett_tcap_Begin);
|
2007-04-23 20:20:46 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2003-10-02 06:13:29 +00:00
|
|
|
|
|
|
|
|
2005-08-18 21:36:59 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2008-07-26 22:39:32 +00:00
|
|
|
#line 185 "tcap.cnf"
|
2005-06-07 05:49:06 +00:00
|
|
|
tvbuff_t *parameter_tvb;
|
|
|
|
guint8 len , i;
|
2005-08-18 21:36:59 +00:00
|
|
|
proto_item *tid_item;
|
|
|
|
proto_tree *subtree;
|
|
|
|
tid_item = proto_tree_add_text(tree, tvb, offset, -1, "Destination Transaction ID");
|
|
|
|
subtree = proto_item_add_subtree(tid_item, ett_otid);
|
From Florent Drouin:
Here are some patches and a new module to introduce the notion of Tcap context for a Tcap transaction. For each Tcap transaction, several parameters, like session identifier, start time or OID, will be saved in a hash table, to keep these informations available for the next messages. This context is then given to the upper layer, and can be used, for example, to generate transaction-associated statistics.
Moreover, the Upper protocol, detected in the Begin of the TCAP transaction ( according to the OID ), is saved in the context, and will be reused for the next messages of the transaction. This help the decoding of SS7 messages, without any SSN configuration in the "wireshark preferences".
You will have too, the possibility to apply a filter to see only the messages related to a TCAP transaction. (tcap.srt.session_id=XXX)
To enable the use of the Tcap context, you have 2 new parameters in the preferences,
- SRT, enable search for a Tcap context for any TCAP messages
- persistentSRT, keep the Tcap context, even after the transaction has been closed. This is mandatory with Wireshark, to have a clean display of the stats.
There is 2 new timers in the preferences for the statistics, to tune the retransmission timeout, and messages lost timeout.
svn path=/trunk/; revision=19341
2006-09-27 20:06:06 +00:00
|
|
|
|
2007-05-15 05:49:43 +00:00
|
|
|
offset = dissect_ber_octet_string(implicit_tag, actx, subtree, tvb, offset, hf_tcap_tid,
|
2005-06-07 05:49:06 +00:00
|
|
|
¶meter_tvb);
|
2005-08-18 21:36:59 +00:00
|
|
|
|
2005-06-08 18:52:34 +00:00
|
|
|
if (parameter_tvb){
|
|
|
|
len = tvb_length_remaining(parameter_tvb, 0);
|
From Florent Drouin:
Here are some patches and a new module to introduce the notion of Tcap context for a Tcap transaction. For each Tcap transaction, several parameters, like session identifier, start time or OID, will be saved in a hash table, to keep these informations available for the next messages. This context is then given to the upper layer, and can be used, for example, to generate transaction-associated statistics.
Moreover, the Upper protocol, detected in the Begin of the TCAP transaction ( according to the OID ), is saved in the context, and will be reused for the next messages of the transaction. This help the decoding of SS7 messages, without any SSN configuration in the "wireshark preferences".
You will have too, the possibility to apply a filter to see only the messages related to a TCAP transaction. (tcap.srt.session_id=XXX)
To enable the use of the Tcap context, you have 2 new parameters in the preferences,
- SRT, enable search for a Tcap context for any TCAP messages
- persistentSRT, keep the Tcap context, even after the transaction has been closed. This is mandatory with Wireshark, to have a clean display of the stats.
There is 2 new timers in the preferences for the statistics, to tune the retransmission timeout, and messages lost timeout.
svn path=/trunk/; revision=19341
2006-09-27 20:06:06 +00:00
|
|
|
switch(len) {
|
|
|
|
case 1:
|
|
|
|
gp_tcapsrt_info->dst_tid=tvb_get_guint8(parameter_tvb, 0);
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
gp_tcapsrt_info->dst_tid=tvb_get_ntohs(parameter_tvb, 0);
|
|
|
|
break;
|
|
|
|
case 4:
|
|
|
|
gp_tcapsrt_info->dst_tid=tvb_get_ntohl(parameter_tvb, 0);
|
2007-07-26 20:05:54 +00:00
|
|
|
break;
|
From Florent Drouin:
Here are some patches and a new module to introduce the notion of Tcap context for a Tcap transaction. For each Tcap transaction, several parameters, like session identifier, start time or OID, will be saved in a hash table, to keep these informations available for the next messages. This context is then given to the upper layer, and can be used, for example, to generate transaction-associated statistics.
Moreover, the Upper protocol, detected in the Begin of the TCAP transaction ( according to the OID ), is saved in the context, and will be reused for the next messages of the transaction. This help the decoding of SS7 messages, without any SSN configuration in the "wireshark preferences".
You will have too, the possibility to apply a filter to see only the messages related to a TCAP transaction. (tcap.srt.session_id=XXX)
To enable the use of the Tcap context, you have 2 new parameters in the preferences,
- SRT, enable search for a Tcap context for any TCAP messages
- persistentSRT, keep the Tcap context, even after the transaction has been closed. This is mandatory with Wireshark, to have a clean display of the stats.
There is 2 new timers in the preferences for the statistics, to tune the retransmission timeout, and messages lost timeout.
svn path=/trunk/; revision=19341
2006-09-27 20:06:06 +00:00
|
|
|
default:
|
|
|
|
gp_tcapsrt_info->dst_tid=0;
|
|
|
|
break;
|
|
|
|
}
|
2007-07-26 20:05:54 +00:00
|
|
|
|
2007-05-13 20:58:29 +00:00
|
|
|
if ((len)&&(check_col(actx->pinfo->cinfo, COL_INFO))){
|
2007-11-07 21:22:25 +00:00
|
|
|
col_append_str(actx->pinfo->cinfo, COL_INFO, "dtid(");
|
2005-06-08 18:52:34 +00:00
|
|
|
for(i=0;i<len;i++)
|
2007-05-13 20:58:29 +00:00
|
|
|
col_append_fstr(actx->pinfo->cinfo, COL_INFO, "%02x",tvb_get_guint8(parameter_tvb,i));
|
2007-11-07 21:22:25 +00:00
|
|
|
col_append_str(actx->pinfo->cinfo, COL_INFO, ") ");
|
2005-06-08 18:52:34 +00:00
|
|
|
}
|
|
|
|
}
|
2005-06-07 05:49:06 +00:00
|
|
|
|
2005-12-08 23:29:21 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-08-18 21:36:59 +00:00
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
static const ber_sequence_t End_sequence[] = {
|
|
|
|
{ &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 }
|
2005-06-07 05:49:06 +00:00
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2008-07-26 22:39:32 +00:00
|
|
|
#line 235 "tcap.cnf"
|
From Florent Drouin:
Here are some patches and a new module to introduce the notion of Tcap context for a Tcap transaction. For each Tcap transaction, several parameters, like session identifier, start time or OID, will be saved in a hash table, to keep these informations available for the next messages. This context is then given to the upper layer, and can be used, for example, to generate transaction-associated statistics.
Moreover, the Upper protocol, detected in the Begin of the TCAP transaction ( according to the OID ), is saved in the context, and will be reused for the next messages of the transaction. This help the decoding of SS7 messages, without any SSN configuration in the "wireshark preferences".
You will have too, the possibility to apply a filter to see only the messages related to a TCAP transaction. (tcap.srt.session_id=XXX)
To enable the use of the Tcap context, you have 2 new parameters in the preferences,
- SRT, enable search for a Tcap context for any TCAP messages
- persistentSRT, keep the Tcap context, even after the transaction has been closed. This is mandatory with Wireshark, to have a clean display of the stats.
There is 2 new timers in the preferences for the statistics, to tune the retransmission timeout, and messages lost timeout.
svn path=/trunk/; revision=19341
2006-09-27 20:06:06 +00:00
|
|
|
gp_tcapsrt_info->ope=TC_END;
|
|
|
|
|
2007-05-13 20:58:29 +00:00
|
|
|
if (check_col(actx->pinfo->cinfo, COL_INFO))
|
2007-11-07 21:22:25 +00:00
|
|
|
col_set_str(actx->pinfo->cinfo, COL_INFO, "End ");
|
2007-04-23 06:24:39 +00:00
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
End_sequence, hf_index, ett_tcap_End);
|
2007-04-23 06:24:39 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-08-18 21:36:59 +00:00
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
static const ber_sequence_t Continue_sequence[] = {
|
|
|
|
{ &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 }
|
2005-06-07 05:49:06 +00:00
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2008-07-26 22:39:32 +00:00
|
|
|
#line 243 "tcap.cnf"
|
From Florent Drouin:
Here are some patches and a new module to introduce the notion of Tcap context for a Tcap transaction. For each Tcap transaction, several parameters, like session identifier, start time or OID, will be saved in a hash table, to keep these informations available for the next messages. This context is then given to the upper layer, and can be used, for example, to generate transaction-associated statistics.
Moreover, the Upper protocol, detected in the Begin of the TCAP transaction ( according to the OID ), is saved in the context, and will be reused for the next messages of the transaction. This help the decoding of SS7 messages, without any SSN configuration in the "wireshark preferences".
You will have too, the possibility to apply a filter to see only the messages related to a TCAP transaction. (tcap.srt.session_id=XXX)
To enable the use of the Tcap context, you have 2 new parameters in the preferences,
- SRT, enable search for a Tcap context for any TCAP messages
- persistentSRT, keep the Tcap context, even after the transaction has been closed. This is mandatory with Wireshark, to have a clean display of the stats.
There is 2 new timers in the preferences for the statistics, to tune the retransmission timeout, and messages lost timeout.
svn path=/trunk/; revision=19341
2006-09-27 20:06:06 +00:00
|
|
|
gp_tcapsrt_info->ope=TC_CONT;
|
|
|
|
|
2007-05-13 20:58:29 +00:00
|
|
|
if (check_col(actx->pinfo->cinfo, COL_INFO))
|
2007-11-07 21:22:25 +00:00
|
|
|
col_set_str(actx->pinfo->cinfo, COL_INFO, "Continue ");
|
2007-04-23 06:24:39 +00:00
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
Continue_sequence, hf_index, ett_tcap_Continue);
|
2007-04-23 06:24:39 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2003-10-02 06:13:29 +00:00
|
|
|
|
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
static const value_string tcap_P_AbortCause_U_vals[] = {
|
2005-06-07 05:49:06 +00:00
|
|
|
{ 0, "unrecognizedMessageType" },
|
|
|
|
{ 1, "unrecognizedTransactionID" },
|
|
|
|
{ 2, "badlyFormattedTransactionPortion" },
|
|
|
|
{ 3, "incorrectTransactionPortion" },
|
|
|
|
{ 4, "resourceLimitation" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-11-07 21:22:25 +00:00
|
|
|
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_) {
|
2007-05-15 05:49:43 +00:00
|
|
|
offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
|
2008-03-01 17:23:39 +00:00
|
|
|
NULL);
|
2005-06-07 05:49:06 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
2007-11-07 21:22:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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;
|
2003-10-02 06:13:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static const value_string tcap_Reason_vals[] = {
|
|
|
|
{ 10, "p-abortCause" },
|
|
|
|
{ 11, "u-abortCause" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
static const ber_choice_t Reason_choice[] = {
|
|
|
|
{ 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 }
|
2005-06-07 05:49:06 +00:00
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_tcap_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_) {
|
2007-11-07 21:22:25 +00:00
|
|
|
offset = dissect_ber_choice(actx, tree, tvb, offset,
|
|
|
|
Reason_choice, hf_index, ett_tcap_Reason,
|
|
|
|
NULL);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-08-18 21:36:59 +00:00
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
static const ber_sequence_t Abort_sequence[] = {
|
|
|
|
{ &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 }
|
2005-06-07 05:49:06 +00:00
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2008-07-26 22:39:32 +00:00
|
|
|
#line 251 "tcap.cnf"
|
From Florent Drouin:
Here are some patches and a new module to introduce the notion of Tcap context for a Tcap transaction. For each Tcap transaction, several parameters, like session identifier, start time or OID, will be saved in a hash table, to keep these informations available for the next messages. This context is then given to the upper layer, and can be used, for example, to generate transaction-associated statistics.
Moreover, the Upper protocol, detected in the Begin of the TCAP transaction ( according to the OID ), is saved in the context, and will be reused for the next messages of the transaction. This help the decoding of SS7 messages, without any SSN configuration in the "wireshark preferences".
You will have too, the possibility to apply a filter to see only the messages related to a TCAP transaction. (tcap.srt.session_id=XXX)
To enable the use of the Tcap context, you have 2 new parameters in the preferences,
- SRT, enable search for a Tcap context for any TCAP messages
- persistentSRT, keep the Tcap context, even after the transaction has been closed. This is mandatory with Wireshark, to have a clean display of the stats.
There is 2 new timers in the preferences for the statistics, to tune the retransmission timeout, and messages lost timeout.
svn path=/trunk/; revision=19341
2006-09-27 20:06:06 +00:00
|
|
|
gp_tcapsrt_info->ope=TC_ABORT;
|
|
|
|
|
2007-05-13 20:58:29 +00:00
|
|
|
if (check_col(actx->pinfo->cinfo, COL_INFO))
|
2007-11-07 21:22:25 +00:00
|
|
|
col_set_str(actx->pinfo->cinfo, COL_INFO, "Abort ");
|
2007-07-26 20:05:54 +00:00
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
Abort_sequence, hf_index, ett_tcap_Abort);
|
2007-04-23 06:24:39 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2003-10-02 06:13:29 +00:00
|
|
|
|
|
|
|
|
2005-08-18 21:36:59 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-11-07 21:22:25 +00:00
|
|
|
dissect_tcap_TransactionID_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_) {
|
2008-07-26 22:39:32 +00:00
|
|
|
#line 291 "tcap.cnf"
|
2007-01-01 22:03:01 +00:00
|
|
|
|
|
|
|
tvbuff_t *next_tvb;
|
2007-07-27 19:24:40 +00:00
|
|
|
guint8 len;
|
2007-01-01 22:03:01 +00:00
|
|
|
|
2007-05-15 05:49:43 +00:00
|
|
|
offset = dissect_ber_octet_string(implicit_tag, actx, tree, tvb, offset, hf_index,
|
2007-01-01 22:03:01 +00:00
|
|
|
&next_tvb);
|
|
|
|
|
|
|
|
|
2007-07-27 19:24:40 +00:00
|
|
|
if(next_tvb) {
|
2007-01-01 22:03:01 +00:00
|
|
|
tcap_private.TransactionID_str = tvb_bytes_to_str(next_tvb, 0,tvb_length(next_tvb));
|
2007-07-27 19:24:40 +00:00
|
|
|
len = tvb_length_remaining(next_tvb, 0);
|
|
|
|
switch(len) {
|
|
|
|
case 1:
|
|
|
|
gp_tcapsrt_info->src_tid=tvb_get_guint8(next_tvb, 0);
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
gp_tcapsrt_info->src_tid=tvb_get_ntohs(next_tvb, 0);
|
|
|
|
break;
|
|
|
|
case 4:
|
|
|
|
gp_tcapsrt_info->src_tid=tvb_get_ntohl(next_tvb, 0);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
gp_tcapsrt_info->src_tid=0;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
2007-01-01 22:03:01 +00:00
|
|
|
|
|
|
|
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2007-11-07 21:22:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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_) {
|
|
|
|
offset = dissect_ber_tagged_type(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
hf_index, BER_CLASS_PRI, 7, TRUE, dissect_tcap_TransactionID_U);
|
|
|
|
|
|
|
|
return offset;
|
2003-10-02 06:13:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-08-18 21:36:59 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-11-07 21:22:25 +00:00
|
|
|
dissect_tcap_OCTET_STRING_SIZE_1(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2007-05-15 05:49:43 +00:00
|
|
|
offset = dissect_ber_octet_string(implicit_tag, actx, tree, tvb, offset, hf_index,
|
2005-08-18 21:36:59 +00:00
|
|
|
NULL);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2007-11-07 21:22:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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_tagged_type(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
hf_index, BER_CLASS_PRI, 26, TRUE, dissect_tcap_OCTET_STRING_SIZE_1);
|
|
|
|
|
|
|
|
return offset;
|
2003-10-02 06:13:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2007-11-07 21:22:25 +00:00
|
|
|
offset = dissect_ber_tagged_type(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
hf_index, BER_CLASS_PRI, 27, TRUE, dissect_tcap_INTEGER);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2003-10-02 06:13:29 +00:00
|
|
|
|
|
|
|
|
2005-06-07 20:29:23 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2007-11-07 21:22:25 +00:00
|
|
|
offset = dissect_ber_tagged_type(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
hf_index, BER_CLASS_PRI, 28, TRUE, dissect_tcap_OBJECT_IDENTIFIER);
|
2005-06-07 05:49:06 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
2003-10-02 06:13:29 +00:00
|
|
|
|
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static const value_string tcap_T_applicationContext_vals[] = {
|
|
|
|
{ 27, "integerApplicationId" },
|
|
|
|
{ 28, "objectApplicationId" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
static const ber_choice_t T_applicationContext_choice[] = {
|
|
|
|
{ 27, &hf_tcap_integerApplicationId, BER_CLASS_PRI, 27, BER_FLAGS_NOOWNTAG, dissect_tcap_IntegerApplicationContext },
|
|
|
|
{ 28, &hf_tcap_objectApplicationId, BER_CLASS_PRI, 28, BER_FLAGS_NOOWNTAG, dissect_tcap_ObjectIDApplicationContext },
|
|
|
|
{ 0, NULL, 0, 0, 0, NULL }
|
2005-06-07 05:49:06 +00:00
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2007-11-07 21:22:25 +00:00
|
|
|
offset = dissect_ber_choice(actx, tree, tvb, offset,
|
|
|
|
T_applicationContext_choice, hf_index, ett_tcap_T_applicationContext,
|
|
|
|
NULL);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2003-10-02 06:13:29 +00:00
|
|
|
|
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static const value_string tcap_T_securityContext_vals[] = {
|
|
|
|
{ 0, "integerSecurityId" },
|
|
|
|
{ 1, "objectSecurityId" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
static const ber_choice_t T_securityContext_choice[] = {
|
|
|
|
{ 0, &hf_tcap_integerSecurityId, BER_CLASS_CON, 0, BER_FLAGS_IMPLTAG, dissect_tcap_INTEGER },
|
|
|
|
{ 1, &hf_tcap_objectSecurityId, BER_CLASS_CON, 1, BER_FLAGS_IMPLTAG, dissect_tcap_OBJECT_IDENTIFIER },
|
|
|
|
{ 0, NULL, 0, 0, 0, NULL }
|
2005-06-07 05:49:06 +00:00
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2007-11-07 21:22:25 +00:00
|
|
|
offset = dissect_ber_choice(actx, tree, tvb, offset,
|
|
|
|
T_securityContext_choice, hf_index, ett_tcap_T_securityContext,
|
|
|
|
NULL);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2003-10-02 06:13:29 +00:00
|
|
|
|
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static const value_string tcap_T_confidentialityId_vals[] = {
|
|
|
|
{ 0, "integerConfidentialityId" },
|
|
|
|
{ 1, "objectConfidentialityId" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
static const ber_choice_t T_confidentialityId_choice[] = {
|
|
|
|
{ 0, &hf_tcap_integerConfidentialityId, BER_CLASS_CON, 0, BER_FLAGS_IMPLTAG, dissect_tcap_INTEGER },
|
|
|
|
{ 1, &hf_tcap_objectConfidentialityId, BER_CLASS_CON, 1, BER_FLAGS_IMPLTAG, dissect_tcap_OBJECT_IDENTIFIER },
|
|
|
|
{ 0, NULL, 0, 0, 0, NULL }
|
2005-06-07 05:49:06 +00:00
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2007-11-07 21:22:25 +00:00
|
|
|
offset = dissect_ber_choice(actx, tree, tvb, offset,
|
|
|
|
T_confidentialityId_choice, hf_index, ett_tcap_T_confidentialityId,
|
|
|
|
NULL);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-08-18 21:36:59 +00:00
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
static const ber_sequence_t Confidentiality_sequence[] = {
|
|
|
|
{ &hf_tcap_confidentialityId, BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_tcap_T_confidentialityId },
|
|
|
|
{ NULL, 0, 0, 0, NULL }
|
2005-06-07 05:49:06 +00:00
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2007-11-07 21:22:25 +00:00
|
|
|
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
Confidentiality_sequence, hf_index, ett_tcap_Confidentiality);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-08-18 21:36:59 +00:00
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
static const ber_sequence_t DialoguePortionANSI_U_sequence[] = {
|
|
|
|
{ &hf_tcap_version , BER_CLASS_PRI, 26, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_tcap_ProtocolVersion },
|
|
|
|
{ &hf_tcap_applicationContext, BER_CLASS_CON, 0, BER_FLAGS_OPTIONAL, dissect_tcap_T_applicationContext },
|
|
|
|
{ &hf_tcap_userInformation, BER_CLASS_UNI, 8, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_tcap_UserInformation },
|
|
|
|
{ &hf_tcap_securityContext, BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_tcap_T_securityContext },
|
|
|
|
{ &hf_tcap_confidentiality, BER_CLASS_CON, 2, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_tcap_Confidentiality },
|
|
|
|
{ NULL, 0, 0, 0, NULL }
|
2005-06-07 05:49:06 +00:00
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-11-07 21:22:25 +00:00
|
|
|
dissect_tcap_DialoguePortionANSI_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_U_sequence, hf_index, ett_tcap_DialoguePortionANSI_U);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2007-11-07 21:22:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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_) {
|
|
|
|
offset = dissect_ber_tagged_type(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
hf_index, BER_CLASS_PRI, 25, TRUE, dissect_tcap_DialoguePortionANSI_U);
|
|
|
|
|
|
|
|
return offset;
|
2003-10-02 06:13:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-08-18 21:36:59 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2007-05-15 05:49:43 +00:00
|
|
|
offset = dissect_ber_octet_string(implicit_tag, actx, tree, tvb, offset, hf_index,
|
2005-08-18 21:36:59 +00:00
|
|
|
NULL);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2003-10-02 06:13:29 +00:00
|
|
|
|
|
|
|
|
2005-06-07 20:29:23 +00:00
|
|
|
static const value_string tcap_OperationCode_vals[] = {
|
|
|
|
{ 16, "national" },
|
|
|
|
{ 17, "private" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
static const ber_choice_t OperationCode_choice[] = {
|
|
|
|
{ 16, &hf_tcap_national , BER_CLASS_PRI, 16, BER_FLAGS_IMPLTAG, dissect_tcap_INTEGER_M32768_32767 },
|
|
|
|
{ 17, &hf_tcap_private , BER_CLASS_PRI, 17, BER_FLAGS_IMPLTAG, dissect_tcap_INTEGER },
|
|
|
|
{ 0, NULL, 0, 0, 0, NULL }
|
2005-06-07 20:29:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2007-11-07 21:22:25 +00:00
|
|
|
offset = dissect_ber_choice(actx, tree, tvb, offset,
|
|
|
|
OperationCode_choice, hf_index, ett_tcap_OperationCode,
|
|
|
|
NULL);
|
2005-06-07 20:29:23 +00:00
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2008-07-26 22:39:32 +00:00
|
|
|
#line 114 "tcap.cnf"
|
2005-06-07 05:49:06 +00:00
|
|
|
/* 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! */
|
2007-05-15 05:49:43 +00:00
|
|
|
offset = dissect_tcap_param(actx,tree,tvb,offset);
|
2005-06-07 05:49:06 +00:00
|
|
|
else
|
2007-05-15 05:49:43 +00:00
|
|
|
offset = dissect_ber_octet_string(TRUE, actx, tree, tvb, 0, hf_index,
|
2005-06-07 05:49:06 +00:00
|
|
|
NULL);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-08-18 21:36:59 +00:00
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
static const ber_sequence_t ANSIparamch_sequence[] = {
|
|
|
|
{ &hf_tcap_ansiparams , BER_CLASS_ANY, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_tcap_ANSIParameters },
|
|
|
|
{ &hf_tcap_ansiparams1 , BER_CLASS_ANY, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_tcap_ANSIParameters },
|
|
|
|
{ &hf_tcap_ansiparams2 , BER_CLASS_ANY, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_tcap_ANSIParameters },
|
|
|
|
{ &hf_tcap_ansiparams3 , BER_CLASS_ANY, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_tcap_ANSIParameters },
|
|
|
|
{ &hf_tcap_ansiparams4 , BER_CLASS_ANY, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_tcap_ANSIParameters },
|
|
|
|
{ &hf_tcap_ansiparams5 , BER_CLASS_ANY, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_tcap_ANSIParameters },
|
|
|
|
{ &hf_tcap_ansiparams6 , BER_CLASS_ANY, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_tcap_ANSIParameters },
|
|
|
|
{ &hf_tcap_ansiparams7 , BER_CLASS_ANY, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_tcap_ANSIParameters },
|
|
|
|
{ &hf_tcap_ansiparams8 , BER_CLASS_ANY, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_tcap_ANSIParameters },
|
|
|
|
{ &hf_tcap_ansiparams9 , BER_CLASS_ANY, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_tcap_ANSIParameters },
|
|
|
|
{ &hf_tcap_ansiparams10 , BER_CLASS_ANY, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_tcap_ANSIParameters },
|
|
|
|
{ &hf_tcap_ansiparams11 , BER_CLASS_ANY, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_tcap_ANSIParameters },
|
|
|
|
{ &hf_tcap_ansiparams12 , BER_CLASS_ANY, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_tcap_ANSIParameters },
|
|
|
|
{ &hf_tcap_ansiparams13 , BER_CLASS_ANY, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_tcap_ANSIParameters },
|
|
|
|
{ &hf_tcap_ansiparams14 , BER_CLASS_ANY, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_tcap_ANSIParameters },
|
|
|
|
{ &hf_tcap_ansiparams15 , BER_CLASS_ANY, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_tcap_ANSIParameters },
|
|
|
|
{ &hf_tcap_ansiparams16 , BER_CLASS_ANY, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_tcap_ANSIParameters },
|
|
|
|
{ &hf_tcap_ansiparams17 , BER_CLASS_ANY, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_tcap_ANSIParameters },
|
|
|
|
{ &hf_tcap_ansiparams18 , BER_CLASS_ANY, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_tcap_ANSIParameters },
|
|
|
|
{ &hf_tcap_ansiparams19 , BER_CLASS_ANY, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_tcap_ANSIParameters },
|
|
|
|
{ &hf_tcap_ansiparams20 , BER_CLASS_ANY, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_tcap_ANSIParameters },
|
|
|
|
{ &hf_tcap_ansiparams21 , BER_CLASS_ANY, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_tcap_ANSIParameters },
|
|
|
|
{ NULL, 0, 0, 0, NULL }
|
2005-06-07 05:49:06 +00:00
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2007-11-07 21:22:25 +00:00
|
|
|
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
ANSIparamch_sequence, hf_index, ett_tcap_ANSIparamch);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-08-18 21:36:59 +00:00
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
static const ber_sequence_t InvokePDU_sequence[] = {
|
|
|
|
{ &hf_tcap_componentIDs , BER_CLASS_PRI, 15, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_tcap_OCTET_STRING_SIZE_0_2 },
|
|
|
|
{ &hf_tcap_operationCode , BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_tcap_OperationCode },
|
|
|
|
{ &hf_tcap_parameterinv , BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_tcap_ANSIparamch },
|
|
|
|
{ NULL, 0, 0, 0, NULL }
|
2005-06-07 05:49:06 +00:00
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2007-11-07 21:22:25 +00:00
|
|
|
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
InvokePDU_sequence, hf_index, ett_tcap_InvokePDU);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2003-10-16 18:15:54 +00:00
|
|
|
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-08-18 21:36:59 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2007-11-07 21:22:25 +00:00
|
|
|
offset = dissect_ber_tagged_type(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
hf_index, BER_CLASS_PRI, 15, TRUE, dissect_tcap_OCTET_STRING_SIZE_1);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-08-18 21:36:59 +00:00
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
static const ber_sequence_t ReturnResultPDU_sequence[] = {
|
|
|
|
{ &hf_tcap_componentID , BER_CLASS_PRI, 15, BER_FLAGS_NOOWNTAG, dissect_tcap_ComponentID },
|
|
|
|
{ &hf_tcap_parameterrr , BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_tcap_ANSIparamch },
|
|
|
|
{ NULL, 0, 0, 0, NULL }
|
2005-06-07 05:49:06 +00:00
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2007-11-07 21:22:25 +00:00
|
|
|
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
ReturnResultPDU_sequence, hf_index, ett_tcap_ReturnResultPDU);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
2005-08-18 21:36:59 +00:00
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
static const ber_sequence_t ReturnErrorPDU_sequence[] = {
|
|
|
|
{ &hf_tcap_componentID , BER_CLASS_PRI, 15, BER_FLAGS_NOOWNTAG, dissect_tcap_ComponentID },
|
|
|
|
{ &hf_tcap_errorCode , BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_tcap_ErrorCode },
|
|
|
|
{ &hf_tcap_parameterre , BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_tcap_ANSIparamch },
|
|
|
|
{ NULL, 0, 0, 0, NULL }
|
2005-06-07 05:49:06 +00:00
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2007-11-07 21:22:25 +00:00
|
|
|
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
ReturnErrorPDU_sequence, hf_index, ett_tcap_ReturnErrorPDU);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2003-10-02 06:13:29 +00:00
|
|
|
|
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static const value_string tcap_ProblemPDU_vals[] = {
|
|
|
|
{ 257, "general-unrecognisedComponentType" },
|
|
|
|
{ 258, "general-incorrectComponentPortion" },
|
|
|
|
{ 259, "general-badlyStructuredCompPortion" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
2003-11-14 01:35:08 +00:00
|
|
|
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2007-05-15 05:49:43 +00:00
|
|
|
offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
|
2008-03-01 17:23:39 +00:00
|
|
|
NULL);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-08-18 21:36:59 +00:00
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
static const ber_sequence_t RejectPDU_sequence[] = {
|
|
|
|
{ &hf_tcap_componentID , BER_CLASS_PRI, 15, BER_FLAGS_NOOWNTAG, dissect_tcap_ComponentID },
|
|
|
|
{ &hf_tcap_rejectProblem , BER_CLASS_PRI, 21, BER_FLAGS_IMPLTAG, dissect_tcap_ProblemPDU },
|
|
|
|
{ &hf_tcap_parameterrj , BER_CLASS_UNI, BER_UNI_TAG_SEQUENCE, BER_FLAGS_NOOWNTAG, dissect_tcap_ANSIparamch },
|
|
|
|
{ NULL, 0, 0, 0, NULL }
|
2005-06-07 05:49:06 +00:00
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2007-11-07 21:22:25 +00:00
|
|
|
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
RejectPDU_sequence, hf_index, ett_tcap_RejectPDU);
|
2003-11-14 01:35:08 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2003-10-02 06:13:29 +00:00
|
|
|
|
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static const value_string tcap_ComponentPDU_vals[] = {
|
|
|
|
{ 9, "invokeLastansi" },
|
|
|
|
{ 10, "returnResultLastansi" },
|
|
|
|
{ 11, "returnErroransi" },
|
|
|
|
{ 12, "rejectansi" },
|
|
|
|
{ 13, "invokeNotLastansi" },
|
|
|
|
{ 14, "returnResultNotLastansi" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
static const ber_choice_t ComponentPDU_choice[] = {
|
|
|
|
{ 9, &hf_tcap_invokeLastansi , BER_CLASS_PRI, 9, BER_FLAGS_IMPLTAG, dissect_tcap_InvokePDU },
|
|
|
|
{ 10, &hf_tcap_returnResultLastansi, BER_CLASS_PRI, 10, BER_FLAGS_IMPLTAG, dissect_tcap_ReturnResultPDU },
|
|
|
|
{ 11, &hf_tcap_returnErroransi, BER_CLASS_PRI, 11, BER_FLAGS_IMPLTAG, dissect_tcap_ReturnErrorPDU },
|
|
|
|
{ 12, &hf_tcap_rejectansi , BER_CLASS_PRI, 12, BER_FLAGS_IMPLTAG, dissect_tcap_RejectPDU },
|
|
|
|
{ 13, &hf_tcap_invokeNotLastansi, BER_CLASS_PRI, 13, BER_FLAGS_IMPLTAG, dissect_tcap_InvokePDU },
|
|
|
|
{ 14, &hf_tcap_returnResultNotLastansi, BER_CLASS_PRI, 14, BER_FLAGS_IMPLTAG, dissect_tcap_ReturnResultPDU },
|
|
|
|
{ 0, NULL, 0, 0, 0, NULL }
|
2005-06-07 05:49:06 +00:00
|
|
|
};
|
2003-11-14 01:35:08 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2008-07-26 22:39:32 +00:00
|
|
|
#line 125 "tcap.cnf"
|
2007-07-27 19:24:40 +00:00
|
|
|
tvbuff_t *next_tvb;
|
|
|
|
gint8 class;
|
|
|
|
gboolean pc;
|
|
|
|
gint tag;
|
|
|
|
guint32 len, comp_offset;
|
|
|
|
gint ind_field;
|
2003-11-14 01:35:08 +00:00
|
|
|
|
2007-07-27 19:24:40 +00:00
|
|
|
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);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2007-07-27 19:24:40 +00:00
|
|
|
if (!next_tvb)
|
|
|
|
return offset;
|
2007-07-26 20:05:54 +00:00
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
offset = dissect_ber_choice(actx, tree, tvb, offset,
|
|
|
|
ComponentPDU_choice, hf_index, ett_tcap_ComponentPDU,
|
|
|
|
NULL);
|
2005-08-18 21:36:59 +00:00
|
|
|
|
2007-07-26 20:05:54 +00:00
|
|
|
|
2007-07-30 17:10:20 +00:00
|
|
|
dissect_tcap_ANSI_ComponentPDU(implicit_tag, next_tvb, 0, actx, tcap_top_tree, hf_index);
|
2007-07-26 20:05:54 +00:00
|
|
|
|
2003-11-14 01:35:08 +00:00
|
|
|
|
2005-12-08 23:29:21 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2003-11-14 01:35:08 +00:00
|
|
|
|
2005-08-18 21:36:59 +00:00
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
static const ber_sequence_t SEQUENCE_OF_ComponentPDU_sequence_of[1] = {
|
|
|
|
{ &hf_tcap__untag_item_01 , BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_tcap_ComponentPDU },
|
2005-06-07 05:49:06 +00:00
|
|
|
};
|
2003-11-14 01:35:08 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-11-07 21:22:25 +00:00
|
|
|
dissect_tcap_SEQUENCE_OF_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_) {
|
|
|
|
offset = dissect_ber_sequence_of(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
SEQUENCE_OF_ComponentPDU_sequence_of, hf_index, ett_tcap_SEQUENCE_OF_ComponentPDU);
|
2003-11-14 01:35:08 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2007-11-07 21:22:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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_tagged_type(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
hf_index, BER_CLASS_PRI, 8, TRUE, dissect_tcap_SEQUENCE_OF_ComponentPDU);
|
|
|
|
|
|
|
|
return offset;
|
2005-06-07 05:49:06 +00:00
|
|
|
}
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-08-18 21:36:59 +00:00
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
static const ber_sequence_t UniTransactionPDU_sequence[] = {
|
|
|
|
{ &hf_tcap_identifier , BER_CLASS_PRI, 7, BER_FLAGS_NOOWNTAG, dissect_tcap_TransactionID },
|
|
|
|
{ &hf_tcap_dialoguePortionansi, BER_CLASS_PRI, 25, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_tcap_DialoguePortionANSI },
|
|
|
|
{ &hf_tcap_componentPortion, BER_CLASS_PRI, 8, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_tcap_ComponentSequence },
|
|
|
|
{ NULL, 0, 0, 0, NULL }
|
2005-06-07 05:49:06 +00:00
|
|
|
};
|
2003-11-14 01:35:08 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2007-11-07 21:22:25 +00:00
|
|
|
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
UniTransactionPDU_sequence, hf_index, ett_tcap_UniTransactionPDU);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
2003-10-02 06:13:29 +00:00
|
|
|
}
|
2005-06-07 05:49:06 +00:00
|
|
|
|
2005-08-18 21:36:59 +00:00
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
static const ber_sequence_t TransactionPDU_sequence[] = {
|
|
|
|
{ &hf_tcap_identifier , BER_CLASS_PRI, 7, BER_FLAGS_NOOWNTAG, dissect_tcap_TransactionID },
|
|
|
|
{ &hf_tcap_dialoguePortionansi, BER_CLASS_PRI, 25, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_tcap_DialoguePortionANSI },
|
|
|
|
{ &hf_tcap_componentPortion, BER_CLASS_PRI, 8, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_tcap_ComponentSequence },
|
|
|
|
{ NULL, 0, 0, 0, NULL }
|
2005-06-07 05:49:06 +00:00
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2007-11-07 21:22:25 +00:00
|
|
|
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
TransactionPDU_sequence, hf_index, ett_tcap_TransactionPDU);
|
2007-07-26 20:05:54 +00:00
|
|
|
|
2007-07-27 06:23:45 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2007-07-26 20:05:54 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2007-07-27 06:23:45 +00:00
|
|
|
static int
|
|
|
|
dissect_tcap_T_ansiqueryWithPerm(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2008-07-26 22:39:32 +00:00
|
|
|
#line 267 "tcap.cnf"
|
2007-07-27 19:24:40 +00:00
|
|
|
gp_tcapsrt_info->ope=TC_ANSI_ALL;
|
2007-07-27 06:23:45 +00:00
|
|
|
if (check_col(actx->pinfo->cinfo, COL_INFO))
|
2007-11-07 21:22:25 +00:00
|
|
|
col_set_str(actx->pinfo->cinfo, COL_INFO, "QueryWithPerm ");
|
2007-07-26 20:05:54 +00:00
|
|
|
|
2007-07-27 06:23:45 +00:00
|
|
|
offset = dissect_tcap_TransactionPDU(implicit_tag, tvb, offset, actx, tree, hf_index);
|
2007-07-26 20:05:54 +00:00
|
|
|
|
2007-07-27 06:23:45 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2007-01-01 22:03:01 +00:00
|
|
|
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-12-08 23:29:21 +00:00
|
|
|
|
2007-07-27 06:23:45 +00:00
|
|
|
static int
|
|
|
|
dissect_tcap_T_ansiqueryWithoutPerm(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2008-07-26 22:39:32 +00:00
|
|
|
#line 271 "tcap.cnf"
|
2007-07-27 19:24:40 +00:00
|
|
|
gp_tcapsrt_info->ope=TC_ANSI_ALL;
|
2007-07-27 06:23:45 +00:00
|
|
|
if (check_col(actx->pinfo->cinfo, COL_INFO))
|
2007-11-07 21:22:25 +00:00
|
|
|
col_set_str(actx->pinfo->cinfo, COL_INFO, "QueryWithOutPerm ");
|
2007-07-27 06:23:45 +00:00
|
|
|
|
|
|
|
offset = dissect_tcap_TransactionPDU(implicit_tag, tvb, offset, actx, tree, hf_index);
|
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2007-07-27 06:23:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static int
|
|
|
|
dissect_tcap_T_ansiresponse(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2008-07-26 22:39:32 +00:00
|
|
|
#line 275 "tcap.cnf"
|
2007-07-27 19:24:40 +00:00
|
|
|
gp_tcapsrt_info->ope=TC_ANSI_ALL;
|
2007-07-27 06:23:45 +00:00
|
|
|
if (check_col(actx->pinfo->cinfo, COL_INFO))
|
2007-11-07 21:22:25 +00:00
|
|
|
col_set_str(actx->pinfo->cinfo, COL_INFO, "Response ");
|
2007-07-27 06:23:45 +00:00
|
|
|
|
|
|
|
offset = dissect_tcap_TransactionPDU(implicit_tag, tvb, offset, actx, tree, hf_index);
|
|
|
|
|
|
|
|
return offset;
|
2005-06-07 05:49:06 +00:00
|
|
|
}
|
2007-07-27 06:23:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static int
|
|
|
|
dissect_tcap_T_ansiconversationWithPerm(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2008-07-26 22:39:32 +00:00
|
|
|
#line 279 "tcap.cnf"
|
2007-07-27 19:24:40 +00:00
|
|
|
gp_tcapsrt_info->ope=TC_ANSI_ALL;
|
2007-07-27 06:23:45 +00:00
|
|
|
if (check_col(actx->pinfo->cinfo, COL_INFO))
|
2007-11-07 21:22:25 +00:00
|
|
|
col_set_str(actx->pinfo->cinfo, COL_INFO, "ConversationWithPerm ");
|
2007-07-27 06:23:45 +00:00
|
|
|
|
|
|
|
offset = dissect_tcap_TransactionPDU(implicit_tag, tvb, offset, actx, tree, hf_index);
|
|
|
|
|
|
|
|
return offset;
|
2005-06-07 05:49:06 +00:00
|
|
|
}
|
2007-07-27 06:23:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static int
|
|
|
|
dissect_tcap_T_ansiconversationWithoutPerm(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
2008-07-26 22:39:32 +00:00
|
|
|
#line 283 "tcap.cnf"
|
2007-07-27 19:24:40 +00:00
|
|
|
gp_tcapsrt_info->ope=TC_ANSI_ALL;
|
2007-07-27 06:23:45 +00:00
|
|
|
if (check_col(actx->pinfo->cinfo, COL_INFO))
|
2007-11-07 21:22:25 +00:00
|
|
|
col_set_str(actx->pinfo->cinfo, COL_INFO, "ConversationWithoutPerm ");
|
2007-07-27 06:23:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
offset = dissect_tcap_TransactionPDU(implicit_tag, tvb, offset, actx, tree, hf_index);
|
|
|
|
|
|
|
|
return offset;
|
2005-06-07 05:49:06 +00:00
|
|
|
}
|
2003-10-02 06:13:29 +00:00
|
|
|
|
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
static const value_string tcap_P_Abort_cause_U_vals[] = {
|
2005-06-07 05:49:06 +00:00
|
|
|
{ 1, "unrecognizedPackageType" },
|
|
|
|
{ 2, "incorrestTransactionPortion" },
|
|
|
|
{ 3, "badlyStructuredTransactionPortion" },
|
|
|
|
{ 4, "unassignedRespondingTransactionID" },
|
|
|
|
{ 5, "permissionToReleaseProblem" },
|
|
|
|
{ 6, "resourceUnavilable" },
|
|
|
|
{ 7, "unrecognizedDialoguePortionID" },
|
|
|
|
{ 8, "badlyStructuredDialoguePortion" },
|
|
|
|
{ 9, "missingDialoguePortion" },
|
|
|
|
{ 10, "inconsistentDialoguePortion" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-11-07 21:22:25 +00:00
|
|
|
dissect_tcap_P_Abort_cause_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_) {
|
2007-05-15 05:49:43 +00:00
|
|
|
offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
|
2008-03-01 17:23:39 +00:00
|
|
|
NULL);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2007-11-07 21:22:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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_tagged_type(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
hf_index, BER_CLASS_PRI, 23, TRUE, dissect_tcap_P_Abort_cause_U);
|
|
|
|
|
|
|
|
return offset;
|
2005-06-07 05:49:06 +00:00
|
|
|
}
|
2003-10-02 06:13:29 +00:00
|
|
|
|
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static const value_string tcap_T_causeInformation_vals[] = {
|
|
|
|
{ 0, "abortCause" },
|
|
|
|
{ 1, "userInformation" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
static const ber_choice_t T_causeInformation_choice[] = {
|
|
|
|
{ 0, &hf_tcap_abortCause , BER_CLASS_PRI, 23, BER_FLAGS_NOOWNTAG, dissect_tcap_P_Abort_cause },
|
|
|
|
{ 1, &hf_tcap_userInformation, BER_CLASS_UNI, 8, BER_FLAGS_NOOWNTAG, dissect_tcap_UserInformation },
|
|
|
|
{ 0, NULL, 0, 0, 0, NULL }
|
2005-06-07 05:49:06 +00:00
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2007-11-07 21:22:25 +00:00
|
|
|
offset = dissect_ber_choice(actx, tree, tvb, offset,
|
|
|
|
T_causeInformation_choice, hf_index, ett_tcap_T_causeInformation,
|
|
|
|
NULL);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-08-18 21:36:59 +00:00
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
static const ber_sequence_t AbortPDU_sequence[] = {
|
|
|
|
{ &hf_tcap_identifier , BER_CLASS_PRI, 7, BER_FLAGS_NOOWNTAG, dissect_tcap_TransactionID },
|
|
|
|
{ &hf_tcap_dialoguePortionansi, BER_CLASS_PRI, 25, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG, dissect_tcap_DialoguePortionANSI },
|
|
|
|
{ &hf_tcap_causeInformation, BER_CLASS_ANY/*choice*/, -1/*choice*/, BER_FLAGS_OPTIONAL|BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_tcap_T_causeInformation },
|
|
|
|
{ NULL, 0, 0, 0, NULL }
|
2005-06-07 05:49:06 +00:00
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2008-07-26 22:39:32 +00:00
|
|
|
#line 259 "tcap.cnf"
|
2007-07-27 19:24:40 +00:00
|
|
|
gp_tcapsrt_info->ope=TC_ANSI_ABORT;
|
|
|
|
|
2007-05-13 20:58:29 +00:00
|
|
|
if (check_col(actx->pinfo->cinfo, COL_INFO))
|
2007-11-07 21:22:25 +00:00
|
|
|
col_set_str(actx->pinfo->cinfo, COL_INFO, "Abort ");
|
2007-04-23 06:24:39 +00:00
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
|
|
|
|
AbortPDU_sequence, hf_index, ett_tcap_AbortPDU);
|
2007-04-23 06:24:39 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2003-10-02 06:13:29 +00:00
|
|
|
|
|
|
|
|
2007-04-23 06:24:39 +00:00
|
|
|
static const value_string tcap_TCMessage_vals[] = {
|
2005-06-07 05:49:06 +00:00
|
|
|
{ 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 }
|
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
static const ber_choice_t TCMessage_choice[] = {
|
|
|
|
{ 0, &hf_tcap_unidirectional , BER_CLASS_APP, 1, BER_FLAGS_IMPLTAG, dissect_tcap_Unidirectional },
|
|
|
|
{ 1, &hf_tcap_begin , BER_CLASS_APP, 2, BER_FLAGS_IMPLTAG, dissect_tcap_Begin },
|
|
|
|
{ 2, &hf_tcap_end , BER_CLASS_APP, 4, BER_FLAGS_IMPLTAG, dissect_tcap_End },
|
|
|
|
{ 3, &hf_tcap_continue , BER_CLASS_APP, 5, BER_FLAGS_IMPLTAG, dissect_tcap_Continue },
|
|
|
|
{ 4, &hf_tcap_abort , BER_CLASS_APP, 7, BER_FLAGS_IMPLTAG, dissect_tcap_Abort },
|
|
|
|
{ 5, &hf_tcap_ansiunidirectional, BER_CLASS_PRI, 1, BER_FLAGS_IMPLTAG, dissect_tcap_UniTransactionPDU },
|
|
|
|
{ 6, &hf_tcap_ansiqueryWithPerm, BER_CLASS_PRI, 2, BER_FLAGS_IMPLTAG, dissect_tcap_T_ansiqueryWithPerm },
|
|
|
|
{ 7, &hf_tcap_ansiqueryWithoutPerm, BER_CLASS_PRI, 3, BER_FLAGS_IMPLTAG, dissect_tcap_T_ansiqueryWithoutPerm },
|
|
|
|
{ 8, &hf_tcap_ansiresponse , BER_CLASS_PRI, 4, BER_FLAGS_IMPLTAG, dissect_tcap_T_ansiresponse },
|
|
|
|
{ 9, &hf_tcap_ansiconversationWithPerm, BER_CLASS_PRI, 5, BER_FLAGS_IMPLTAG, dissect_tcap_T_ansiconversationWithPerm },
|
|
|
|
{ 10, &hf_tcap_ansiconversationWithoutPerm, BER_CLASS_PRI, 6, BER_FLAGS_IMPLTAG, dissect_tcap_T_ansiconversationWithoutPerm },
|
|
|
|
{ 11, &hf_tcap_ansiabort , BER_CLASS_PRI, 22, BER_FLAGS_IMPLTAG, dissect_tcap_AbortPDU },
|
|
|
|
{ 0, NULL, 0, 0, 0, NULL }
|
2005-06-07 05:49:06 +00:00
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2007-11-07 21:22:25 +00:00
|
|
|
offset = dissect_ber_choice(actx, tree, tvb, offset,
|
|
|
|
TCMessage_choice, hf_index, ett_tcap_TCMessage,
|
|
|
|
NULL);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2003-10-02 06:13:29 +00:00
|
|
|
|
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static const value_string tcap_ERROR_vals[] = {
|
|
|
|
{ 0, "localValue" },
|
|
|
|
{ 1, "globalValue" },
|
|
|
|
{ 0, NULL }
|
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2007-11-07 21:22:25 +00:00
|
|
|
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 }
|
2005-06-07 05:49:06 +00:00
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
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_) {
|
2007-11-07 21:22:25 +00:00
|
|
|
offset = dissect_ber_choice(actx, tree, tvb, offset,
|
|
|
|
ERROR_choice, hf_index, ett_tcap_ERROR,
|
|
|
|
NULL);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
return offset;
|
|
|
|
}
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2007-04-21 20:53:35 +00:00
|
|
|
/*--- PDUs ---*/
|
|
|
|
|
|
|
|
static void dissect_DialoguePDU_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
|
2007-05-13 20:58:29 +00:00
|
|
|
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);
|
2007-04-21 20:53:35 +00:00
|
|
|
}
|
|
|
|
static void dissect_UniDialoguePDU_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
|
2007-05-13 20:58:29 +00:00
|
|
|
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);
|
2007-04-21 20:53:35 +00:00
|
|
|
}
|
|
|
|
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
/*--- End of included file: packet-tcap-fn.c ---*/
|
2008-04-16 14:28:22 +00:00
|
|
|
#line 147 "packet-tcap-template.c"
|
2003-10-02 06:13:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
const value_string tcap_component_type_str[] = {
|
|
|
|
{ TCAP_COMP_INVOKE, "Invoke" },
|
|
|
|
{ TCAP_COMP_RRL, "Return Result(L)" },
|
|
|
|
{ TCAP_COMP_RE, "Return Error" },
|
|
|
|
{ TCAP_COMP_REJECT, "Reject" },
|
|
|
|
{ TCAP_COMP_RRN, "Return Result(NL)" },
|
|
|
|
{ 0, NULL } };
|
|
|
|
|
2003-10-02 06:13:29 +00:00
|
|
|
|
|
|
|
static void
|
2005-06-07 05:49:06 +00:00
|
|
|
dissect_tcap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
|
2003-10-02 06:13:29 +00:00
|
|
|
{
|
2005-06-07 05:49:06 +00:00
|
|
|
proto_item *item=NULL;
|
|
|
|
proto_tree *tree=NULL;
|
2007-07-27 19:24:40 +00:00
|
|
|
|
From Florent Drouin:
Here are some patches and a new module to introduce the notion of Tcap context for a Tcap transaction. For each Tcap transaction, several parameters, like session identifier, start time or OID, will be saved in a hash table, to keep these informations available for the next messages. This context is then given to the upper layer, and can be used, for example, to generate transaction-associated statistics.
Moreover, the Upper protocol, detected in the Begin of the TCAP transaction ( according to the OID ), is saved in the context, and will be reused for the next messages of the transaction. This help the decoding of SS7 messages, without any SSN configuration in the "wireshark preferences".
You will have too, the possibility to apply a filter to see only the messages related to a TCAP transaction. (tcap.srt.session_id=XXX)
To enable the use of the Tcap context, you have 2 new parameters in the preferences,
- SRT, enable search for a Tcap context for any TCAP messages
- persistentSRT, keep the Tcap context, even after the transaction has been closed. This is mandatory with Wireshark, to have a clean display of the stats.
There is 2 new timers in the preferences for the statistics, to tune the retransmission timeout, and messages lost timeout.
svn path=/trunk/; revision=19341
2006-09-27 20:06:06 +00:00
|
|
|
struct tcaphash_context_t * p_tcap_context;
|
2006-10-03 19:24:22 +00:00
|
|
|
dissector_handle_t subdissector_handle;
|
2007-05-13 20:58:29 +00:00
|
|
|
asn1_ctx_t asn1_ctx;
|
2007-08-14 22:05:36 +00:00
|
|
|
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);
|
2007-09-12 16:45:53 +00:00
|
|
|
|
2007-08-14 22:05:36 +00:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
2007-09-12 16:45:53 +00:00
|
|
|
|
2007-08-14 22:05:36 +00:00
|
|
|
/* ITU TCAP */
|
2007-05-13 20:58:29 +00:00
|
|
|
asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-16 07:46:03 +00:00
|
|
|
tcap_top_tree = parent_tree;
|
2007-07-27 19:24:40 +00:00
|
|
|
tcap_stat_tree = NULL;
|
|
|
|
|
2003-10-02 06:13:29 +00:00
|
|
|
if (check_col(pinfo->cinfo, COL_PROTOCOL))
|
2004-09-04 21:20:08 +00:00
|
|
|
{
|
2005-06-07 05:49:06 +00:00
|
|
|
col_set_str(pinfo->cinfo, COL_PROTOCOL, "TCAP");
|
2004-09-04 21:20:08 +00:00
|
|
|
}
|
2005-06-07 05:49:06 +00:00
|
|
|
|
|
|
|
/* create display subtree for the protocol */
|
|
|
|
if(parent_tree){
|
From Florent Drouin:
Here are some patches and a new module to introduce the notion of Tcap context for a Tcap transaction. For each Tcap transaction, several parameters, like session identifier, start time or OID, will be saved in a hash table, to keep these informations available for the next messages. This context is then given to the upper layer, and can be used, for example, to generate transaction-associated statistics.
Moreover, the Upper protocol, detected in the Begin of the TCAP transaction ( according to the OID ), is saved in the context, and will be reused for the next messages of the transaction. This help the decoding of SS7 messages, without any SSN configuration in the "wireshark preferences".
You will have too, the possibility to apply a filter to see only the messages related to a TCAP transaction. (tcap.srt.session_id=XXX)
To enable the use of the Tcap context, you have 2 new parameters in the preferences,
- SRT, enable search for a Tcap context for any TCAP messages
- persistentSRT, keep the Tcap context, even after the transaction has been closed. This is mandatory with Wireshark, to have a clean display of the stats.
There is 2 new timers in the preferences for the statistics, to tune the retransmission timeout, and messages lost timeout.
svn path=/trunk/; revision=19341
2006-09-27 20:06:06 +00:00
|
|
|
item = proto_tree_add_item(parent_tree, proto_tcap, tvb, 0, -1, FALSE);
|
|
|
|
tree = proto_item_add_subtree(item, ett_tcap);
|
|
|
|
tcap_stat_tree=tree;
|
2003-10-02 06:13:29 +00:00
|
|
|
}
|
2005-06-16 07:46:03 +00:00
|
|
|
cur_oid = NULL;
|
|
|
|
tcapext_oid = NULL;
|
From Florent Drouin:
Here are some patches and a new module to introduce the notion of Tcap context for a Tcap transaction. For each Tcap transaction, several parameters, like session identifier, start time or OID, will be saved in a hash table, to keep these informations available for the next messages. This context is then given to the upper layer, and can be used, for example, to generate transaction-associated statistics.
Moreover, the Upper protocol, detected in the Begin of the TCAP transaction ( according to the OID ), is saved in the context, and will be reused for the next messages of the transaction. This help the decoding of SS7 messages, without any SSN configuration in the "wireshark preferences".
You will have too, the possibility to apply a filter to see only the messages related to a TCAP transaction. (tcap.srt.session_id=XXX)
To enable the use of the Tcap context, you have 2 new parameters in the preferences,
- SRT, enable search for a Tcap context for any TCAP messages
- persistentSRT, keep the Tcap context, even after the transaction has been closed. This is mandatory with Wireshark, to have a clean display of the stats.
There is 2 new timers in the preferences for the statistics, to tune the retransmission timeout, and messages lost timeout.
svn path=/trunk/; revision=19341
2006-09-27 20:06:06 +00:00
|
|
|
raz_tcap_private(&tcap_private);
|
|
|
|
|
|
|
|
pinfo->private_data = &tcap_private;
|
|
|
|
gp_tcapsrt_info=tcapsrt_razinfo();
|
|
|
|
tcap_subdissector_used=FALSE;
|
|
|
|
gp_tcap_context=NULL;
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_tcap_TCMessage(FALSE, tvb, 0, &asn1_ctx, tree, -1);
|
2007-04-23 10:45:00 +00:00
|
|
|
|
2007-05-13 20:58:29 +00:00
|
|
|
if (gtcap_HandleSRT && !tcap_subdissector_used ) {
|
2007-07-27 19:24:40 +00:00
|
|
|
p_tcap_context=tcapsrt_call_matching(tvb, pinfo, tcap_stat_tree, gp_tcapsrt_info);
|
|
|
|
tcap_private.context=p_tcap_context;
|
2007-05-13 20:58:29 +00:00
|
|
|
|
|
|
|
/* If the current message is TCAP only,
|
2007-07-27 19:24:40 +00:00
|
|
|
* save the Application Context Name for the next messages
|
2007-05-13 20:58:29 +00:00
|
|
|
*/
|
|
|
|
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");
|
2008-03-01 17:23:39 +00:00
|
|
|
g_strlcpy(p_tcap_context->oid,cur_oid, LENGTH_OID);
|
2007-07-27 19:24:40 +00:00
|
|
|
p_tcap_context->oid_present=TRUE;
|
2007-05-13 20:58:29 +00:00
|
|
|
if ( (subdissector_handle = dissector_get_string_handle(ber_oid_dissector_table, cur_oid)) ) {
|
|
|
|
p_tcap_context->subdissector_handle=subdissector_handle;
|
2007-07-27 19:24:40 +00:00
|
|
|
p_tcap_context->subdissector_present=TRUE;
|
2007-05-13 20:58:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
if (gtcap_HandleSRT && p_tcap_context && p_tcap_context->callback) {
|
|
|
|
/* Callback fonction for the upper layer */
|
2007-07-27 19:24:40 +00:00
|
|
|
(p_tcap_context->callback)(tvb, pinfo, tcap_stat_tree, p_tcap_context);
|
2007-05-13 20:58:29 +00:00
|
|
|
}
|
|
|
|
}
|
2003-10-02 06:13:29 +00:00
|
|
|
}
|
|
|
|
|
2005-12-17 16:55:45 +00:00
|
|
|
void
|
|
|
|
proto_reg_handoff_tcap(void)
|
|
|
|
{
|
2007-04-23 10:45:00 +00:00
|
|
|
|
2007-04-21 20:53:35 +00:00
|
|
|
data_handle = find_dissector("data");
|
2008-04-16 14:28:22 +00:00
|
|
|
ansi_tcap_handle = find_dissector("ansi_tcap");
|
2007-08-14 22:05:36 +00:00
|
|
|
|
2007-04-21 20:53:35 +00:00
|
|
|
|
|
|
|
/*--- 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");
|
|
|
|
|
2005-12-18 11:19:25 +00:00
|
|
|
|
2007-04-21 20:53:35 +00:00
|
|
|
/*--- End of included file: packet-tcap-dis-tab.c ---*/
|
2008-04-16 14:28:22 +00:00
|
|
|
#line 262 "packet-tcap-template.c"
|
2005-12-17 16:55:45 +00:00
|
|
|
}
|
2005-06-07 05:49:06 +00:00
|
|
|
|
2005-12-17 16:55:45 +00:00
|
|
|
static void init_tcap(void);
|
2005-08-18 21:36:59 +00:00
|
|
|
|
2003-10-02 06:13:29 +00:00
|
|
|
void
|
|
|
|
proto_register_tcap(void)
|
|
|
|
{
|
|
|
|
|
|
|
|
/* Setup list of header fields See Section 1.6.1 for details*/
|
2003-10-16 18:15:54 +00:00
|
|
|
static hf_register_info hf[] = {
|
|
|
|
{ &hf_tcap_tag,
|
|
|
|
{ "Tag", "tcap.msgtype",
|
|
|
|
FT_UINT8, BASE_HEX, NULL, 0,
|
|
|
|
"", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_tcap_length,
|
|
|
|
{ "Length", "tcap.len",
|
2007-10-11 22:49:52 +00:00
|
|
|
FT_UINT8, BASE_DEC, NULL, 0,
|
2003-10-16 18:15:54 +00:00
|
|
|
"", HFILL }
|
|
|
|
},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_data,
|
|
|
|
{ "Data", "tcap.data",
|
|
|
|
FT_BYTES, BASE_HEX, NULL, 0,
|
2004-10-27 20:04:56 +00:00
|
|
|
"", HFILL }
|
|
|
|
},
|
2005-08-18 21:36:59 +00:00
|
|
|
{ &hf_tcap_tid,
|
|
|
|
{ "Transaction Id", "tcap.tid",
|
|
|
|
FT_BYTES, BASE_HEX, NULL, 0,
|
|
|
|
"", HFILL }
|
2007-04-23 10:45:00 +00:00
|
|
|
},
|
From Florent Drouin:
Here are some patches and a new module to introduce the notion of Tcap context for a Tcap transaction. For each Tcap transaction, several parameters, like session identifier, start time or OID, will be saved in a hash table, to keep these informations available for the next messages. This context is then given to the upper layer, and can be used, for example, to generate transaction-associated statistics.
Moreover, the Upper protocol, detected in the Begin of the TCAP transaction ( according to the OID ), is saved in the context, and will be reused for the next messages of the transaction. This help the decoding of SS7 messages, without any SSN configuration in the "wireshark preferences".
You will have too, the possibility to apply a filter to see only the messages related to a TCAP transaction. (tcap.srt.session_id=XXX)
To enable the use of the Tcap context, you have 2 new parameters in the preferences,
- SRT, enable search for a Tcap context for any TCAP messages
- persistentSRT, keep the Tcap context, even after the transaction has been closed. This is mandatory with Wireshark, to have a clean display of the stats.
There is 2 new timers in the preferences for the statistics, to tune the retransmission timeout, and messages lost timeout.
svn path=/trunk/; revision=19341
2006-09-27 20:06:06 +00:00
|
|
|
/* Tcap Service Response Time */
|
|
|
|
{ &hf_tcapsrt_SessionId,
|
|
|
|
{ "Session Id",
|
|
|
|
"tcap.srt.session_id",
|
|
|
|
FT_UINT32, BASE_DEC, NULL, 0x0,
|
|
|
|
"", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_tcapsrt_BeginSession,
|
|
|
|
{ "Begin Session",
|
|
|
|
"tcap.srt.begin",
|
|
|
|
FT_FRAMENUM, BASE_NONE, NULL, 0x0,
|
|
|
|
"SRT Begin of Session", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_tcapsrt_EndSession,
|
|
|
|
{ "End Session",
|
|
|
|
"tcap.srt.end",
|
|
|
|
FT_FRAMENUM, BASE_NONE, NULL, 0x0,
|
|
|
|
"SRT End of Session", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_tcapsrt_SessionTime,
|
|
|
|
{ "Session duration",
|
|
|
|
"tcap.srt.sessiontime",
|
|
|
|
FT_RELATIVE_TIME, BASE_NONE, NULL, 0x0,
|
|
|
|
"Duration of the TCAP session", HFILL }
|
|
|
|
},
|
|
|
|
{ &hf_tcapsrt_Duplicate,
|
2007-07-27 19:24:40 +00:00
|
|
|
{ "Session Duplicate",
|
From Florent Drouin:
Here are some patches and a new module to introduce the notion of Tcap context for a Tcap transaction. For each Tcap transaction, several parameters, like session identifier, start time or OID, will be saved in a hash table, to keep these informations available for the next messages. This context is then given to the upper layer, and can be used, for example, to generate transaction-associated statistics.
Moreover, the Upper protocol, detected in the Begin of the TCAP transaction ( according to the OID ), is saved in the context, and will be reused for the next messages of the transaction. This help the decoding of SS7 messages, without any SSN configuration in the "wireshark preferences".
You will have too, the possibility to apply a filter to see only the messages related to a TCAP transaction. (tcap.srt.session_id=XXX)
To enable the use of the Tcap context, you have 2 new parameters in the preferences,
- SRT, enable search for a Tcap context for any TCAP messages
- persistentSRT, keep the Tcap context, even after the transaction has been closed. This is mandatory with Wireshark, to have a clean display of the stats.
There is 2 new timers in the preferences for the statistics, to tune the retransmission timeout, and messages lost timeout.
svn path=/trunk/; revision=19341
2006-09-27 20:06:06 +00:00
|
|
|
"tcap.srt.duplicate",
|
2007-07-27 19:24:40 +00:00
|
|
|
FT_FRAMENUM, BASE_NONE, NULL, 0x0,
|
|
|
|
"SRT Duplicated with Session", HFILL }
|
2005-08-18 21:36:59 +00:00
|
|
|
},
|
2005-06-07 05:49:06 +00:00
|
|
|
|
|
|
|
/*--- Included file: packet-tcap-hfarr.c ---*/
|
2005-12-08 23:29:21 +00:00
|
|
|
#line 1 "packet-tcap-hfarr.c"
|
2007-04-21 20:53:35 +00:00
|
|
|
{ &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 }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_dialogueRequest,
|
|
|
|
{ "dialogueRequest", "tcap.dialogueRequest",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.AARQ_apdu", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_dialogueResponse,
|
|
|
|
{ "dialogueResponse", "tcap.dialogueResponse",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.AARE_apdu", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_dialogueAbort,
|
|
|
|
{ "dialogueAbort", "tcap.dialogueAbort",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.ABRT_apdu", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_oid,
|
|
|
|
{ "oid", "tcap.oid",
|
2005-12-08 23:29:21 +00:00
|
|
|
FT_OID, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.OBJECT_IDENTIFIER", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_dialog,
|
|
|
|
{ "dialog", "tcap.dialog",
|
|
|
|
FT_BYTES, BASE_HEX, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.Dialog1", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_useroid,
|
|
|
|
{ "useroid", "tcap.useroid",
|
2005-12-08 23:29:21 +00:00
|
|
|
FT_OID, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.UserInfoOID", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_externuserinfo,
|
|
|
|
{ "externuserinfo", "tcap.externuserinfo",
|
|
|
|
FT_BYTES, BASE_HEX, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.ExternUserInfo", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_protocol_versionrq,
|
|
|
|
{ "protocol-versionrq", "tcap.protocol_versionrq",
|
|
|
|
FT_BYTES, BASE_HEX, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.T_protocol_versionrq", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_application_context_name,
|
|
|
|
{ "application-context-name", "tcap.application_context_name",
|
2005-12-08 23:29:21 +00:00
|
|
|
FT_OID, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.Applicationcontext", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_user_information,
|
|
|
|
{ "user-information", "tcap.user_information",
|
|
|
|
FT_BYTES, BASE_HEX, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.User_information", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_protocol_versionre,
|
|
|
|
{ "protocol-versionre", "tcap.protocol_versionre",
|
|
|
|
FT_BYTES, BASE_HEX, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.T_protocol_versionre", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_result,
|
|
|
|
{ "result", "tcap.result",
|
|
|
|
FT_INT32, BASE_DEC, VALS(tcap_Associate_result_vals), 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.Associate_result", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_result_source_diagnostic,
|
|
|
|
{ "result-source-diagnostic", "tcap.result_source_diagnostic",
|
|
|
|
FT_UINT32, BASE_DEC, VALS(tcap_Associate_source_diagnostic_vals), 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.Associate_source_diagnostic", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_abort_source,
|
|
|
|
{ "abort-source", "tcap.abort_source",
|
|
|
|
FT_INT32, BASE_DEC, VALS(tcap_ABRT_source_vals), 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.ABRT_source", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_dialogue_service_user,
|
|
|
|
{ "dialogue-service-user", "tcap.dialogue_service_user",
|
|
|
|
FT_INT32, BASE_DEC, VALS(tcap_T_dialogue_service_user_vals), 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.T_dialogue_service_user", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_dialogue_service_provider,
|
|
|
|
{ "dialogue-service-provider", "tcap.dialogue_service_provider",
|
|
|
|
FT_INT32, BASE_DEC, VALS(tcap_T_dialogue_service_provider_vals), 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.T_dialogue_service_provider", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_unidialoguePDU,
|
|
|
|
{ "unidialoguePDU", "tcap.unidialoguePDU",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.AUDT_apdu", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_protocol_version3,
|
|
|
|
{ "protocol-version3", "tcap.protocol_version3",
|
|
|
|
FT_BYTES, BASE_HEX, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.T_protocol_version3", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_unidirectional,
|
|
|
|
{ "unidirectional", "tcap.unidirectional",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.Unidirectional", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_begin,
|
|
|
|
{ "begin", "tcap.begin",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.Begin", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_end,
|
|
|
|
{ "end", "tcap.end",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.End", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_continue,
|
|
|
|
{ "continue", "tcap.continue",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.Continue", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_abort,
|
|
|
|
{ "abort", "tcap.abort",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.Abort", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_ansiunidirectional,
|
|
|
|
{ "ansiunidirectional", "tcap.ansiunidirectional",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.UniTransactionPDU", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_ansiqueryWithPerm,
|
|
|
|
{ "ansiqueryWithPerm", "tcap.ansiqueryWithPerm",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2007-07-27 06:23:45 +00:00
|
|
|
"tcap.T_ansiqueryWithPerm", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_ansiqueryWithoutPerm,
|
|
|
|
{ "ansiqueryWithoutPerm", "tcap.ansiqueryWithoutPerm",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2007-07-27 06:23:45 +00:00
|
|
|
"tcap.T_ansiqueryWithoutPerm", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_ansiresponse,
|
|
|
|
{ "ansiresponse", "tcap.ansiresponse",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2007-07-27 06:23:45 +00:00
|
|
|
"tcap.T_ansiresponse", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_ansiconversationWithPerm,
|
|
|
|
{ "ansiconversationWithPerm", "tcap.ansiconversationWithPerm",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2007-07-27 06:23:45 +00:00
|
|
|
"tcap.T_ansiconversationWithPerm", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_ansiconversationWithoutPerm,
|
|
|
|
{ "ansiconversationWithoutPerm", "tcap.ansiconversationWithoutPerm",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2007-07-27 06:23:45 +00:00
|
|
|
"tcap.T_ansiconversationWithoutPerm", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_ansiabort,
|
|
|
|
{ "ansiabort", "tcap.ansiabort",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.AbortPDU", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_dialoguePortion,
|
|
|
|
{ "dialoguePortion", "tcap.dialoguePortion",
|
2007-12-06 11:23:35 +00:00
|
|
|
FT_BYTES, BASE_HEX, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.DialoguePortion", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_components,
|
|
|
|
{ "components", "tcap.components",
|
2005-08-18 21:36:59 +00:00
|
|
|
FT_UINT32, BASE_DEC, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.ComponentPortion", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_otid,
|
|
|
|
{ "otid", "tcap.otid",
|
|
|
|
FT_BYTES, BASE_HEX, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.OrigTransactionID", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_dtid,
|
|
|
|
{ "dtid", "tcap.dtid",
|
|
|
|
FT_BYTES, BASE_HEX, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.DestTransactionID", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_reason,
|
|
|
|
{ "reason", "tcap.reason",
|
|
|
|
FT_UINT32, BASE_DEC, VALS(tcap_Reason_vals), 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.Reason", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_p_abortCause,
|
|
|
|
{ "p-abortCause", "tcap.p_abortCause",
|
2007-12-06 11:23:35 +00:00
|
|
|
FT_UINT32, BASE_DEC, VALS(tcap_P_AbortCause_U_vals), 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.P_AbortCause", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_u_abortCause,
|
|
|
|
{ "u-abortCause", "tcap.u_abortCause",
|
2007-12-06 11:23:35 +00:00
|
|
|
FT_BYTES, BASE_HEX, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.DialoguePortion", HFILL }},
|
2007-11-07 21:22:25 +00:00
|
|
|
{ &hf_tcap__untag_item,
|
|
|
|
{ "Item", "tcap._untag_item",
|
2005-06-07 05:49:06 +00:00
|
|
|
FT_UINT32, BASE_DEC, VALS(tcap_Component_vals), 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.Component", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_invoke,
|
|
|
|
{ "invoke", "tcap.invoke",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.Invoke", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_returnResultLast,
|
|
|
|
{ "returnResultLast", "tcap.returnResultLast",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.ReturnResult", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_returnError,
|
|
|
|
{ "returnError", "tcap.returnError",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.ReturnError", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_reject,
|
|
|
|
{ "reject", "tcap.reject",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.Reject", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_returnResultNotLast,
|
|
|
|
{ "returnResultNotLast", "tcap.returnResultNotLast",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.ReturnResult", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_invokeID,
|
|
|
|
{ "invokeID", "tcap.invokeID",
|
2005-11-26 03:09:40 +00:00
|
|
|
FT_INT32, BASE_DEC, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.InvokeIdType", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_linkedID,
|
|
|
|
{ "linkedID", "tcap.linkedID",
|
2005-11-26 03:09:40 +00:00
|
|
|
FT_INT32, BASE_DEC, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.InvokeIdType", HFILL }},
|
2005-06-07 20:29:23 +00:00
|
|
|
{ &hf_tcap_opCode,
|
|
|
|
{ "opCode", "tcap.opCode",
|
|
|
|
FT_UINT32, BASE_DEC, VALS(tcap_OPERATION_vals), 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.OPERATION", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_parameter,
|
|
|
|
{ "parameter", "tcap.parameter",
|
2005-06-07 20:29:23 +00:00
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.Parameter", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_resultretres,
|
|
|
|
{ "resultretres", "tcap.resultretres",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.T_resultretres", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_errorCode,
|
|
|
|
{ "errorCode", "tcap.errorCode",
|
|
|
|
FT_UINT32, BASE_DEC, VALS(tcap_ErrorCode_vals), 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.ErrorCode", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_invokeIDRej,
|
|
|
|
{ "invokeIDRej", "tcap.invokeIDRej",
|
|
|
|
FT_UINT32, BASE_DEC, VALS(tcap_T_invokeIDRej_vals), 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.T_invokeIDRej", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_derivable,
|
|
|
|
{ "derivable", "tcap.derivable",
|
2005-11-26 03:09:40 +00:00
|
|
|
FT_INT32, BASE_DEC, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.InvokeIdType", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_not_derivable,
|
|
|
|
{ "not-derivable", "tcap.not_derivable",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.NULL", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_problem,
|
|
|
|
{ "problem", "tcap.problem",
|
|
|
|
FT_UINT32, BASE_DEC, VALS(tcap_T_problem_vals), 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.T_problem", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_generalProblem,
|
|
|
|
{ "generalProblem", "tcap.generalProblem",
|
|
|
|
FT_INT32, BASE_DEC, VALS(tcap_GeneralProblem_vals), 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.GeneralProblem", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_invokeProblem,
|
|
|
|
{ "invokeProblem", "tcap.invokeProblem",
|
|
|
|
FT_INT32, BASE_DEC, VALS(tcap_InvokeProblem_vals), 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.InvokeProblem", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_returnResultProblem,
|
|
|
|
{ "returnResultProblem", "tcap.returnResultProblem",
|
|
|
|
FT_INT32, BASE_DEC, VALS(tcap_ReturnResultProblem_vals), 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.ReturnResultProblem", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_returnErrorProblem,
|
|
|
|
{ "returnErrorProblem", "tcap.returnErrorProblem",
|
|
|
|
FT_INT32, BASE_DEC, VALS(tcap_ReturnErrorProblem_vals), 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.ReturnErrorProblem", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_localValue,
|
|
|
|
{ "localValue", "tcap.localValue",
|
|
|
|
FT_INT32, BASE_DEC, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.INTEGER", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_globalValue,
|
|
|
|
{ "globalValue", "tcap.globalValue",
|
2005-12-08 23:29:21 +00:00
|
|
|
FT_OID, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.OBJECT_IDENTIFIER", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_identifier,
|
|
|
|
{ "identifier", "tcap.identifier",
|
|
|
|
FT_BYTES, BASE_HEX, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.TransactionID", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_dialoguePortionansi,
|
|
|
|
{ "dialoguePortionansi", "tcap.dialoguePortionansi",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.DialoguePortionANSI", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_componentPortion,
|
|
|
|
{ "componentPortion", "tcap.componentPortion",
|
2005-08-18 21:36:59 +00:00
|
|
|
FT_UINT32, BASE_DEC, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.ComponentSequence", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_causeInformation,
|
|
|
|
{ "causeInformation", "tcap.causeInformation",
|
|
|
|
FT_UINT32, BASE_DEC, VALS(tcap_T_causeInformation_vals), 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.T_causeInformation", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_abortCause,
|
|
|
|
{ "abortCause", "tcap.abortCause",
|
2007-12-06 11:23:35 +00:00
|
|
|
FT_INT32, BASE_DEC, VALS(tcap_P_Abort_cause_U_vals), 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.P_Abort_cause", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_userInformation,
|
|
|
|
{ "userInformation", "tcap.userInformation",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.UserInformation", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_version,
|
|
|
|
{ "version", "tcap.version",
|
|
|
|
FT_BYTES, BASE_HEX, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.ProtocolVersion", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_applicationContext,
|
|
|
|
{ "applicationContext", "tcap.applicationContext",
|
|
|
|
FT_UINT32, BASE_DEC, VALS(tcap_T_applicationContext_vals), 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.T_applicationContext", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_integerApplicationId,
|
|
|
|
{ "integerApplicationId", "tcap.integerApplicationId",
|
|
|
|
FT_INT32, BASE_DEC, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.IntegerApplicationContext", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_objectApplicationId,
|
|
|
|
{ "objectApplicationId", "tcap.objectApplicationId",
|
2005-12-08 23:29:21 +00:00
|
|
|
FT_OID, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.ObjectIDApplicationContext", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_securityContext,
|
|
|
|
{ "securityContext", "tcap.securityContext",
|
|
|
|
FT_UINT32, BASE_DEC, VALS(tcap_T_securityContext_vals), 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.T_securityContext", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_integerSecurityId,
|
|
|
|
{ "integerSecurityId", "tcap.integerSecurityId",
|
|
|
|
FT_INT32, BASE_DEC, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.INTEGER", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_objectSecurityId,
|
|
|
|
{ "objectSecurityId", "tcap.objectSecurityId",
|
2005-12-08 23:29:21 +00:00
|
|
|
FT_OID, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.OBJECT_IDENTIFIER", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_confidentiality,
|
|
|
|
{ "confidentiality", "tcap.confidentiality",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.Confidentiality", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_confidentialityId,
|
|
|
|
{ "confidentialityId", "tcap.confidentialityId",
|
|
|
|
FT_UINT32, BASE_DEC, VALS(tcap_T_confidentialityId_vals), 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.T_confidentialityId", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_integerConfidentialityId,
|
|
|
|
{ "integerConfidentialityId", "tcap.integerConfidentialityId",
|
|
|
|
FT_INT32, BASE_DEC, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.INTEGER", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_objectConfidentialityId,
|
|
|
|
{ "objectConfidentialityId", "tcap.objectConfidentialityId",
|
2005-12-08 23:29:21 +00:00
|
|
|
FT_OID, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.OBJECT_IDENTIFIER", HFILL }},
|
2007-11-07 21:22:25 +00:00
|
|
|
{ &hf_tcap__untag_item_01,
|
|
|
|
{ "Item", "tcap._untag_item",
|
2005-06-07 05:49:06 +00:00
|
|
|
FT_UINT32, BASE_DEC, VALS(tcap_ComponentPDU_vals), 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.ComponentPDU", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_invokeLastansi,
|
|
|
|
{ "invokeLastansi", "tcap.invokeLastansi",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.InvokePDU", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_returnResultLastansi,
|
|
|
|
{ "returnResultLastansi", "tcap.returnResultLastansi",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.ReturnResultPDU", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_returnErroransi,
|
|
|
|
{ "returnErroransi", "tcap.returnErroransi",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.ReturnErrorPDU", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_rejectansi,
|
|
|
|
{ "rejectansi", "tcap.rejectansi",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.RejectPDU", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_invokeNotLastansi,
|
|
|
|
{ "invokeNotLastansi", "tcap.invokeNotLastansi",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.InvokePDU", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_returnResultNotLastansi,
|
|
|
|
{ "returnResultNotLastansi", "tcap.returnResultNotLastansi",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.ReturnResultPDU", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_componentIDs,
|
|
|
|
{ "componentIDs", "tcap.componentIDs",
|
|
|
|
FT_BYTES, BASE_HEX, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.OCTET_STRING_SIZE_0_2", HFILL }},
|
2005-06-07 20:29:23 +00:00
|
|
|
{ &hf_tcap_operationCode,
|
|
|
|
{ "operationCode", "tcap.operationCode",
|
|
|
|
FT_UINT32, BASE_DEC, VALS(tcap_OperationCode_vals), 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.OperationCode", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_parameterinv,
|
|
|
|
{ "parameterinv", "tcap.parameterinv",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.ANSIparamch", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_ansiparams,
|
|
|
|
{ "ansiparams", "tcap.ansiparams",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.ANSIParameters", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_ansiparams1,
|
|
|
|
{ "ansiparams1", "tcap.ansiparams1",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.ANSIParameters", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_ansiparams2,
|
|
|
|
{ "ansiparams2", "tcap.ansiparams2",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.ANSIParameters", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_ansiparams3,
|
|
|
|
{ "ansiparams3", "tcap.ansiparams3",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.ANSIParameters", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_ansiparams4,
|
|
|
|
{ "ansiparams4", "tcap.ansiparams4",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.ANSIParameters", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_ansiparams5,
|
|
|
|
{ "ansiparams5", "tcap.ansiparams5",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.ANSIParameters", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_ansiparams6,
|
|
|
|
{ "ansiparams6", "tcap.ansiparams6",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.ANSIParameters", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_ansiparams7,
|
|
|
|
{ "ansiparams7", "tcap.ansiparams7",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.ANSIParameters", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_ansiparams8,
|
|
|
|
{ "ansiparams8", "tcap.ansiparams8",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.ANSIParameters", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_ansiparams9,
|
|
|
|
{ "ansiparams9", "tcap.ansiparams9",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.ANSIParameters", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_ansiparams10,
|
|
|
|
{ "ansiparams10", "tcap.ansiparams10",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.ANSIParameters", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_ansiparams11,
|
|
|
|
{ "ansiparams11", "tcap.ansiparams11",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.ANSIParameters", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_ansiparams12,
|
|
|
|
{ "ansiparams12", "tcap.ansiparams12",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.ANSIParameters", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_ansiparams13,
|
|
|
|
{ "ansiparams13", "tcap.ansiparams13",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.ANSIParameters", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_ansiparams14,
|
|
|
|
{ "ansiparams14", "tcap.ansiparams14",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.ANSIParameters", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_ansiparams15,
|
|
|
|
{ "ansiparams15", "tcap.ansiparams15",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.ANSIParameters", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_ansiparams16,
|
|
|
|
{ "ansiparams16", "tcap.ansiparams16",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.ANSIParameters", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_ansiparams17,
|
|
|
|
{ "ansiparams17", "tcap.ansiparams17",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.ANSIParameters", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_ansiparams18,
|
|
|
|
{ "ansiparams18", "tcap.ansiparams18",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.ANSIParameters", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_ansiparams19,
|
|
|
|
{ "ansiparams19", "tcap.ansiparams19",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.ANSIParameters", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_ansiparams20,
|
|
|
|
{ "ansiparams20", "tcap.ansiparams20",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.ANSIParameters", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_ansiparams21,
|
|
|
|
{ "ansiparams21", "tcap.ansiparams21",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.ANSIParameters", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_componentID,
|
|
|
|
{ "componentID", "tcap.componentID",
|
|
|
|
FT_BYTES, BASE_HEX, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.ComponentID", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_parameterrr,
|
|
|
|
{ "parameterrr", "tcap.parameterrr",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.ANSIparamch", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_parameterre,
|
|
|
|
{ "parameterre", "tcap.parameterre",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.ANSIparamch", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_rejectProblem,
|
|
|
|
{ "rejectProblem", "tcap.rejectProblem",
|
|
|
|
FT_INT32, BASE_DEC, VALS(tcap_ProblemPDU_vals), 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.ProblemPDU", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_parameterrj,
|
|
|
|
{ "parameterrj", "tcap.parameterrj",
|
|
|
|
FT_NONE, BASE_NONE, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.ANSIparamch", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_national,
|
|
|
|
{ "national", "tcap.national",
|
2005-11-26 03:09:40 +00:00
|
|
|
FT_INT32, BASE_DEC, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.INTEGER_M32768_32767", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_private,
|
|
|
|
{ "private", "tcap.private",
|
|
|
|
FT_INT32, BASE_DEC, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.INTEGER", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_nationaler,
|
|
|
|
{ "nationaler", "tcap.nationaler",
|
2005-11-26 03:09:40 +00:00
|
|
|
FT_INT32, BASE_DEC, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.INTEGER_M32768_32767", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_privateer,
|
|
|
|
{ "privateer", "tcap.privateer",
|
|
|
|
FT_INT32, BASE_DEC, NULL, 0,
|
2006-08-16 05:58:39 +00:00
|
|
|
"tcap.INTEGER", HFILL }},
|
2005-06-07 05:49:06 +00:00
|
|
|
{ &hf_tcap_T_protocol_versionrq_version1,
|
|
|
|
{ "version1", "tcap.version1",
|
|
|
|
FT_BOOLEAN, 8, NULL, 0x80,
|
|
|
|
"", HFILL }},
|
|
|
|
{ &hf_tcap_T_protocol_versionre_version1,
|
|
|
|
{ "version1", "tcap.version1",
|
|
|
|
FT_BOOLEAN, 8, NULL, 0x80,
|
|
|
|
"", HFILL }},
|
|
|
|
{ &hf_tcap_T_protocol_version3_version1,
|
|
|
|
{ "version1", "tcap.version1",
|
|
|
|
FT_BOOLEAN, 8, NULL, 0x80,
|
|
|
|
"", HFILL }},
|
|
|
|
|
|
|
|
/*--- End of included file: packet-tcap-hfarr.c ---*/
|
2008-04-16 14:28:22 +00:00
|
|
|
#line 324 "packet-tcap-template.c"
|
2003-10-16 18:15:54 +00:00
|
|
|
};
|
2003-10-02 06:13:29 +00:00
|
|
|
|
|
|
|
/* Setup protocol subtree array */
|
2003-10-16 18:15:54 +00:00
|
|
|
static gint *ett[] = {
|
|
|
|
&ett_tcap,
|
|
|
|
&ett_param,
|
2005-08-18 21:36:59 +00:00
|
|
|
&ett_otid,
|
|
|
|
&ett_dtid,
|
From Florent Drouin:
Here are some patches and a new module to introduce the notion of Tcap context for a Tcap transaction. For each Tcap transaction, several parameters, like session identifier, start time or OID, will be saved in a hash table, to keep these informations available for the next messages. This context is then given to the upper layer, and can be used, for example, to generate transaction-associated statistics.
Moreover, the Upper protocol, detected in the Begin of the TCAP transaction ( according to the OID ), is saved in the context, and will be reused for the next messages of the transaction. This help the decoding of SS7 messages, without any SSN configuration in the "wireshark preferences".
You will have too, the possibility to apply a filter to see only the messages related to a TCAP transaction. (tcap.srt.session_id=XXX)
To enable the use of the Tcap context, you have 2 new parameters in the preferences,
- SRT, enable search for a Tcap context for any TCAP messages
- persistentSRT, keep the Tcap context, even after the transaction has been closed. This is mandatory with Wireshark, to have a clean display of the stats.
There is 2 new timers in the preferences for the statistics, to tune the retransmission timeout, and messages lost timeout.
svn path=/trunk/; revision=19341
2006-09-27 20:06:06 +00:00
|
|
|
&ett_tcap_stat,
|
2005-06-07 05:49:06 +00:00
|
|
|
|
|
|
|
/*--- Included file: packet-tcap-ettarr.c ---*/
|
2005-12-08 23:29:21 +00:00
|
|
|
#line 1 "packet-tcap-ettarr.c"
|
2005-06-07 05:49:06 +00:00
|
|
|
&ett_tcap_DialoguePDU,
|
2007-11-07 21:22:25 +00:00
|
|
|
&ett_tcap_ExternalPDU_U,
|
|
|
|
&ett_tcap_UserInformation_U,
|
|
|
|
&ett_tcap_AARQ_apdu_U,
|
2005-06-07 05:49:06 +00:00
|
|
|
&ett_tcap_T_protocol_versionrq,
|
2007-11-07 21:22:25 +00:00
|
|
|
&ett_tcap_AARE_apdu_U,
|
2005-06-07 05:49:06 +00:00
|
|
|
&ett_tcap_T_protocol_versionre,
|
2007-11-07 21:22:25 +00:00
|
|
|
&ett_tcap_ABRT_apdu_U,
|
2005-06-07 05:49:06 +00:00
|
|
|
&ett_tcap_Associate_source_diagnostic,
|
|
|
|
&ett_tcap_UniDialoguePDU,
|
2007-11-07 21:22:25 +00:00
|
|
|
&ett_tcap_AUDT_apdu_U,
|
2005-06-07 05:49:06 +00:00
|
|
|
&ett_tcap_T_protocol_version3,
|
2007-04-23 06:24:39 +00:00
|
|
|
&ett_tcap_TCMessage,
|
2005-06-07 05:49:06 +00:00
|
|
|
&ett_tcap_Unidirectional,
|
|
|
|
&ett_tcap_Begin,
|
|
|
|
&ett_tcap_End,
|
|
|
|
&ett_tcap_Continue,
|
|
|
|
&ett_tcap_Abort,
|
|
|
|
&ett_tcap_Reason,
|
2007-11-07 21:22:25 +00:00
|
|
|
&ett_tcap_SEQUENCE_SIZE_1_MAX_OF_Component,
|
2005-06-07 05:49:06 +00:00
|
|
|
&ett_tcap_Component,
|
|
|
|
&ett_tcap_Invoke,
|
|
|
|
&ett_tcap_ReturnResult,
|
|
|
|
&ett_tcap_T_resultretres,
|
|
|
|
&ett_tcap_ReturnError,
|
|
|
|
&ett_tcap_Reject,
|
|
|
|
&ett_tcap_T_invokeIDRej,
|
|
|
|
&ett_tcap_T_problem,
|
|
|
|
&ett_tcap_OPERATION,
|
|
|
|
&ett_tcap_ERROR,
|
|
|
|
&ett_tcap_UniTransactionPDU,
|
|
|
|
&ett_tcap_TransactionPDU,
|
|
|
|
&ett_tcap_AbortPDU,
|
|
|
|
&ett_tcap_T_causeInformation,
|
2007-11-07 21:22:25 +00:00
|
|
|
&ett_tcap_DialoguePortionANSI_U,
|
2005-06-07 05:49:06 +00:00
|
|
|
&ett_tcap_T_applicationContext,
|
|
|
|
&ett_tcap_T_securityContext,
|
|
|
|
&ett_tcap_Confidentiality,
|
|
|
|
&ett_tcap_T_confidentialityId,
|
2007-11-07 21:22:25 +00:00
|
|
|
&ett_tcap_SEQUENCE_OF_ComponentPDU,
|
2005-06-07 05:49:06 +00:00
|
|
|
&ett_tcap_ComponentPDU,
|
|
|
|
&ett_tcap_InvokePDU,
|
|
|
|
&ett_tcap_ANSIparamch,
|
|
|
|
&ett_tcap_ReturnResultPDU,
|
|
|
|
&ett_tcap_ReturnErrorPDU,
|
|
|
|
&ett_tcap_RejectPDU,
|
|
|
|
&ett_tcap_OperationCode,
|
|
|
|
&ett_tcap_ErrorCode,
|
|
|
|
|
|
|
|
/*--- End of included file: packet-tcap-ettarr.c ---*/
|
2008-04-16 14:28:22 +00:00
|
|
|
#line 334 "packet-tcap-template.c"
|
2003-10-16 18:15:54 +00:00
|
|
|
};
|
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
/*static enum_val_t tcap_options[] = {
|
2004-05-24 02:25:21 +00:00
|
|
|
{ "itu", "ITU", ITU_TCAP_STANDARD },
|
|
|
|
{ "ansi", "ANSI", ANSI_TCAP_STANDARD },
|
|
|
|
{ NULL, NULL, 0 }
|
2005-06-07 05:49:06 +00:00
|
|
|
};*/
|
2003-10-16 18:15:54 +00:00
|
|
|
|
|
|
|
module_t *tcap_module;
|
2003-10-02 06:13:29 +00:00
|
|
|
|
|
|
|
/* Register the protocol name and description */
|
2005-06-07 05:49:06 +00:00
|
|
|
proto_tcap = proto_register_protocol(PNAME, PSNAME, PFNAME);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
|
|
|
/* Required function calls to register the header fields and subtrees used */
|
2003-10-16 18:15:54 +00:00
|
|
|
proto_register_field_array(proto_tcap, hf, array_length(hf));
|
|
|
|
proto_register_subtree_array(ett, array_length(ett));
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2008-04-16 14:28:22 +00:00
|
|
|
tcap_module = prefs_register_protocol(proto_tcap, NULL);
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-16 07:46:03 +00:00
|
|
|
#if 0
|
|
|
|
prefs_register_enum_preference(tcap_module, "standard", "ITU TCAP standard",
|
2005-06-07 05:49:06 +00:00
|
|
|
"The SS7 standard used in ITU TCAP packets",
|
2005-06-16 07:46:03 +00:00
|
|
|
&tcap_standard, tcap_options, FALSE);
|
|
|
|
#else
|
|
|
|
prefs_register_obsolete_preference(tcap_module, "standard");
|
|
|
|
#endif
|
2003-10-02 06:13:29 +00:00
|
|
|
|
2005-06-16 07:46:03 +00:00
|
|
|
#if 0
|
|
|
|
prefs_register_bool_preference(tcap_module, "lock_info_col", "Lock Info column",
|
2003-10-16 18:15:54 +00:00
|
|
|
"Always show TCAP in Info column",
|
|
|
|
&lock_info_col);
|
2005-06-16 07:46:03 +00:00
|
|
|
#else
|
|
|
|
prefs_register_obsolete_preference(tcap_module, "lock_info_col");
|
|
|
|
#endif
|
|
|
|
|
2004-10-14 23:45:09 +00:00
|
|
|
/* Set default SSNs */
|
2005-12-17 16:55:45 +00:00
|
|
|
range_convert_str(&global_ssn_range, "", MAX_SSN);
|
2004-10-16 23:32:24 +00:00
|
|
|
ssn_range = range_empty();
|
2004-10-14 23:45:09 +00:00
|
|
|
|
|
|
|
prefs_register_range_preference(tcap_module, "ssn", "SCCP SSNs",
|
|
|
|
"SCCP (and SUA) SSNs to decode as TCAP",
|
|
|
|
&global_ssn_range, MAX_SSN);
|
From Florent Drouin:
Here are some patches and a new module to introduce the notion of Tcap context for a Tcap transaction. For each Tcap transaction, several parameters, like session identifier, start time or OID, will be saved in a hash table, to keep these informations available for the next messages. This context is then given to the upper layer, and can be used, for example, to generate transaction-associated statistics.
Moreover, the Upper protocol, detected in the Begin of the TCAP transaction ( according to the OID ), is saved in the context, and will be reused for the next messages of the transaction. This help the decoding of SS7 messages, without any SSN configuration in the "wireshark preferences".
You will have too, the possibility to apply a filter to see only the messages related to a TCAP transaction. (tcap.srt.session_id=XXX)
To enable the use of the Tcap context, you have 2 new parameters in the preferences,
- SRT, enable search for a Tcap context for any TCAP messages
- persistentSRT, keep the Tcap context, even after the transaction has been closed. This is mandatory with Wireshark, to have a clean display of the stats.
There is 2 new timers in the preferences for the statistics, to tune the retransmission timeout, and messages lost timeout.
svn path=/trunk/; revision=19341
2006-09-27 20:06:06 +00:00
|
|
|
|
|
|
|
prefs_register_bool_preference(tcap_module, "srt",
|
|
|
|
"Service Response Time Analyse",
|
|
|
|
"Activate the analyse for Response Time",
|
|
|
|
>cap_HandleSRT);
|
|
|
|
|
|
|
|
prefs_register_bool_preference(tcap_module, "persistentsrt",
|
|
|
|
"Persistent stats for SRT",
|
|
|
|
"Statistics for Response Time",
|
|
|
|
>cap_PersistentSRT);
|
2007-04-23 10:45:00 +00:00
|
|
|
|
From Florent Drouin:
Here are some patches and a new module to introduce the notion of Tcap context for a Tcap transaction. For each Tcap transaction, several parameters, like session identifier, start time or OID, will be saved in a hash table, to keep these informations available for the next messages. This context is then given to the upper layer, and can be used, for example, to generate transaction-associated statistics.
Moreover, the Upper protocol, detected in the Begin of the TCAP transaction ( according to the OID ), is saved in the context, and will be reused for the next messages of the transaction. This help the decoding of SS7 messages, without any SSN configuration in the "wireshark preferences".
You will have too, the possibility to apply a filter to see only the messages related to a TCAP transaction. (tcap.srt.session_id=XXX)
To enable the use of the Tcap context, you have 2 new parameters in the preferences,
- SRT, enable search for a Tcap context for any TCAP messages
- persistentSRT, keep the Tcap context, even after the transaction has been closed. This is mandatory with Wireshark, to have a clean display of the stats.
There is 2 new timers in the preferences for the statistics, to tune the retransmission timeout, and messages lost timeout.
svn path=/trunk/; revision=19341
2006-09-27 20:06:06 +00:00
|
|
|
prefs_register_uint_preference(tcap_module, "repetitiontimeout",
|
|
|
|
"Repetition timeout",
|
|
|
|
"Maximal delay for message repetion",
|
|
|
|
10, >cap_RepetitionTimeout);
|
|
|
|
|
|
|
|
prefs_register_uint_preference(tcap_module, "losttimeout",
|
|
|
|
"lost timeout",
|
|
|
|
"Maximal delay for message lost",
|
|
|
|
10, >cap_LostTimeout);
|
2007-04-23 10:45:00 +00:00
|
|
|
|
2005-12-17 16:55:45 +00:00
|
|
|
ansi_sub_dissectors = g_hash_table_new(g_direct_hash,g_direct_equal);
|
|
|
|
itu_sub_dissectors = g_hash_table_new(g_direct_hash,g_direct_equal);
|
2005-06-23 22:17:03 +00:00
|
|
|
|
|
|
|
/* 'globally' register dissector */
|
|
|
|
register_dissector("tcap", dissect_tcap, proto_tcap);
|
|
|
|
|
2005-12-17 16:55:45 +00:00
|
|
|
tcap_handle = create_dissector_handle(dissect_tcap, proto_tcap);
|
2005-06-07 05:49:06 +00:00
|
|
|
|
2005-12-17 16:55:45 +00:00
|
|
|
register_init_routine(&init_tcap);
|
|
|
|
}
|
2005-06-07 05:49:06 +00:00
|
|
|
|
2004-10-15 05:54:33 +00:00
|
|
|
|
|
|
|
static void range_delete_callback(guint32 ssn)
|
|
|
|
{
|
2005-12-17 16:55:45 +00:00
|
|
|
if ( ssn && !get_ansi_tcap_subdissector(ssn) && !get_itu_tcap_subdissector(ssn) ) {
|
|
|
|
dissector_delete("sccp.ssn", ssn, tcap_handle);
|
2004-10-15 05:54:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static void range_add_callback(guint32 ssn)
|
|
|
|
{
|
2005-12-17 16:55:45 +00:00
|
|
|
if (ssn && !get_ansi_tcap_subdissector(ssn) && !get_itu_tcap_subdissector(ssn) ) {
|
|
|
|
dissector_add("sccp.ssn", ssn, tcap_handle);
|
2004-10-15 05:54:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2004-10-14 23:45:09 +00:00
|
|
|
|
2005-12-17 16:55:45 +00:00
|
|
|
static void init_tcap(void) {
|
|
|
|
if (ssn_range) {
|
|
|
|
range_foreach(ssn_range, range_delete_callback);
|
|
|
|
g_free(ssn_range);
|
2004-10-14 23:45:09 +00:00
|
|
|
}
|
2007-04-23 10:45:00 +00:00
|
|
|
|
2004-10-17 00:48:37 +00:00
|
|
|
ssn_range = range_copy(global_ssn_range);
|
2004-10-16 23:32:24 +00:00
|
|
|
range_foreach(ssn_range, range_add_callback);
|
From Florent Drouin:
Here are some patches and a new module to introduce the notion of Tcap context for a Tcap transaction. For each Tcap transaction, several parameters, like session identifier, start time or OID, will be saved in a hash table, to keep these informations available for the next messages. This context is then given to the upper layer, and can be used, for example, to generate transaction-associated statistics.
Moreover, the Upper protocol, detected in the Begin of the TCAP transaction ( according to the OID ), is saved in the context, and will be reused for the next messages of the transaction. This help the decoding of SS7 messages, without any SSN configuration in the "wireshark preferences".
You will have too, the possibility to apply a filter to see only the messages related to a TCAP transaction. (tcap.srt.session_id=XXX)
To enable the use of the Tcap context, you have 2 new parameters in the preferences,
- SRT, enable search for a Tcap context for any TCAP messages
- persistentSRT, keep the Tcap context, even after the transaction has been closed. This is mandatory with Wireshark, to have a clean display of the stats.
There is 2 new timers in the preferences for the statistics, to tune the retransmission timeout, and messages lost timeout.
svn path=/trunk/; revision=19341
2006-09-27 20:06:06 +00:00
|
|
|
tcapsrt_init_routine();
|
2003-10-02 06:13:29 +00:00
|
|
|
}
|
2005-06-07 05:49:06 +00:00
|
|
|
|
|
|
|
static int
|
2007-05-15 05:49:43 +00:00
|
|
|
dissect_tcap_param(asn1_ctx_t *actx, proto_tree *tree, tvbuff_t *tvb, int offset)
|
2005-06-07 05:49:06 +00:00
|
|
|
{
|
2005-06-16 07:46:03 +00:00
|
|
|
gint tag_offset, saved_offset, len_offset;
|
2005-06-07 05:49:06 +00:00
|
|
|
tvbuff_t *next_tvb;
|
|
|
|
proto_tree *subtree;
|
2005-06-16 07:46:03 +00:00
|
|
|
proto_item *pi;
|
2005-07-12 01:01:19 +00:00
|
|
|
gint8 class;
|
2005-06-16 07:46:03 +00:00
|
|
|
gboolean pc;
|
2005-07-12 01:01:19 +00:00
|
|
|
gint32 tag;
|
2005-06-16 07:46:03 +00:00
|
|
|
guint32 len;
|
2007-10-11 22:49:52 +00:00
|
|
|
guint32 tag_length;
|
|
|
|
guint32 len_length;
|
2005-07-12 01:01:19 +00:00
|
|
|
gboolean ind_field;
|
2007-04-23 10:45:00 +00:00
|
|
|
|
2005-06-16 07:46:03 +00:00
|
|
|
while (tvb_reported_length_remaining(tvb, offset) > 0)
|
2005-06-07 05:49:06 +00:00
|
|
|
{
|
2005-06-16 07:46:03 +00:00
|
|
|
saved_offset = offset;
|
2007-04-23 10:45:00 +00:00
|
|
|
|
2005-06-16 07:46:03 +00:00
|
|
|
offset = get_ber_identifier(tvb, offset, &class, &pc, &tag);
|
|
|
|
tag_offset = offset;
|
2007-08-24 07:12:04 +00:00
|
|
|
offset = get_ber_length(tvb, offset, &len, &ind_field);
|
2005-06-07 05:49:06 +00:00
|
|
|
len_offset = offset;
|
|
|
|
|
2007-10-11 22:49:52 +00:00
|
|
|
tag_length = tag_offset - saved_offset;
|
|
|
|
len_length = len_offset - tag_offset;
|
|
|
|
|
2005-06-07 05:49:06 +00:00
|
|
|
if (pc)
|
|
|
|
{
|
2007-10-11 22:49:52 +00:00
|
|
|
pi = proto_tree_add_text(tree, tvb, saved_offset,
|
|
|
|
len + (len_offset - saved_offset),
|
|
|
|
"CONSTRUCTOR");
|
2005-06-07 05:49:06 +00:00
|
|
|
subtree = proto_item_add_subtree(pi, ett_param);
|
|
|
|
proto_tree_add_uint_format(subtree, hf_tcap_tag, tvb,
|
2007-10-11 22:49:52 +00:00
|
|
|
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);
|
2007-04-23 10:45:00 +00:00
|
|
|
}
|
2007-10-11 22:49:52 +00:00
|
|
|
|
|
|
|
if (ind_field)
|
|
|
|
proto_tree_add_text(subtree, tvb, offset+len-2, 2, "CONSTRUCTOR EOC");
|
|
|
|
|
2005-06-16 07:46:03 +00:00
|
|
|
offset += len;
|
2005-06-07 05:49:06 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2007-10-11 22:49:52 +00:00
|
|
|
pi = proto_tree_add_text(tree, tvb, saved_offset,
|
|
|
|
len + (len_offset - saved_offset),
|
|
|
|
"Parameter (0x%.2x)", tag);
|
2005-06-07 05:49:06 +00:00
|
|
|
|
2005-06-16 07:46:03 +00:00
|
|
|
subtree = proto_item_add_subtree(pi, ett_param);
|
2005-06-07 05:49:06 +00:00
|
|
|
|
2007-10-11 22:49:52 +00:00
|
|
|
proto_tree_add_uint(subtree, hf_tcap_tag, tvb, saved_offset,
|
|
|
|
tag_length, tag);
|
2005-06-07 05:49:06 +00:00
|
|
|
|
2005-06-16 07:46:03 +00:00
|
|
|
proto_tree_add_uint(subtree, hf_tcap_length, tvb,
|
2007-10-11 22:49:52 +00:00
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
2005-06-16 07:46:03 +00:00
|
|
|
offset += len;
|
2005-06-07 05:49:06 +00:00
|
|
|
}
|
|
|
|
}
|
2005-06-16 07:46:03 +00:00
|
|
|
return offset;
|
|
|
|
}
|
From Florent Drouin:
Here are some patches and a new module to introduce the notion of Tcap context for a Tcap transaction. For each Tcap transaction, several parameters, like session identifier, start time or OID, will be saved in a hash table, to keep these informations available for the next messages. This context is then given to the upper layer, and can be used, for example, to generate transaction-associated statistics.
Moreover, the Upper protocol, detected in the Begin of the TCAP transaction ( according to the OID ), is saved in the context, and will be reused for the next messages of the transaction. This help the decoding of SS7 messages, without any SSN configuration in the "wireshark preferences".
You will have too, the possibility to apply a filter to see only the messages related to a TCAP transaction. (tcap.srt.session_id=XXX)
To enable the use of the Tcap context, you have 2 new parameters in the preferences,
- SRT, enable search for a Tcap context for any TCAP messages
- persistentSRT, keep the Tcap context, even after the transaction has been closed. This is mandatory with Wireshark, to have a clean display of the stats.
There is 2 new timers in the preferences for the statistics, to tune the retransmission timeout, and messages lost timeout.
svn path=/trunk/; revision=19341
2006-09-27 20:06:06 +00:00
|
|
|
|
|
|
|
static void raz_tcap_private(struct tcap_private_t * p_tcap_private)
|
2007-04-23 10:45:00 +00:00
|
|
|
{
|
From Florent Drouin:
Here are some patches and a new module to introduce the notion of Tcap context for a Tcap transaction. For each Tcap transaction, several parameters, like session identifier, start time or OID, will be saved in a hash table, to keep these informations available for the next messages. This context is then given to the upper layer, and can be used, for example, to generate transaction-associated statistics.
Moreover, the Upper protocol, detected in the Begin of the TCAP transaction ( according to the OID ), is saved in the context, and will be reused for the next messages of the transaction. This help the decoding of SS7 messages, without any SSN configuration in the "wireshark preferences".
You will have too, the possibility to apply a filter to see only the messages related to a TCAP transaction. (tcap.srt.session_id=XXX)
To enable the use of the Tcap context, you have 2 new parameters in the preferences,
- SRT, enable search for a Tcap context for any TCAP messages
- persistentSRT, keep the Tcap context, even after the transaction has been closed. This is mandatory with Wireshark, to have a clean display of the stats.
There is 2 new timers in the preferences for the statistics, to tune the retransmission timeout, and messages lost timeout.
svn path=/trunk/; revision=19341
2006-09-27 20:06:06 +00:00
|
|
|
memset(p_tcap_private,0,sizeof(struct tcap_private_t) );
|
|
|
|
}
|
|
|
|
|
2007-07-27 19:24:40 +00:00
|
|
|
/*
|
|
|
|
* Call ITU Subdissector to decode the Tcap Component
|
|
|
|
*/
|
From Florent Drouin:
Here are some patches and a new module to introduce the notion of Tcap context for a Tcap transaction. For each Tcap transaction, several parameters, like session identifier, start time or OID, will be saved in a hash table, to keep these informations available for the next messages. This context is then given to the upper layer, and can be used, for example, to generate transaction-associated statistics.
Moreover, the Upper protocol, detected in the Begin of the TCAP transaction ( according to the OID ), is saved in the context, and will be reused for the next messages of the transaction. This help the decoding of SS7 messages, without any SSN configuration in the "wireshark preferences".
You will have too, the possibility to apply a filter to see only the messages related to a TCAP transaction. (tcap.srt.session_id=XXX)
To enable the use of the Tcap context, you have 2 new parameters in the preferences,
- SRT, enable search for a Tcap context for any TCAP messages
- persistentSRT, keep the Tcap context, even after the transaction has been closed. This is mandatory with Wireshark, to have a clean display of the stats.
There is 2 new timers in the preferences for the statistics, to tune the retransmission timeout, and messages lost timeout.
svn path=/trunk/; revision=19341
2006-09-27 20:06:06 +00:00
|
|
|
static int
|
2007-07-30 17:10:20 +00:00
|
|
|
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_)
|
From Florent Drouin:
Here are some patches and a new module to introduce the notion of Tcap context for a Tcap transaction. For each Tcap transaction, several parameters, like session identifier, start time or OID, will be saved in a hash table, to keep these informations available for the next messages. This context is then given to the upper layer, and can be used, for example, to generate transaction-associated statistics.
Moreover, the Upper protocol, detected in the Begin of the TCAP transaction ( according to the OID ), is saved in the context, and will be reused for the next messages of the transaction. This help the decoding of SS7 messages, without any SSN configuration in the "wireshark preferences".
You will have too, the possibility to apply a filter to see only the messages related to a TCAP transaction. (tcap.srt.session_id=XXX)
To enable the use of the Tcap context, you have 2 new parameters in the preferences,
- SRT, enable search for a Tcap context for any TCAP messages
- persistentSRT, keep the Tcap context, even after the transaction has been closed. This is mandatory with Wireshark, to have a clean display of the stats.
There is 2 new timers in the preferences for the statistics, to tune the retransmission timeout, and messages lost timeout.
svn path=/trunk/; revision=19341
2006-09-27 20:06:06 +00:00
|
|
|
{
|
2007-07-27 19:24:40 +00:00
|
|
|
dissector_handle_t subdissector_handle=NULL;
|
From Florent Drouin:
Here are some patches and a new module to introduce the notion of Tcap context for a Tcap transaction. For each Tcap transaction, several parameters, like session identifier, start time or OID, will be saved in a hash table, to keep these informations available for the next messages. This context is then given to the upper layer, and can be used, for example, to generate transaction-associated statistics.
Moreover, the Upper protocol, detected in the Begin of the TCAP transaction ( according to the OID ), is saved in the context, and will be reused for the next messages of the transaction. This help the decoding of SS7 messages, without any SSN configuration in the "wireshark preferences".
You will have too, the possibility to apply a filter to see only the messages related to a TCAP transaction. (tcap.srt.session_id=XXX)
To enable the use of the Tcap context, you have 2 new parameters in the preferences,
- SRT, enable search for a Tcap context for any TCAP messages
- persistentSRT, keep the Tcap context, even after the transaction has been closed. This is mandatory with Wireshark, to have a clean display of the stats.
There is 2 new timers in the preferences for the statistics, to tune the retransmission timeout, and messages lost timeout.
svn path=/trunk/; revision=19341
2006-09-27 20:06:06 +00:00
|
|
|
gboolean is_subdissector=FALSE;
|
|
|
|
struct tcaphash_context_t * p_tcap_context=NULL;
|
|
|
|
|
2007-04-23 10:45:00 +00:00
|
|
|
/*
|
From Florent Drouin:
Here are some patches and a new module to introduce the notion of Tcap context for a Tcap transaction. For each Tcap transaction, several parameters, like session identifier, start time or OID, will be saved in a hash table, to keep these informations available for the next messages. This context is then given to the upper layer, and can be used, for example, to generate transaction-associated statistics.
Moreover, the Upper protocol, detected in the Begin of the TCAP transaction ( according to the OID ), is saved in the context, and will be reused for the next messages of the transaction. This help the decoding of SS7 messages, without any SSN configuration in the "wireshark preferences".
You will have too, the possibility to apply a filter to see only the messages related to a TCAP transaction. (tcap.srt.session_id=XXX)
To enable the use of the Tcap context, you have 2 new parameters in the preferences,
- SRT, enable search for a Tcap context for any TCAP messages
- persistentSRT, keep the Tcap context, even after the transaction has been closed. This is mandatory with Wireshark, to have a clean display of the stats.
There is 2 new timers in the preferences for the statistics, to tune the retransmission timeout, and messages lost timeout.
svn path=/trunk/; revision=19341
2006-09-27 20:06:06 +00:00
|
|
|
* 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");
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Handle The TCAP Service Response Time
|
|
|
|
*/
|
|
|
|
if ( gtcap_HandleSRT ) {
|
2007-04-23 20:20:46 +00:00
|
|
|
if (!tcap_subdissector_used) {
|
2007-07-27 19:24:40 +00:00
|
|
|
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;
|
2007-04-23 20:20:46 +00:00
|
|
|
}else{
|
|
|
|
/* Take the last TCAP context */
|
|
|
|
p_tcap_context = gp_tcap_context;
|
|
|
|
tcap_private.context=p_tcap_context;
|
|
|
|
}
|
From Florent Drouin:
Here are some patches and a new module to introduce the notion of Tcap context for a Tcap transaction. For each Tcap transaction, several parameters, like session identifier, start time or OID, will be saved in a hash table, to keep these informations available for the next messages. This context is then given to the upper layer, and can be used, for example, to generate transaction-associated statistics.
Moreover, the Upper protocol, detected in the Begin of the TCAP transaction ( according to the OID ), is saved in the context, and will be reused for the next messages of the transaction. This help the decoding of SS7 messages, without any SSN configuration in the "wireshark preferences".
You will have too, the possibility to apply a filter to see only the messages related to a TCAP transaction. (tcap.srt.session_id=XXX)
To enable the use of the Tcap context, you have 2 new parameters in the preferences,
- SRT, enable search for a Tcap context for any TCAP messages
- persistentSRT, keep the Tcap context, even after the transaction has been closed. This is mandatory with Wireshark, to have a clean display of the stats.
There is 2 new timers in the preferences for the statistics, to tune the retransmission timeout, and messages lost timeout.
svn path=/trunk/; revision=19341
2006-09-27 20:06:06 +00:00
|
|
|
}
|
|
|
|
if (p_tcap_context) {
|
2007-04-23 20:20:46 +00:00
|
|
|
if (cur_oid) {
|
|
|
|
if (p_tcap_context->oid_present) {
|
|
|
|
/* 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) {
|
2007-07-27 19:24:40 +00:00
|
|
|
/* ACN, changed, Fallback to lower version
|
|
|
|
* and update the subdissector (purely formal)
|
2007-04-23 20:20:46 +00:00
|
|
|
*/
|
2008-03-01 17:23:39 +00:00
|
|
|
g_strlcpy(p_tcap_context->oid,cur_oid, LENGTH_OID);
|
2007-04-23 20:20:46 +00:00
|
|
|
if ( (subdissector_handle = dissector_get_string_handle(ber_oid_dissector_table, cur_oid)) ) {
|
|
|
|
p_tcap_context->subdissector_handle=subdissector_handle;
|
2007-07-27 19:24:40 +00:00
|
|
|
p_tcap_context->subdissector_present=TRUE;
|
2007-04-23 20:20:46 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
/* We do not have the OID in the TCAP context, so store it */
|
2008-03-01 17:23:39 +00:00
|
|
|
g_strlcpy(p_tcap_context->oid,cur_oid, LENGTH_OID);
|
2007-07-27 19:24:40 +00:00
|
|
|
p_tcap_context->oid_present=TRUE;
|
|
|
|
/* Try to find a subdissector according to OID */
|
2007-04-23 20:20:46 +00:00
|
|
|
if ( (subdissector_handle
|
|
|
|
= dissector_get_string_handle(ber_oid_dissector_table, cur_oid)) ) {
|
|
|
|
p_tcap_context->subdissector_handle=subdissector_handle;
|
2007-07-27 19:24:40 +00:00
|
|
|
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;
|
|
|
|
}
|
2007-04-23 20:20:46 +00:00
|
|
|
}
|
|
|
|
} /* context OID */
|
|
|
|
} else {
|
|
|
|
/* Copy the OID from the TCAP context to the current oid */
|
|
|
|
if (p_tcap_context->oid_present) {
|
|
|
|
tcap_private.oid= (void*) p_tcap_context->oid;
|
|
|
|
tcap_private.acv=TRUE;
|
|
|
|
}
|
|
|
|
} /* no OID */
|
From Florent Drouin:
Here are some patches and a new module to introduce the notion of Tcap context for a Tcap transaction. For each Tcap transaction, several parameters, like session identifier, start time or OID, will be saved in a hash table, to keep these informations available for the next messages. This context is then given to the upper layer, and can be used, for example, to generate transaction-associated statistics.
Moreover, the Upper protocol, detected in the Begin of the TCAP transaction ( according to the OID ), is saved in the context, and will be reused for the next messages of the transaction. This help the decoding of SS7 messages, without any SSN configuration in the "wireshark preferences".
You will have too, the possibility to apply a filter to see only the messages related to a TCAP transaction. (tcap.srt.session_id=XXX)
To enable the use of the Tcap context, you have 2 new parameters in the preferences,
- SRT, enable search for a Tcap context for any TCAP messages
- persistentSRT, keep the Tcap context, even after the transaction has been closed. This is mandatory with Wireshark, to have a clean display of the stats.
There is 2 new timers in the preferences for the statistics, to tune the retransmission timeout, and messages lost timeout.
svn path=/trunk/; revision=19341
2006-09-27 20:06:06 +00:00
|
|
|
} /* no TCAP context */
|
2007-04-23 10:45:00 +00:00
|
|
|
|
2007-04-23 20:20:46 +00:00
|
|
|
|
2007-04-23 10:45:00 +00:00
|
|
|
if ( p_tcap_context
|
2007-07-27 19:24:40 +00:00
|
|
|
&& p_tcap_context->subdissector_present) {
|
From Florent Drouin:
Here are some patches and a new module to introduce the notion of Tcap context for a Tcap transaction. For each Tcap transaction, several parameters, like session identifier, start time or OID, will be saved in a hash table, to keep these informations available for the next messages. This context is then given to the upper layer, and can be used, for example, to generate transaction-associated statistics.
Moreover, the Upper protocol, detected in the Begin of the TCAP transaction ( according to the OID ), is saved in the context, and will be reused for the next messages of the transaction. This help the decoding of SS7 messages, without any SSN configuration in the "wireshark preferences".
You will have too, the possibility to apply a filter to see only the messages related to a TCAP transaction. (tcap.srt.session_id=XXX)
To enable the use of the Tcap context, you have 2 new parameters in the preferences,
- SRT, enable search for a Tcap context for any TCAP messages
- persistentSRT, keep the Tcap context, even after the transaction has been closed. This is mandatory with Wireshark, to have a clean display of the stats.
There is 2 new timers in the preferences for the statistics, to tune the retransmission timeout, and messages lost timeout.
svn path=/trunk/; revision=19341
2006-09-27 20:06:06 +00:00
|
|
|
/* Take the subdissector from the context */
|
|
|
|
subdissector_handle=p_tcap_context->subdissector_handle;
|
|
|
|
is_subdissector=TRUE;
|
|
|
|
}
|
2007-04-03 19:08:00 +00:00
|
|
|
|
|
|
|
/* Have SccpUsersTable protocol taking precedence over sccp.ssn table */
|
|
|
|
if (!is_subdissector && requested_subdissector_handle) {
|
|
|
|
is_subdissector = TRUE;
|
|
|
|
subdissector_handle = requested_subdissector_handle;
|
|
|
|
}
|
|
|
|
|
From Florent Drouin:
Here are some patches and a new module to introduce the notion of Tcap context for a Tcap transaction. For each Tcap transaction, several parameters, like session identifier, start time or OID, will be saved in a hash table, to keep these informations available for the next messages. This context is then given to the upper layer, and can be used, for example, to generate transaction-associated statistics.
Moreover, the Upper protocol, detected in the Begin of the TCAP transaction ( according to the OID ), is saved in the context, and will be reused for the next messages of the transaction. This help the decoding of SS7 messages, without any SSN configuration in the "wireshark preferences".
You will have too, the possibility to apply a filter to see only the messages related to a TCAP transaction. (tcap.srt.session_id=XXX)
To enable the use of the Tcap context, you have 2 new parameters in the preferences,
- SRT, enable search for a Tcap context for any TCAP messages
- persistentSRT, keep the Tcap context, even after the transaction has been closed. This is mandatory with Wireshark, to have a clean display of the stats.
There is 2 new timers in the preferences for the statistics, to tune the retransmission timeout, and messages lost timeout.
svn path=/trunk/; revision=19341
2006-09-27 20:06:06 +00:00
|
|
|
if (!is_subdissector) {
|
|
|
|
/*
|
|
|
|
* If we do not currently know the subdissector, we have to find it
|
|
|
|
* - first, according to the OID
|
|
|
|
* - then according to the SSN
|
2007-04-23 10:45:00 +00:00
|
|
|
* - and at least, take the default Data handler
|
From Florent Drouin:
Here are some patches and a new module to introduce the notion of Tcap context for a Tcap transaction. For each Tcap transaction, several parameters, like session identifier, start time or OID, will be saved in a hash table, to keep these informations available for the next messages. This context is then given to the upper layer, and can be used, for example, to generate transaction-associated statistics.
Moreover, the Upper protocol, detected in the Begin of the TCAP transaction ( according to the OID ), is saved in the context, and will be reused for the next messages of the transaction. This help the decoding of SS7 messages, without any SSN configuration in the "wireshark preferences".
You will have too, the possibility to apply a filter to see only the messages related to a TCAP transaction. (tcap.srt.session_id=XXX)
To enable the use of the Tcap context, you have 2 new parameters in the preferences,
- SRT, enable search for a Tcap context for any TCAP messages
- persistentSRT, keep the Tcap context, even after the transaction has been closed. This is mandatory with Wireshark, to have a clean display of the stats.
There is 2 new timers in the preferences for the statistics, to tune the retransmission timeout, and messages lost timeout.
svn path=/trunk/; revision=19341
2006-09-27 20:06:06 +00:00
|
|
|
*/
|
|
|
|
if (ber_oid_dissector_table && cur_oid) {
|
|
|
|
/* Search if we can find the sub protocol according to the A.C.N */
|
2007-04-23 10:45:00 +00:00
|
|
|
if ( (subdissector_handle
|
From Florent Drouin:
Here are some patches and a new module to introduce the notion of Tcap context for a Tcap transaction. For each Tcap transaction, several parameters, like session identifier, start time or OID, will be saved in a hash table, to keep these informations available for the next messages. This context is then given to the upper layer, and can be used, for example, to generate transaction-associated statistics.
Moreover, the Upper protocol, detected in the Begin of the TCAP transaction ( according to the OID ), is saved in the context, and will be reused for the next messages of the transaction. This help the decoding of SS7 messages, without any SSN configuration in the "wireshark preferences".
You will have too, the possibility to apply a filter to see only the messages related to a TCAP transaction. (tcap.srt.session_id=XXX)
To enable the use of the Tcap context, you have 2 new parameters in the preferences,
- SRT, enable search for a Tcap context for any TCAP messages
- persistentSRT, keep the Tcap context, even after the transaction has been closed. This is mandatory with Wireshark, to have a clean display of the stats.
There is 2 new timers in the preferences for the statistics, to tune the retransmission timeout, and messages lost timeout.
svn path=/trunk/; revision=19341
2006-09-27 20:06:06 +00:00
|
|
|
= dissector_get_string_handle(ber_oid_dissector_table, cur_oid)) ) {
|
2007-04-23 20:20:46 +00:00
|
|
|
/* found */
|
|
|
|
is_subdissector=TRUE;
|
From Florent Drouin:
Here are some patches and a new module to introduce the notion of Tcap context for a Tcap transaction. For each Tcap transaction, several parameters, like session identifier, start time or OID, will be saved in a hash table, to keep these informations available for the next messages. This context is then given to the upper layer, and can be used, for example, to generate transaction-associated statistics.
Moreover, the Upper protocol, detected in the Begin of the TCAP transaction ( according to the OID ), is saved in the context, and will be reused for the next messages of the transaction. This help the decoding of SS7 messages, without any SSN configuration in the "wireshark preferences".
You will have too, the possibility to apply a filter to see only the messages related to a TCAP transaction. (tcap.srt.session_id=XXX)
To enable the use of the Tcap context, you have 2 new parameters in the preferences,
- SRT, enable search for a Tcap context for any TCAP messages
- persistentSRT, keep the Tcap context, even after the transaction has been closed. This is mandatory with Wireshark, to have a clean display of the stats.
There is 2 new timers in the preferences for the statistics, to tune the retransmission timeout, and messages lost timeout.
svn path=/trunk/; revision=19341
2006-09-27 20:06:06 +00:00
|
|
|
} else {
|
2007-04-23 20:20:46 +00:00
|
|
|
/* Search if we can found the sub protocol according to the SSN table */
|
|
|
|
if ( (subdissector_handle
|
2007-05-13 20:58:29 +00:00
|
|
|
= get_itu_tcap_subdissector(actx->pinfo->match_port))) {
|
2007-04-23 20:20:46 +00:00
|
|
|
/* Found according to SSN */
|
|
|
|
is_subdissector=TRUE;
|
|
|
|
} else {
|
|
|
|
/* Nothing found, take the Data handler */
|
|
|
|
subdissector_handle = data_handle;
|
|
|
|
is_subdissector=TRUE;
|
|
|
|
} /* SSN */
|
|
|
|
} /* ACN */
|
From Florent Drouin:
Here are some patches and a new module to introduce the notion of Tcap context for a Tcap transaction. For each Tcap transaction, several parameters, like session identifier, start time or OID, will be saved in a hash table, to keep these informations available for the next messages. This context is then given to the upper layer, and can be used, for example, to generate transaction-associated statistics.
Moreover, the Upper protocol, detected in the Begin of the TCAP transaction ( according to the OID ), is saved in the context, and will be reused for the next messages of the transaction. This help the decoding of SS7 messages, without any SSN configuration in the "wireshark preferences".
You will have too, the possibility to apply a filter to see only the messages related to a TCAP transaction. (tcap.srt.session_id=XXX)
To enable the use of the Tcap context, you have 2 new parameters in the preferences,
- SRT, enable search for a Tcap context for any TCAP messages
- persistentSRT, keep the Tcap context, even after the transaction has been closed. This is mandatory with Wireshark, to have a clean display of the stats.
There is 2 new timers in the preferences for the statistics, to tune the retransmission timeout, and messages lost timeout.
svn path=/trunk/; revision=19341
2006-09-27 20:06:06 +00:00
|
|
|
} else {
|
2007-04-23 20:20:46 +00:00
|
|
|
/* There is no A.C.N for this transaction, so search in the SSN table */
|
2007-05-13 20:58:29 +00:00
|
|
|
if ( (subdissector_handle = get_itu_tcap_subdissector(actx->pinfo->match_port))) {
|
2007-04-23 20:20:46 +00:00
|
|
|
/* Found according to SSN */
|
|
|
|
is_subdissector=TRUE;
|
|
|
|
} else {
|
|
|
|
subdissector_handle = data_handle;
|
|
|
|
is_subdissector=TRUE;
|
|
|
|
}
|
|
|
|
} /* OID */
|
From Florent Drouin:
Here are some patches and a new module to introduce the notion of Tcap context for a Tcap transaction. For each Tcap transaction, several parameters, like session identifier, start time or OID, will be saved in a hash table, to keep these informations available for the next messages. This context is then given to the upper layer, and can be used, for example, to generate transaction-associated statistics.
Moreover, the Upper protocol, detected in the Begin of the TCAP transaction ( according to the OID ), is saved in the context, and will be reused for the next messages of the transaction. This help the decoding of SS7 messages, without any SSN configuration in the "wireshark preferences".
You will have too, the possibility to apply a filter to see only the messages related to a TCAP transaction. (tcap.srt.session_id=XXX)
To enable the use of the Tcap context, you have 2 new parameters in the preferences,
- SRT, enable search for a Tcap context for any TCAP messages
- persistentSRT, keep the Tcap context, even after the transaction has been closed. This is mandatory with Wireshark, to have a clean display of the stats.
There is 2 new timers in the preferences for the statistics, to tune the retransmission timeout, and messages lost timeout.
svn path=/trunk/; revision=19341
2006-09-27 20:06:06 +00:00
|
|
|
} else {
|
2007-04-23 20:20:46 +00:00
|
|
|
/* We have it already */
|
From Florent Drouin:
Here are some patches and a new module to introduce the notion of Tcap context for a Tcap transaction. For each Tcap transaction, several parameters, like session identifier, start time or OID, will be saved in a hash table, to keep these informations available for the next messages. This context is then given to the upper layer, and can be used, for example, to generate transaction-associated statistics.
Moreover, the Upper protocol, detected in the Begin of the TCAP transaction ( according to the OID ), is saved in the context, and will be reused for the next messages of the transaction. This help the decoding of SS7 messages, without any SSN configuration in the "wireshark preferences".
You will have too, the possibility to apply a filter to see only the messages related to a TCAP transaction. (tcap.srt.session_id=XXX)
To enable the use of the Tcap context, you have 2 new parameters in the preferences,
- SRT, enable search for a Tcap context for any TCAP messages
- persistentSRT, keep the Tcap context, even after the transaction has been closed. This is mandatory with Wireshark, to have a clean display of the stats.
There is 2 new timers in the preferences for the statistics, to tune the retransmission timeout, and messages lost timeout.
svn path=/trunk/; revision=19341
2006-09-27 20:06:06 +00:00
|
|
|
}
|
2007-04-23 10:45:00 +00:00
|
|
|
|
From Florent Drouin:
Here are some patches and a new module to introduce the notion of Tcap context for a Tcap transaction. For each Tcap transaction, several parameters, like session identifier, start time or OID, will be saved in a hash table, to keep these informations available for the next messages. This context is then given to the upper layer, and can be used, for example, to generate transaction-associated statistics.
Moreover, the Upper protocol, detected in the Begin of the TCAP transaction ( according to the OID ), is saved in the context, and will be reused for the next messages of the transaction. This help the decoding of SS7 messages, without any SSN configuration in the "wireshark preferences".
You will have too, the possibility to apply a filter to see only the messages related to a TCAP transaction. (tcap.srt.session_id=XXX)
To enable the use of the Tcap context, you have 2 new parameters in the preferences,
- SRT, enable search for a Tcap context for any TCAP messages
- persistentSRT, keep the Tcap context, even after the transaction has been closed. This is mandatory with Wireshark, to have a clean display of the stats.
There is 2 new timers in the preferences for the statistics, to tune the retransmission timeout, and messages lost timeout.
svn path=/trunk/; revision=19341
2006-09-27 20:06:06 +00:00
|
|
|
/* Call the sub dissector if present, and not already called */
|
|
|
|
if (is_subdissector)
|
2007-07-27 19:24:40 +00:00
|
|
|
call_dissector(subdissector_handle, tvb, actx->pinfo, tree);
|
2007-04-23 10:45:00 +00:00
|
|
|
|
2007-07-27 19:24:40 +00:00
|
|
|
return offset;
|
From Florent Drouin:
Here are some patches and a new module to introduce the notion of Tcap context for a Tcap transaction. For each Tcap transaction, several parameters, like session identifier, start time or OID, will be saved in a hash table, to keep these informations available for the next messages. This context is then given to the upper layer, and can be used, for example, to generate transaction-associated statistics.
Moreover, the Upper protocol, detected in the Begin of the TCAP transaction ( according to the OID ), is saved in the context, and will be reused for the next messages of the transaction. This help the decoding of SS7 messages, without any SSN configuration in the "wireshark preferences".
You will have too, the possibility to apply a filter to see only the messages related to a TCAP transaction. (tcap.srt.session_id=XXX)
To enable the use of the Tcap context, you have 2 new parameters in the preferences,
- SRT, enable search for a Tcap context for any TCAP messages
- persistentSRT, keep the Tcap context, even after the transaction has been closed. This is mandatory with Wireshark, to have a clean display of the stats.
There is 2 new timers in the preferences for the statistics, to tune the retransmission timeout, and messages lost timeout.
svn path=/trunk/; revision=19341
2006-09-27 20:06:06 +00:00
|
|
|
}
|
|
|
|
|
2007-07-27 19:24:40 +00:00
|
|
|
/*
|
|
|
|
* Call ANSI Subdissector to decode the Tcap Component
|
|
|
|
*/
|
|
|
|
static int
|
2007-07-30 17:10:20 +00:00
|
|
|
dissect_tcap_ANSI_ComponentPDU(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, asn1_ctx_t *actx _U_, proto_tree *tree, int hf_index _U_)
|
2007-07-27 19:24:40 +00:00
|
|
|
{
|
|
|
|
dissector_handle_t subdissector_handle;
|
|
|
|
gboolean is_subdissector=FALSE;
|
|
|
|
struct tcaphash_context_t * p_tcap_context=NULL;
|
|
|
|
|
|
|
|
gchar str[20];
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Handle The TCAP Service Response Time
|
|
|
|
*/
|
|
|
|
if ( gtcap_HandleSRT ) {
|
|
|
|
if (!tcap_subdissector_used) {
|
|
|
|
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;
|
|
|
|
tcap_private.context=p_tcap_context;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (p_tcap_context) {
|
|
|
|
/* tcap_private.TransactionID_str = bytes_to_str(&(p_tcap_context->session_id),4); */
|
|
|
|
g_snprintf(str, sizeof(str), "(%d)",p_tcap_context->session_id);
|
|
|
|
tcap_private.TransactionID_str = str;
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( (subdissector_handle
|
|
|
|
= get_ansi_tcap_subdissector(actx->pinfo->match_port))) {
|
|
|
|
/* Found according to SSN */
|
|
|
|
is_subdissector=TRUE;
|
|
|
|
} else {
|
|
|
|
/* Nothing found, take the Data handler */
|
|
|
|
subdissector_handle = data_handle;
|
|
|
|
is_subdissector=TRUE;
|
|
|
|
} /* SSN */
|
|
|
|
|
|
|
|
/* Call the sub dissector if present, and not already called */
|
|
|
|
if (is_subdissector)
|
|
|
|
call_dissector(subdissector_handle, tvb, actx->pinfo, tree);
|
|
|
|
|
|
|
|
return offset;
|
|
|
|
}
|
From Florent Drouin:
Here are some patches and a new module to introduce the notion of Tcap context for a Tcap transaction. For each Tcap transaction, several parameters, like session identifier, start time or OID, will be saved in a hash table, to keep these informations available for the next messages. This context is then given to the upper layer, and can be used, for example, to generate transaction-associated statistics.
Moreover, the Upper protocol, detected in the Begin of the TCAP transaction ( according to the OID ), is saved in the context, and will be reused for the next messages of the transaction. This help the decoding of SS7 messages, without any SSN configuration in the "wireshark preferences".
You will have too, the possibility to apply a filter to see only the messages related to a TCAP transaction. (tcap.srt.session_id=XXX)
To enable the use of the Tcap context, you have 2 new parameters in the preferences,
- SRT, enable search for a Tcap context for any TCAP messages
- persistentSRT, keep the Tcap context, even after the transaction has been closed. This is mandatory with Wireshark, to have a clean display of the stats.
There is 2 new timers in the preferences for the statistics, to tune the retransmission timeout, and messages lost timeout.
svn path=/trunk/; revision=19341
2006-09-27 20:06:06 +00:00
|
|
|
|
|
|
|
static int
|
2007-05-13 20:58:29 +00:00
|
|
|
dissect_tcap_TheExternUserInfo(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, asn1_ctx_t *actx _U_, proto_tree *tree, int hf_index _U_)
|
From Florent Drouin:
Here are some patches and a new module to introduce the notion of Tcap context for a Tcap transaction. For each Tcap transaction, several parameters, like session identifier, start time or OID, will be saved in a hash table, to keep these informations available for the next messages. This context is then given to the upper layer, and can be used, for example, to generate transaction-associated statistics.
Moreover, the Upper protocol, detected in the Begin of the TCAP transaction ( according to the OID ), is saved in the context, and will be reused for the next messages of the transaction. This help the decoding of SS7 messages, without any SSN configuration in the "wireshark preferences".
You will have too, the possibility to apply a filter to see only the messages related to a TCAP transaction. (tcap.srt.session_id=XXX)
To enable the use of the Tcap context, you have 2 new parameters in the preferences,
- SRT, enable search for a Tcap context for any TCAP messages
- persistentSRT, keep the Tcap context, even after the transaction has been closed. This is mandatory with Wireshark, to have a clean display of the stats.
There is 2 new timers in the preferences for the statistics, to tune the retransmission timeout, and messages lost timeout.
svn path=/trunk/; revision=19341
2006-09-27 20:06:06 +00:00
|
|
|
{
|
2007-04-23 10:45:00 +00:00
|
|
|
/*
|
From Florent Drouin:
Here are some patches and a new module to introduce the notion of Tcap context for a Tcap transaction. For each Tcap transaction, several parameters, like session identifier, start time or OID, will be saved in a hash table, to keep these informations available for the next messages. This context is then given to the upper layer, and can be used, for example, to generate transaction-associated statistics.
Moreover, the Upper protocol, detected in the Begin of the TCAP transaction ( according to the OID ), is saved in the context, and will be reused for the next messages of the transaction. This help the decoding of SS7 messages, without any SSN configuration in the "wireshark preferences".
You will have too, the possibility to apply a filter to see only the messages related to a TCAP transaction. (tcap.srt.session_id=XXX)
To enable the use of the Tcap context, you have 2 new parameters in the preferences,
- SRT, enable search for a Tcap context for any TCAP messages
- persistentSRT, keep the Tcap context, even after the transaction has been closed. This is mandatory with Wireshark, to have a clean display of the stats.
There is 2 new timers in the preferences for the statistics, to tune the retransmission timeout, and messages lost timeout.
svn path=/trunk/; revision=19341
2006-09-27 20:06:06 +00:00
|
|
|
* 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");
|
|
|
|
|
|
|
|
if (ber_oid_dissector_table && tcapext_oid){
|
2007-07-27 19:24:40 +00:00
|
|
|
if(!dissector_try_string(ber_oid_dissector_table, tcapext_oid, tvb, actx->pinfo, tree))
|
From Florent Drouin:
Here are some patches and a new module to introduce the notion of Tcap context for a Tcap transaction. For each Tcap transaction, several parameters, like session identifier, start time or OID, will be saved in a hash table, to keep these informations available for the next messages. This context is then given to the upper layer, and can be used, for example, to generate transaction-associated statistics.
Moreover, the Upper protocol, detected in the Begin of the TCAP transaction ( according to the OID ), is saved in the context, and will be reused for the next messages of the transaction. This help the decoding of SS7 messages, without any SSN configuration in the "wireshark preferences".
You will have too, the possibility to apply a filter to see only the messages related to a TCAP transaction. (tcap.srt.session_id=XXX)
To enable the use of the Tcap context, you have 2 new parameters in the preferences,
- SRT, enable search for a Tcap context for any TCAP messages
- persistentSRT, keep the Tcap context, even after the transaction has been closed. This is mandatory with Wireshark, to have a clean display of the stats.
There is 2 new timers in the preferences for the statistics, to tune the retransmission timeout, and messages lost timeout.
svn path=/trunk/; revision=19341
2006-09-27 20:06:06 +00:00
|
|
|
{
|
2007-07-27 19:24:40 +00:00
|
|
|
return dissect_tcap_param(actx,tree,tvb,0);
|
From Florent Drouin:
Here are some patches and a new module to introduce the notion of Tcap context for a Tcap transaction. For each Tcap transaction, several parameters, like session identifier, start time or OID, will be saved in a hash table, to keep these informations available for the next messages. This context is then given to the upper layer, and can be used, for example, to generate transaction-associated statistics.
Moreover, the Upper protocol, detected in the Begin of the TCAP transaction ( according to the OID ), is saved in the context, and will be reused for the next messages of the transaction. This help the decoding of SS7 messages, without any SSN configuration in the "wireshark preferences".
You will have too, the possibility to apply a filter to see only the messages related to a TCAP transaction. (tcap.srt.session_id=XXX)
To enable the use of the Tcap context, you have 2 new parameters in the preferences,
- SRT, enable search for a Tcap context for any TCAP messages
- persistentSRT, keep the Tcap context, even after the transaction has been closed. This is mandatory with Wireshark, to have a clean display of the stats.
There is 2 new timers in the preferences for the statistics, to tune the retransmission timeout, and messages lost timeout.
svn path=/trunk/; revision=19341
2006-09-27 20:06:06 +00:00
|
|
|
}
|
|
|
|
}
|
2007-07-27 19:24:40 +00:00
|
|
|
return offset;
|
From Florent Drouin:
Here are some patches and a new module to introduce the notion of Tcap context for a Tcap transaction. For each Tcap transaction, several parameters, like session identifier, start time or OID, will be saved in a hash table, to keep these informations available for the next messages. This context is then given to the upper layer, and can be used, for example, to generate transaction-associated statistics.
Moreover, the Upper protocol, detected in the Begin of the TCAP transaction ( according to the OID ), is saved in the context, and will be reused for the next messages of the transaction. This help the decoding of SS7 messages, without any SSN configuration in the "wireshark preferences".
You will have too, the possibility to apply a filter to see only the messages related to a TCAP transaction. (tcap.srt.session_id=XXX)
To enable the use of the Tcap context, you have 2 new parameters in the preferences,
- SRT, enable search for a Tcap context for any TCAP messages
- persistentSRT, keep the Tcap context, even after the transaction has been closed. This is mandatory with Wireshark, to have a clean display of the stats.
There is 2 new timers in the preferences for the statistics, to tune the retransmission timeout, and messages lost timeout.
svn path=/trunk/; revision=19341
2006-09-27 20:06:06 +00:00
|
|
|
}
|
2007-04-03 19:08:00 +00:00
|
|
|
|
|
|
|
|
|
|
|
void call_tcap_dissector(dissector_handle_t handle, tvbuff_t* tvb, packet_info* pinfo, proto_tree* tree) {
|
|
|
|
|
|
|
|
requested_subdissector_handle = handle;
|
|
|
|
|
|
|
|
TRY {
|
|
|
|
dissect_tcap(tvb, pinfo, tree);
|
|
|
|
} CATCH_ALL {
|
|
|
|
requested_subdissector_handle = NULL;
|
|
|
|
RETHROW;
|
|
|
|
} ENDTRY;
|
2007-04-23 10:45:00 +00:00
|
|
|
|
2007-04-03 19:08:00 +00:00
|
|
|
requested_subdissector_handle = NULL;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|