aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-skinny.h
diff options
context:
space:
mode:
authorDiederik de Groot <dkgroot@talon.nl>2017-02-13 17:50:53 +0100
committerAnders Broman <a.broman58@gmail.com>2017-02-16 05:01:54 +0000
commit9a22102d352a5f51eb92eaa43cafb8f28ad1503b (patch)
tree93f0647c9fe10027b37106e8580ac09992069bd6 /epan/dissectors/packet-skinny.h
parente6c51e7badca002fadbb9fdcab3e54c3b2910705 (diff)
[skinny]: Added conversation and request_response handling
Improvements: - added conversation - added request/response handling Change-Id: Ia670eb23c0671b195108876a30ff3ff5eb4a152c Reviewed-on: https://code.wireshark.org/review/20094 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-skinny.h')
-rw-r--r--epan/dissectors/packet-skinny.h63
1 files changed, 47 insertions, 16 deletions
diff --git a/epan/dissectors/packet-skinny.h b/epan/dissectors/packet-skinny.h
index 2348e2e0f6..6e71e04acf 100644
--- a/epan/dissectors/packet-skinny.h
+++ b/epan/dissectors/packet-skinny.h
@@ -37,24 +37,55 @@
* cog.py -D xmlfile=tools/SkinnyProtocolOptimized.xml -d -c -o epan/dissectors/packet-skinny.c epan/dissectors/packet-skinny.c.in
*/
-/* Container for tapping relevant data */
+#include <epan/wmem/wmem.h>
+
+/* request response tracking */
+typedef struct _skinny_req_resp_t {
+ guint32 request_frame;
+ guint32 response_frame;
+ nstime_t request_time;
+} skinny_req_resp_t;
+
+/* begin conversaton info*/
+typedef enum _skinny_message_type_t {
+ SKINNY_MSGTYPE_EVENT = 0,
+ SKINNY_MSGTYPE_REQUEST = 1,
+ SKINNY_MSGTYPE_RESPONSE = 2,
+} skinny_message_type_t;
+
+typedef struct _skinny_conv_info_t {
+ skinny_message_type_t mtype;
+ wmem_map_t * pending_req_resp;
+ wmem_map_t * requests;
+ wmem_map_t * responses;
+ gint32 lineId;
+ //guint32 callId;
+ //guint32 passThruId;
+ //guint32 transactionId;
+ //guint32 callState;
+} skinny_conv_info_t;
+/* end conversation info */
+
+/* Containers for tapping relevant data */
+/* WIP: will be (partially) replaced in favor of conversionation, dependents: ui/voip_calls.c */
typedef struct _skinny_info_t
{
- guint32 messId;
- guint32 maxProtocolVersion;
- gint32 lineId;
- guint32 callId;
- guint32 passThruId;
- const gchar * messageName;
- guint32 callState;
- gboolean hasCallInfo;
- gchar * callingParty;
- gchar * calledParty;
- gint32 mediaReceptionStatus;
- gint32 mediaTransmissionStatus;
- gint32 multimediaReceptionStatus;
- gint32 multimediaTransmissionStatus;
- gint32 multicastReceptionStatus;
+ guint32 messId;
+ guint32 maxProtocolVersion;
+ gint32 lineId;
+ guint32 callId;
+ guint32 passThruId;
+ const gchar * messageName;
+ guint32 callState;
+ gboolean hasCallInfo;
+ gchar * callingParty;
+ gchar * calledParty;
+ gint32 mediaReceptionStatus;
+ gint32 mediaTransmissionStatus;
+ gint32 multimediaReceptionStatus;
+ gint32 multimediaTransmissionStatus;
+ gint32 multicastReceptionStatus;
+ //skinny_conv_info_t * skinny_conv;
} skinny_info_t;
/*