]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Common header file change not applicable to open-vm-tools.
authorOliver Kurth <okurth@vmware.com>
Wed, 27 Feb 2019 22:39:55 +0000 (14:39 -0800)
committerOliver Kurth <okurth@vmware.com>
Wed, 27 Feb 2019 22:39:55 +0000 (14:39 -0800)
open-vm-tools/services/plugins/dndcp/dnd/dnd.h

index 9701f45f640691b441b6b9bd2afef2f5ae005ff4..db8d2b144fdc169ab076be0d78604fceac51a4c6 100644 (file)
@@ -199,8 +199,18 @@ typedef struct DnDTransportBuffer {
 } DnDTransportBuffer;
 
 #define DND_TRANSPORT_PACKET_HEADER_SIZE      (5 * sizeof(uint32))
+#ifdef VMX86_HORIZON_VIEW
+/*
+ * For Horizon DnD, expand the message size to almost 1M, which is the
+ * mkscontrol message limitation. Leave 100 bytes for mkscontrol message
+ * overhead (message header + length of message name)
+ */
+#define DND_MAX_TRANSPORT_PACKET_SIZE         ((1 << 20) - 100)
+#else
 /* Close to 64k (maximum guestRpc message size). Leave some space for guestRpc header. */
 #define DND_MAX_TRANSPORT_PACKET_SIZE         ((1 << 16) - 100)
+#endif
+
 #define DND_MAX_TRANSPORT_PACKET_PAYLOAD_SIZE (DND_MAX_TRANSPORT_PACKET_SIZE - \
                                                DND_TRANSPORT_PACKET_HEADER_SIZE)
 #define DND_MAX_TRANSPORT_LATENCY_TIME        3 * 1000000 /* 3 seconds. */