use MS name for PDU types

RDP_PDU_REDIRECT has been removed as it is not found in MS-RDPBCGR and
not used anywhere.
master
Koichiro IWAO 6 years ago
parent b2a7bb0cf0
commit 0e9e25f100
No known key found for this signature in database
GPG Key ID: 9F72CDBC01BF10EB

@ -671,12 +671,12 @@
#define LICENCE_SIGNATURE_SIZE 16 #define LICENCE_SIGNATURE_SIZE 16
/* RDP PDU codes */ /* PDU Types (MS-RDPBCGR 2.2.8.1.1.1.1) */
#define RDP_PDU_DEMAND_ACTIVE 1 #define PDUTYPE_DEMANDACTIVEPDU 0x1
#define RDP_PDU_CONFIRM_ACTIVE 3 #define PDUTYPE_CONFIRMACTIVEPDU 0x3
#define RDP_PDU_REDIRECT 4 #define PDUTYPE_DEACTIVATEALLPDU 0x6
#define RDP_PDU_DEACTIVATE 6 #define PDUTYPE_DATAPDU 0x7
#define RDP_PDU_DATA 7 #define PDUTYPE_SERVER_REDIR_PKT 0xA
/* See T.128 */ /* See T.128 */
/* not used anywhere */ /* not used anywhere */

@ -230,10 +230,10 @@ libxrdp_process_data(struct xrdp_session *session, struct stream *s)
case 0: case 0:
dead_lock_counter++; dead_lock_counter++;
break; break;
case RDP_PDU_CONFIRM_ACTIVE: /* 3 */ case PDUTYPE_CONFIRMACTIVEPDU:
xrdp_caps_process_confirm_active(rdp, s); xrdp_caps_process_confirm_active(rdp, s);
break; break;
case RDP_PDU_DATA: /* 7 */ case PDUTYPE_DATAPDU:
if (xrdp_rdp_process_data(rdp, s) != 0) if (xrdp_rdp_process_data(rdp, s) != 0)
{ {
DEBUG(("libxrdp_process_data returned non zero")); DEBUG(("libxrdp_process_data returned non zero"));

@ -1024,7 +1024,7 @@ xrdp_caps_send_demand_active(struct xrdp_rdp *self)
caps_count_ptr[2] = caps_count >> 16; caps_count_ptr[2] = caps_count >> 16;
caps_count_ptr[3] = caps_count >> 24; caps_count_ptr[3] = caps_count >> 24;
if (xrdp_rdp_send(self, s, RDP_PDU_DEMAND_ACTIVE) != 0) if (xrdp_rdp_send(self, s, PDUTYPE_DEMANDACTIVEPDU) != 0)
{ {
free_stream(s); free_stream(s);
return 1; return 1;

@ -561,7 +561,7 @@ xrdp_rdp_send_data(struct xrdp_rdp *self, struct stream *s,
DEBUG(("in xrdp_rdp_send_data")); DEBUG(("in xrdp_rdp_send_data"));
s_pop_layer(s, rdp_hdr); s_pop_layer(s, rdp_hdr);
len = (int)(s->end - s->p); len = (int)(s->end - s->p);
pdutype = 0x10 | RDP_PDU_DATA; pdutype = 0x10 | PDUTYPE_DATAPDU;
pdulen = len; pdulen = len;
dlen = len; dlen = len;
ctype = 0; ctype = 0;
@ -1296,7 +1296,7 @@ xrdp_rdp_send_deactivate(struct xrdp_rdp *self)
s_mark_end(s); s_mark_end(s);
if (xrdp_rdp_send(self, s, RDP_PDU_DEACTIVATE) != 0) if (xrdp_rdp_send(self, s, PDUTYPE_DEACTIVATEALLPDU) != 0)
{ {
free_stream(s); free_stream(s);
DEBUG(("out xrdp_rdp_send_deactivate error")); DEBUG(("out xrdp_rdp_send_deactivate error"));

Loading…
Cancel
Save