blob: 779154b7c9868fc9a72593ee5a1f61abaaf42e77 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
/* Do not modify this file. Changes will be overwritten */
/* Generated Automatically */
/* packet-skinny.h */
/* packet-skinny.h
* Dissector for the Skinny Client Control Protocol
* (The "D-Channel"-Protocol for Cisco Systems' IP-Phones)
*
* Author: Diederik de Groot <ddegroot@user.sf.net>, Copyright 2014
* Rewritten to support newer skinny protocolversions (V0-V22)
* Based on previous versions/contributions:
* - Joerg Mayer <jmayer@loplof.de>, Copyright 2001
* - Paul E. Erkkila (pee@erkkila.org) - fleshed out the decode
* skeleton to report values for most message/message fields.
* Much help from Guy Harris on figuring out the wireshark api.
* - packet-aim.c by Ralf Hoelzer <ralf@well.com>, Copyright 2000
* - Wireshark - Network traffic analyzer,
* By Gerald Combs <gerald@wireshark.org>, Copyright 1998
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
/*
* Generated Automatically Using (from wireshark base directory):
* cog.py -D xmlfile=tools/SkinnyProtocolOptimized.xml -d -c -o epan/dissectors/packet-skinny.h epan/dissectors/packet-skinny.h.in
*/
#include <epan/wmem_scopes.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 passThroughPartyId;
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;
/*
* Editor modelines - https://www.wireshark.org/tools/modelines.html
*
* Local variables:
* c-basic-offset: 2
* tab-width: 8
* indent-tabs-mode: nil
* End:
*
* vi: set shiftwidth=2 tabstop=8 expandtab:
* :indentSize=2:tabSize=8:noTabs=true:
*/
|