5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
10 * SPDX-License-Identifier: GPL-2.0-or-later
13 #ifndef __PACKET_RDP_H__
14 #define __PACKET_RDP_H__
16 #include <epan/packet.h>
20 #define RDP_MAX_CHANNELS 31
25 RDP_CHANNEL_CLIPBOARD
,
29 } rdp_known_channel_t
;
31 typedef struct _rdp_channel_def
{
34 rdp_known_channel_t channelType
;
37 typedef struct _rdp_server_address
{
40 } rdp_server_address_t
;
43 typedef struct _rdp_conv_info_t
{
44 uint32_t staticChannelId
;
45 uint32_t messageChannelId
;
46 uint32_t encryptionMethod
;
47 uint32_t encryptionLevel
;
48 uint32_t licenseAgreed
;
49 rdp_server_address_t serverAddr
;
52 rdp_channel_def_t staticChannels
[RDP_MAX_CHANNELS
+1];
55 int dissect_rdp_bandwidth_req(tvbuff_t
*tvb
, int offset
, packet_info
*pinfo
, proto_tree
*tree
, bool from_server
);
56 void rdp_transport_set_udp_conversation(const address
*serverAddr
, uint16_t serverPort
, bool reliable
, uint32_t reqId
,
57 uint8_t *cookie
, conversation_t
*conv
);
58 conversation_t
*rdp_find_tcp_conversation_from_udp(conversation_t
*udp
);
60 #endif /* __PACKET_RDP_H__ */