From 2da558b4899cb1bd7e56f8c6c599c79cc4a9de66 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Wed, 13 Mar 2013 13:29:49 +0100 Subject: econproto: unknown_field_3 in reqconnect seems to be a version info If it is unequal to 3, the beamer claims the version is not supported. --- econproto.h | 2 +- econproxy.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/econproto.h b/econproto.h index 02a032b..57f4e4a 100644 --- a/econproto.h +++ b/econproto.h @@ -161,7 +161,7 @@ typedef struct { uint8_t gateAddress[ECON_IPADDRESS_SIZE]; uint8_t unknown_field_1; /* value: 0x02 */ uint8_t unknown_field_2; /* value: 0x01 */ - uint8_t unknown_field_3; /* value: 0x03 */ + uint8_t version; /* value: 0x03 */ rfbServerInitMsg vnesInitMsg; } e_command_reqconnect; diff --git a/econproxy.c b/econproxy.c index a5a0c85..bd1c92d 100644 --- a/econproxy.c +++ b/econproxy.c @@ -165,7 +165,8 @@ ep_reqconnect(struct ep *ep) * Windows client uses 0x02 and 0x01, so we do too. */ ep->epkt.cmd.command.reqconnect.unknown_field_1 = 0x02; ep->epkt.cmd.command.reqconnect.unknown_field_2 = 0x01; - ep->epkt.cmd.command.reqconnect.unknown_field_3 = 0x03; + + ep->epkt.cmd.command.reqconnect.version = 0x03; #if 0 memcpy(ep->epkt.cmd.command.reqconnect.EncPassword, "82091965", ECON_ENCRYPTION_MAXLEN); -- cgit