Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
packet-rdp.h
1/* packet-rdp.h
2 * RDP dissection
3 * Author: David Fort
4 *
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <[email protected]>
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 <epan/packet.h>
17
18extern int proto_rdp;
19
20#define RDP_MAX_CHANNELS 31
21
22typedef enum {
23 RDP_CHANNEL_UNKNOWN,
24 RDP_CHANNEL_DRDYNVC,
25 RDP_CHANNEL_CLIPBOARD,
26 RDP_CHANNEL_SOUND,
27 RDP_CHANNEL_DISK,
28 RDP_CHANNEL_RAIL,
29} rdp_known_channel_t;
30
31typedef struct _rdp_channel_def {
32 uint32_t value;
33 const char *strptr;
34 rdp_known_channel_t channelType;
36
37typedef struct _rdp_server_address {
38 address addr;
39 uint16_t port;
41
42
43typedef 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;
50 uint8_t maxChannels;
51 bool isRdstls;
52 rdp_channel_def_t staticChannels[RDP_MAX_CHANNELS+1];
54
55int dissect_rdp_bandwidth_req(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, bool from_server);
56void rdp_transport_set_udp_conversation(const address *serverAddr, uint16_t serverPort, bool reliable, uint32_t reqId,
57 uint8_t *cookie, conversation_t *conv);
58conversation_t *rdp_find_tcp_conversation_from_udp(conversation_t *udp);
59
60#endif /* __PACKET_RDP_H__ */
Definition address.h:56
Definition packet_info.h:43
Definition proto.h:903
Definition packet-rdp.h:31
Definition packet-rdp.h:43
Definition packet-rdp.h:37
Definition conversation.h:224
Definition tvbuff-int.h:35