[FREELDR] PXE: Fix network packet size
authorMichael Fritscher <reactos@mifritscher.de>
Fri, 1 Feb 2019 19:14:00 +0000 (22:14 +0300)
committerHermès BÉLUSCA - MAÏTO <hermes.belusca-maito@reactos.org>
Tue, 19 Feb 2019 15:04:20 +0000 (16:04 +0100)
1024 bytes should fit into a single network packet. CORE-15706

boot/freeldr/freeldr/lib/fs/pxe.c

index 71f7e37..4b5aac9 100644 (file)
@@ -32,7 +32,7 @@ static CHAR _OpenFileName[128];
 static ULONG _FileSize = 0;
 static ULONG _FilePosition = 0;
 static ULONG _PacketPosition = 0;
-static UCHAR _Packet[4096];
+static UCHAR _Packet[1024]; // Should be a value which can be transferred well in one packet over the network
 static UCHAR* _CachedFile = NULL;
 static ULONG _CachedLength = 0;