Wireshark  4.3.0
The Wireshark network protocol analyzer
packet-rdp.h
1 /* packet-rdp.h
2  * RDP dissection
3  * Author: David Fort
4  *
5  * Wireshark - Network traffic analyzer
6  * By Gerald Combs <gerald@wireshark.org>
7  * Copyright 1998 Gerald Combs
8  *
9  *
10  * SPDX-License-Identifier: GPL-2.0-or-later
11  */
12 
13 #ifndef __PACKET_RDP_H__
14 #define __PACKET_RDP_H__
15 
16 #include <glib.h>
17 #include <epan/packet.h>
18 
19 extern int proto_rdp;
20 
21 #define RDP_MAX_CHANNELS 31
22 
23 typedef enum {
24  RDP_CHANNEL_UNKNOWN,
25  RDP_CHANNEL_DRDYNVC,
26  RDP_CHANNEL_CLIPBOARD,
27  RDP_CHANNEL_SOUND,
28  RDP_CHANNEL_DISK,
29  RDP_CHANNEL_RAIL,
30 } rdp_known_channel_t;
31 
32 typedef struct _rdp_channel_def {
33  guint32 value;
34  const gchar *strptr;
35  rdp_known_channel_t channelType;
37 
38 typedef struct _rdp_server_address {
39  address addr;
40  guint16 port;
42 
43 
44 typedef struct _rdp_conv_info_t {
45  guint32 staticChannelId;
46  guint32 messageChannelId;
47  guint32 encryptionMethod;
48  guint32 encryptionLevel;
49  guint32 licenseAgreed;
50  rdp_server_address_t serverAddr;
51  guint8 maxChannels;
52  gboolean isRdstls;
53  rdp_channel_def_t staticChannels[RDP_MAX_CHANNELS+1];
55 
56 gint dissect_rdp_bandwidth_req(tvbuff_t *tvb, gint offset, packet_info *pinfo, proto_tree *tree, gboolean from_server);
57 void rdp_transport_set_udp_conversation(const address *serverAddr, guint16 serverPort, gboolean reliable, guint32 reqId,
58  guint8 *cookie, conversation_t *conv);
59 conversation_t *rdp_find_tcp_conversation_from_udp(conversation_t *udp);
60 
61 #endif /* __PACKET_RDP_H__ */
Definition: address.h:56
Definition: packet_info.h:44
Definition: proto.h:904
Definition: packet-rdp.h:32
Definition: packet-rdp.h:44
Definition: packet-rdp.h:38
Definition: conversation.h:220
Definition: tvbuff-int.h:35