From: Oliver Kurth Date: Wed, 27 Feb 2019 22:39:55 +0000 (-0800) Subject: Common header file change not applicable to open-vm-tools. X-Git-Tag: stable-11.0.0~181 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=705dea9434a9e2b4db2163e6cf9bdd5451f4e4d6;p=thirdparty%2Fopen-vm-tools.git Common header file change not applicable to open-vm-tools. --- diff --git a/open-vm-tools/services/plugins/dndcp/dnd/dnd.h b/open-vm-tools/services/plugins/dndcp/dnd/dnd.h index 9701f45f6..db8d2b144 100644 --- a/open-vm-tools/services/plugins/dndcp/dnd/dnd.h +++ b/open-vm-tools/services/plugins/dndcp/dnd/dnd.h @@ -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. */