1 |
/* |
/* |
2 |
rdesktop: A Remote Desktop Protocol client. |
rdesktop: A Remote Desktop Protocol client. |
3 |
Parsing primitives |
Parsing primitives |
4 |
Copyright (C) Matthew Chapman 1999-2000 |
Copyright (C) Matthew Chapman 1999-2002 |
5 |
|
|
6 |
This program is free software; you can redistribute it and/or modify |
This program is free software; you can redistribute it and/or modify |
7 |
it under the terms of the GNU General Public License as published by |
it under the terms of the GNU General Public License as published by |
31 |
unsigned char *mcs_hdr; |
unsigned char *mcs_hdr; |
32 |
unsigned char *sec_hdr; |
unsigned char *sec_hdr; |
33 |
unsigned char *rdp_hdr; |
unsigned char *rdp_hdr; |
34 |
|
unsigned char *channel_hdr; |
35 |
|
|
36 |
} *STREAM; |
} |
37 |
|
*STREAM; |
38 |
|
|
39 |
#define s_push_layer(s,h,n) { (s)->h = (s)->p; (s)->p += n; } |
#define s_push_layer(s,h,n) { (s)->h = (s)->p; (s)->p += n; } |
40 |
#define s_pop_layer(s,h) (s)->p = (s)->h; |
#define s_pop_layer(s,h) (s)->p = (s)->h; |