From bb9eec753791dabefdadee7969741687eb405ff8 Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Mon, 25 Feb 2019 22:25:03 +0100 Subject: [PATCH] [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 04e28652c6d..db017035341 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 );