https://git.reactos.org/?p=reactos.git;a=commitdiff;h=bb9eec753791dabefdade…
commit bb9eec753791dabefdadee7969741687eb405ff8
Author: Pierre Schweitzer <pierre(a)reactos.org>
AuthorDate: Mon Feb 25 22:25:03 2019 +0100
Commit: Pierre Schweitzer <pierre(a)reactos.org>
CommitDate: Mon Feb 25 22:34:28 2019 +0100
[AFD] Add default window sizes on socket creation
---
drivers/network/afd/afd/main.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drivers/network/afd/afd/main.c b/drivers/network/afd/afd/main.c
index 04e28652c6..db01703534 100644
--- a/drivers/network/afd/afd/main.c
+++ b/drivers/network/afd/afd/main.c
@@ -22,6 +22,10 @@ DWORD DebugTraceLevel = MIN_TRACE;
#endif /* DBG */
+/* FIXME: should depend on SystemSize */
+ULONG AfdReceiveWindowSize = 0x2000;
+ULONG AfdSendWindowSize = 0x2000;
+
void OskitDumpBuffer( PCHAR Data, UINT Len ) {
unsigned int i;
@@ -352,6 +356,8 @@ AfdCreateSocket(PDEVICE_OBJECT DeviceObject, PIRP Irp,
FCB->DeviceExt = DeviceExt;
FCB->AddressFile.Handle = INVALID_HANDLE_VALUE;
FCB->Connection.Handle = INVALID_HANDLE_VALUE;
+ FCB->Recv.Size = AfdReceiveWindowSize;
+ FCB->Send.Size = AfdSendWindowSize;
KeInitializeMutex( &FCB->Mutex, 0 );