1 /* Do not modify this file. Changes will be overwritten */
2 /* Generated Automatically */
6 * Dissector for the Skinny Client Control Protocol
7 * (The "D-Channel"-Protocol for Cisco Systems' IP-Phones)
9 * Author: Diederik de Groot <ddegroot@user.sf.net>, Copyright 2014
10 * Rewritten to support newer skinny protocolversions (V0-V22)
11 * Based on previous versions/contributions:
12 * - Joerg Mayer <jmayer@loplof.de>, Copyright 2001
13 * - Paul E. Erkkila (pee@erkkila.org) - fleshed out the decode
14 * skeleton to report values for most message/message fields.
15 * Much help from Guy Harris on figuring out the wireshark api.
16 * - packet-aim.c by Ralf Hoelzer <ralf@well.com>, Copyright 2000
17 * - Wireshark - Network traffic analyzer,
18 * By Gerald Combs <gerald@wireshark.org>, Copyright 1998
20 * SPDX-License-Identifier: GPL-2.0-or-later
25 # Using Cog.py Inplace Code Generator
29 # - cog.py: (pip install cogapp / http://nedbatchelder.com/code/cog/)
34 cog.out(' * Generated automatically Using (from wireshark base directory):\n')
35 cog.out(' * cog.py -D xmlfile=tools/SkinnyProtocolOptimized.xml -d -c -o epan/dissectors/packet-skinny.h epan/dissectors/packet-skinny.h.in\n')
40 #include <epan/wmem_scopes.h>
42 /* request response tracking */
43 typedef struct _skinny_req_resp_t {
44 uint32_t request_frame;
45 uint32_t response_frame;
46 nstime_t request_time;
49 /* begin conversation info*/
50 typedef enum _skinny_message_type_t {
51 SKINNY_MSGTYPE_EVENT = 0,
52 SKINNY_MSGTYPE_REQUEST = 1,
53 SKINNY_MSGTYPE_RESPONSE = 2,
54 } skinny_message_type_t;
56 typedef struct _skinny_conv_info_t {
57 skinny_message_type_t mtype;
58 wmem_map_t * pending_req_resp;
59 wmem_map_t * requests;
60 wmem_map_t * responses;
63 //uint32_t passThruId;
64 //uint32_t transactionId;
67 /* end conversation info */
69 /* Containers for tapping relevant data */
70 /* WIP: will be (partially) replaced in favor of conversation, dependents: ui/voip_calls.c */
71 typedef struct _skinny_info_t
74 uint32_t maxProtocolVersion;
77 uint32_t passThroughPartyId;
78 const char * messageName;
83 int32_t mediaReceptionStatus;
84 int32_t mediaTransmissionStatus;
85 int32_t multimediaReceptionStatus;
86 int32_t multimediaTransmissionStatus;
87 int32_t multicastReceptionStatus;
88 //skinny_conv_info_t * skinny_conv;
89 char * additionalInfo;
93 * Editor modelines - https://www.wireshark.org/tools/modelines.html
98 * indent-tabs-mode: nil
101 * vi: set shiftwidth=2 tabstop=8 expandtab:
102 * :indentSize=2:tabSize=8:noTabs=true: