summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2013-03-13 13:29:49 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2013-03-13 13:29:49 +0100
commit2da558b4899cb1bd7e56f8c6c599c79cc4a9de66 (patch)
tree9e9e3ef3c76a6f9b1cf41c70392754dbbc7d6013
parent41662ca4011229faf0d999f502837db17a924428 (diff)
downloadecon-2da558b4899cb1bd7e56f8c6c599c79cc4a9de66.tar.gz
econ-2da558b4899cb1bd7e56f8c6c599c79cc4a9de66.tar.bz2
econ-2da558b4899cb1bd7e56f8c6c599c79cc4a9de66.zip
econproto: unknown_field_3 in reqconnect seems to be a version infoHEADmaster
If it is unequal to 3, the beamer claims the version is not supported.
-rw-r--r--econproto.h2
-rw-r--r--econproxy.c3
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);