diff options
author | Vic Lee <llyzs@163.com> | 2009-10-07 11:01:55 +0800 |
---|---|---|
committer | Johannes Schindelin <johannes.schindelin@gmx.de> | 2009-11-02 16:10:59 +0100 |
commit | 29990f0090754c722653aafd3fc6800cebc1584c (patch) | |
tree | 891066286999828e6170cddde6bc8bdaaae98496 /rfb/rfbclient.h | |
parent | 95ae56c83110c35bce9752d18975b6edcd8088b9 (diff) | |
download | libtdevnc-29990f0090754c722653aafd3fc6800cebc1584c.tar.gz libtdevnc-29990f0090754c722653aafd3fc6800cebc1584c.zip |
Add MSLogon security type
Signed-off-by: Vic Lee <llyzs@163.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Diffstat (limited to 'rfb/rfbclient.h')
-rw-r--r-- | rfb/rfbclient.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/rfb/rfbclient.h b/rfb/rfbclient.h index c32168c..6d38c8f 100644 --- a/rfb/rfbclient.h +++ b/rfb/rfbclient.h @@ -46,6 +46,16 @@ (((l) & 0x0000ff00) << 8) | \ (((l) & 0x000000ff) << 24)) : (l)) +#define rfbClientSwap64IfLE(l) \ + (*(char *)&client->endianTest ? ((((l) & 0xff00000000000000ULL) >> 56) | \ + (((l) & 0x00ff000000000000ULL) >> 40) | \ + (((l) & 0x0000ff0000000000ULL) >> 24) | \ + (((l) & 0x000000ff00000000ULL) >> 8) | \ + (((l) & 0x00000000ff000000ULL) << 8) | \ + (((l) & 0x0000000000ff0000ULL) << 24) | \ + (((l) & 0x000000000000ff00ULL) << 40) | \ + (((l) & 0x00000000000000ffULL) << 56)) : (l)) + #define FLASH_PORT_OFFSET 5400 #define LISTEN_PORT_OFFSET 5500 #define TUNNEL_PORT_OFFSET 5500 |