Revert "TODO epan/dissectors/asn1/kerberos/packet-kerberos-template.c new GSS flags"
[wireshark-sm.git] / epan / dissectors / packet-rdp.h
blob323cdbef315d3dfd796784dfd2aea5053c94ea83
1 /* packet-rdp.h
2 * RDP dissection
3 * Author: David Fort
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>
18 extern int proto_rdp;
20 #define RDP_MAX_CHANNELS 31
22 typedef 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;
31 typedef struct _rdp_channel_def {
32 uint32_t value;
33 const char *strptr;
34 rdp_known_channel_t channelType;
35 } rdp_channel_def_t;
37 typedef struct _rdp_server_address {
38 address addr;
39 uint16_t port;
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;
50 uint8_t maxChannels;
51 bool isRdstls;
52 rdp_channel_def_t staticChannels[RDP_MAX_CHANNELS+1];
53 } rdp_conv_info_t;
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__ */