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-rdp.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 'epan/dissectors/packet-rdp.h')
-rw-r--r-- | epan/dissectors/packet-rdp.h | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/epan/dissectors/packet-rdp.h b/epan/dissectors/packet-rdp.h new file mode 100644 index 00000000..5bae4d68 --- /dev/null +++ b/epan/dissectors/packet-rdp.h @@ -0,0 +1,61 @@ +/* packet-rdp.h + * RDP dissection + * Author: David Fort + * + * Wireshark - Network traffic analyzer + * By Gerald Combs <gerald@wireshark.org> + * Copyright 1998 Gerald Combs + * + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#ifndef __PACKET_RDP_H__ +#define __PACKET_RDP_H__ + +#include <glib.h> +#include <epan/packet.h> + +extern int proto_rdp; + +#define RDP_MAX_CHANNELS 31 + +typedef enum { + RDP_CHANNEL_UNKNOWN, + RDP_CHANNEL_DRDYNVC, + RDP_CHANNEL_CLIPBOARD, + RDP_CHANNEL_SOUND, + RDP_CHANNEL_DISK, + RDP_CHANNEL_RAIL, +} rdp_known_channel_t; + +typedef struct _rdp_channel_def { + guint32 value; + const gchar *strptr; + rdp_known_channel_t channelType; +} rdp_channel_def_t; + +typedef struct _rdp_server_address { + address addr; + guint16 port; +} rdp_server_address_t; + + +typedef struct _rdp_conv_info_t { + guint32 staticChannelId; + guint32 messageChannelId; + guint32 encryptionMethod; + guint32 encryptionLevel; + guint32 licenseAgreed; + rdp_server_address_t serverAddr; + guint8 maxChannels; + gboolean isRdstls; + rdp_channel_def_t staticChannels[RDP_MAX_CHANNELS+1]; +} rdp_conv_info_t; + +gint dissect_rdp_bandwidth_req(tvbuff_t *tvb, gint offset, packet_info *pinfo, proto_tree *tree, gboolean from_server); +void rdp_transport_set_udp_conversation(const address *serverAddr, guint16 serverPort, gboolean reliable, guint32 reqId, + guint8 *cookie, conversation_t *conv); +conversation_t *rdp_find_tcp_conversation_from_udp(conversation_t *udp); + +#endif /* __PACKET_RDP_H__ */ |