diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 20:34:10 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 20:34:10 +0000 |
commit | e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc (patch) | |
tree | 68cb5ef9081156392f1dd62a00c6ccc1451b93df /epan/dissectors/packet-skinny.h | |
parent | Initial commit. (diff) | |
download | wireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.tar.xz wireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.zip |
Adding upstream version 4.2.2.upstream/4.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | epan/dissectors/packet-skinny.h | 91 | ||||
-rw-r--r-- | epan/dissectors/packet-skinny.h.in | 102 |
2 files changed, 193 insertions, 0 deletions
diff --git a/epan/dissectors/packet-skinny.h b/epan/dissectors/packet-skinny.h new file mode 100644 index 00000000..a42e5525 --- /dev/null +++ b/epan/dissectors/packet-skinny.h @@ -0,0 +1,91 @@ +/* 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 { + uint32_t request_frame; + uint32_t 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; + int32_t lineId; + //uint32_t callId; + //uint32_t passThruId; + //uint32_t transactionId; + //uint32_t 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 +{ + uint32_t messId; + uint32_t maxProtocolVersion; + int32_t lineId; + uint32_t callId; + uint32_t passThroughPartyId; + const char * messageName; + uint32_t callState; + bool hasCallInfo; + char * callingParty; + char * calledParty; + int32_t mediaReceptionStatus; + int32_t mediaTransmissionStatus; + int32_t multimediaReceptionStatus; + int32_t multimediaTransmissionStatus; + int32_t multicastReceptionStatus; + //skinny_conv_info_t * skinny_conv; + char * additionalInfo; +} 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: + */ diff --git a/epan/dissectors/packet-skinny.h.in b/epan/dissectors/packet-skinny.h.in new file mode 100644 index 00000000..5764b999 --- /dev/null +++ b/epan/dissectors/packet-skinny.h.in @@ -0,0 +1,102 @@ +/* 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 + */ + +/* [[[cog +# +# Using Cog.py Inplace Code Generator +# +# Dependencies: +# - python2.x +# - cog.py: (pip install cogapp / http://nedbatchelder.com/code/cog/) +# - python.xml +# - python.xml.sax +# +cog.out('/*\n') +cog.out(' * Generated automatically Using (from wireshark base directory):\n') +cog.out(' * cog.py -D xmlfile=tools/SkinnyProtocolOptimized.xml -d -c -o epan/dissectors/packet-skinny.h epan/dissectors/packet-skinny.h.in\n') +cog.out(' */\n') +/*]]]*/ +/*[[[end]]]*/ + +#include <epan/wmem_scopes.h> + +/* request response tracking */ +typedef struct _skinny_req_resp_t { + uint32_t request_frame; + uint32_t 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; + int32_t lineId; + //uint32_t callId; + //uint32_t passThruId; + //uint32_t transactionId; + //uint32_t 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 +{ + uint32_t messId; + uint32_t maxProtocolVersion; + int32_t lineId; + uint32_t callId; + uint32_t passThroughPartyId; + const char * messageName; + uint32_t callState; + bool hasCallInfo; + char * callingParty; + char * calledParty; + int32_t mediaReceptionStatus; + int32_t mediaTransmissionStatus; + int32_t multimediaReceptionStatus; + int32_t multimediaTransmissionStatus; + int32_t 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: + */ |