1 |
/* -*- c-basic-offset: 8 -*- |
/* -*- c-basic-offset: 8 -*- |
2 |
rdesktop: A Remote Desktop Protocol client. |
rdesktop: A Remote Desktop Protocol client. |
3 |
Protocol services - Multipoint Communications Service |
Protocol services - Multipoint Communications Service |
4 |
Copyright (C) Matthew Chapman 1999-2002 |
Copyright (C) Matthew Chapman 1999-2005 |
5 |
Copyright (C) Erik Forsberg 2003 |
Copyright (C) Erik Forsberg 2003 |
6 |
|
|
7 |
This program is free software; you can redistribute it and/or modify |
This program is free software; you can redistribute it and/or modify |
45 |
while (s->p < s->end) |
while (s->p < s->end) |
46 |
{ |
{ |
47 |
in_uint8(s, type); |
in_uint8(s, type); |
48 |
if (type & RDP_COMPRESSION) |
if (type & RDP5_COMPRESSED) |
49 |
{ |
{ |
50 |
in_uint8(s, ctype); |
in_uint8(s, ctype); |
51 |
in_uint16_le(s, length); |
in_uint16_le(s, length); |
52 |
type ^= RDP_COMPRESSION; |
type ^= RDP5_COMPRESSED; |
53 |
} |
} |
54 |
else |
else |
55 |
{ |
{ |
60 |
|
|
61 |
if (ctype & RDP_MPPC_COMPRESSED) |
if (ctype & RDP_MPPC_COMPRESSED) |
62 |
{ |
{ |
|
|
|
63 |
if (mppc_expand(s->p, length, ctype, &roff, &rlen) == -1) |
if (mppc_expand(s->p, length, ctype, &roff, &rlen) == -1) |
64 |
error("error while decompressing packet\n"); |
error("error while decompressing packet\n"); |
65 |
|
|
101 |
case 5: |
case 5: |
102 |
ui_set_null_cursor(); |
ui_set_null_cursor(); |
103 |
break; |
break; |
104 |
|
case 6: /* TODO: W2K3 SP1 sends this on connect */ |
105 |
|
break; |
106 |
case 8: |
case 8: |
107 |
in_uint16_le(ts, x); |
in_uint16_le(ts, x); |
108 |
in_uint16_le(ts, y); |
in_uint16_le(ts, y); |