1 /* Do not modify this file. Changes will be overwritten. */
2 /* Generated automatically by the ASN.1 to Wireshark dissector compiler */
4 /* asn2wrs.py -b -q -L -p camel -c ./camel.cnf -s ./packet-camel-template -D . -O ../.. CAP-object-identifiers.asn CAP-classes.asn CAP-datatypes.asn CAP-errorcodes.asn CAP-errortypes.asn CAP-operationcodes.asn CAP-GPRS-ReferenceNumber.asn CAP-gsmSCF-gsmSRF-ops-args.asn CAP-gsmSSF-gsmSCF-ops-args.asn CAP-gprsSSF-gsmSCF-ops-args.asn CAP-SMS-ops-args.asn CAP-U-ABORT-Data.asn CamelV2diff.asn ../ros/Remote-Operations-Information-Objects.asn ../ros/Remote-Operations-Generic-ROS-PDUs.asn */
6 /* packet-camel-template.h
8 * Copyright 2004, Tim Endean <endeant@hotmail.com>
9 * Copyright 2005, Olivier Jacques <olivier.jacques@hp.com>
10 * Built from the gsm-map dissector Copyright 2004, Anders Broman <anders.broman@ericsson.com>
12 * Wireshark - Network traffic analyzer
13 * By Gerald Combs <gerald@wireshark.org>
14 * Copyright 1998 Gerald Combs
16 * SPDX-License-Identifier: GPL-2.0-or-later
17 * References: ETSI 300 374
20 * Indentation logic: this file is indented with 2 spaces indentation.
25 #ifndef PACKET_CAMEL_H
26 #define PACKET_CAMEL_H
28 #include "ws_symbol_export.h"
30 void proto_reg_handoff_camel(void);
31 void proto_register_camel(void);
33 /* Defines for the camel taps */
34 #define camel_MAX_NUM_OPR_CODES 256
36 WS_DLL_PUBLIC
const value_string camel_opr_code_strings
[];
37 /* #include "packet-camel-exp.h"*/
41 #define NB_CAMELSRT_CATEGORY 9+1 /**< Number of type of message */
42 /* for example TC_BEGIN with InitalDP, and TC_CONT with RequestReportBCSMEvent
43 is a category, we want to measure the delay between the two messages */
45 #define CAMELSRT_SESSION 1
47 #define CAMELSRT_VOICE_INITIALDP 2
48 #define CAMELSRT_VOICE_ACR1 3
49 #define CAMELSRT_VOICE_ACR2 4
50 #define CAMELSRT_VOICE_ACR3 5
51 #define CAMELSRT_VOICE_DISC 6
53 #define CAMELSRT_GPRS_INITIALDP 7
54 #define CAMELSRT_GPRS_REPORT 8
56 #define CAMELSRT_SMS_INITIALDP 9
58 WS_DLL_PUBLIC
const value_string camelSRTtype_naming
[];
60 /** If we have a request message and its response,
61 (eg: ApplyCharging, ApplyChargingReport)
62 the frames numbers are stored in this structure */
64 struct camelsrt_category_t
{
65 uint32_t req_num
; /**< frame number request seen */
66 uint32_t rsp_num
; /**< frame number response seen */
67 nstime_t req_time
; /**< arrival time of request */
68 bool responded
; /**< true, if request has been responded */
71 /** List of stored parameters for a Camel dialogue
72 All this parameters are linked to the hash table key below (use of Tid)
73 In case of same Tid reused, the Camel parameters are chained.
74 The right dialogue will be identified with the arrival time of the InitialDP */
76 struct camelsrt_call_t
{
77 uint32_t session_id
; /**< Identify the session, with an internal number */
78 struct tcaphash_context_t
* tcap_context
;
79 struct camelsrt_category_t category
[NB_CAMELSRT_CATEGORY
];
83 /** The Key for the hash table is the TCAP origine transaction identifier
84 of the TC_BEGIN containing the InitialDP */
86 struct camelsrt_call_info_key_t
{
87 uint32_t SessionIdKey
;
90 /** Info for a couple of messages (or category)
91 The request must be available, not duplicated,
92 and once the corresponding response received,
93 we can deduce the Delta Time between Request/response */
95 struct camelsrt_msginfo_t
{
96 bool request_available
;
103 /** List of infos to store for the analyse */
105 struct camelsrt_info_t
{
106 uint32_t tcap_session_id
;
108 uint8_t opcode
; /**< operation code of message received */
109 uint8_t bool_msginfo
[NB_CAMELSRT_CATEGORY
]; /**< category for the received message */
110 struct camelsrt_msginfo_t msginfo
[NB_CAMELSRT_CATEGORY
];
114 * Initialize the Message Info used by the main dissector
115 * Data are linked to a TCAP transaction
117 struct camelsrt_info_t
* camelsrt_razinfo(void);
120 * Service Response Time analyze, called just after the camel dissector
121 * According to the camel operation, we
122 * - open/close a context for the camel session
123 * - look for a request, or look for the corresponding response
125 void camelsrt_call_matching(tvbuff_t
*tvb
,
126 packet_info
* pinfo _U_
,
128 struct camelsrt_info_t
* p_camel_info
);
130 WS_DLL_PUBLIC
bool gcamel_StatSRT
;
132 #endif /* PACKET_camel_H */