qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [Patch] Support UltraVNC clients
@ 2007-09-30 10:49 Eduardo Felipe
  0 siblings, 0 replies; only message in thread
From: Eduardo Felipe @ 2007-09-30 10:49 UTC (permalink / raw)
  To: qemu-devel


[-- Attachment #1.1: Type: text/plain, Size: 125 bytes --]

Hi,

UltraVNC clients report non standard RFB protocol 3.4. Attached patch makes
vnc server treat them as 3.3.

Regards,
Edu

[-- Attachment #1.2: Type: text/html, Size: 144 bytes --]

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: ultravnc.patch --]
[-- Type: text/x-patch; name="ultravnc.patch", Size: 727 bytes --]

*** vnc.c	17 Sep 2007 08:09:45 -0000	1.24
--- vnc.c	26 Sep 2007 22:44:57 -0000
@@ -1818,6 +1818,7 @@
     VNC_DEBUG("Client request protocol version %d.%d\n", vs->major, vs->minor);
     if (vs->major != 3 ||
 	(vs->minor != 3 &&
+	 vs->minor != 4 &&
 	 vs->minor != 5 &&
 	 vs->minor != 7 &&
 	 vs->minor != 8)) {
@@ -1827,10 +1828,10 @@
 	vnc_client_error(vs);
 	return 0;
     }
-    /* Some broken client report v3.5 which spec requires to be treated
+    /* Some broken clients report v3.4 or v3.5, which spec requires to be treated
      * as equivalent to v3.3 by servers
      */
-    if (vs->minor == 5)
+    if (vs->minor == 4 || vs->minor == 5)
 	vs->minor = 3;
 
     if (vs->minor == 3) {


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-09-30 10:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-30 10:49 [Qemu-devel] [Patch] Support UltraVNC clients Eduardo Felipe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).