From 03a9fe5219ba612d2e3d11c0c7b63f9a394e508b Mon Sep 17 00:00:00 2001 From: Art Yerkes Date: Thu, 30 Sep 2004 05:41:09 +0000 Subject: [PATCH] Fixes to interface. Prototypes which were being stubborn. I will have to figure out how to use these headers better. svn path=/trunk/; revision=11125 --- reactos/drivers/lib/ip/makefile | 5 ++--- reactos/drivers/lib/ip/network/loopback.c | 2 ++ reactos/drivers/lib/ip/transport/tcp/event.c | 3 +++ reactos/drivers/lib/ip/transport/tcp/tcp.c | 14 +++++--------- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/reactos/drivers/lib/ip/makefile b/reactos/drivers/lib/ip/makefile index ca918ca06fa..3d508c869bc 100644 --- a/reactos/drivers/lib/ip/makefile +++ b/reactos/drivers/lib/ip/makefile @@ -1,17 +1,16 @@ -# $Id: makefile,v 1.1 2004/09/29 05:10:46 arty Exp $ +# $Id: makefile,v 1.2 2004/09/30 05:41:09 arty Exp $ PATH_TO_TOP = ../../.. TARGET_TYPE = library -TARGET_NAME = ip$(KERNEL) +TARGET_NAME = ip TARGET_PCH = $(PATH_TO_TOP)/drivers/lib/ip/include/precomp.h # -DMEMTRACK TARGET_CFLAGS = \ -D__USE_W32API \ - $(DRIVER) \ -Wall -Werror \ -Iinclude \ -I../../net/tcpip/include \ diff --git a/reactos/drivers/lib/ip/network/loopback.c b/reactos/drivers/lib/ip/network/loopback.c index 4d25c5dcebf..796785e0720 100644 --- a/reactos/drivers/lib/ip/network/loopback.c +++ b/reactos/drivers/lib/ip/network/loopback.c @@ -10,6 +10,8 @@ #include "precomp.h" +VOID STDCALL KeAcquireSpinLockAtDpcLevel (IN PKSPIN_LOCK SpinLock); +VOID STDCALL KeReleaseSpinLockFromDpcLevel(IN PKSPIN_LOCK SpinLock); WORK_QUEUE_ITEM LoopWorkItem; PIP_INTERFACE Loopback = NULL; diff --git a/reactos/drivers/lib/ip/transport/tcp/event.c b/reactos/drivers/lib/ip/transport/tcp/event.c index f29f5bbd47d..9ff37c4d9a7 100644 --- a/reactos/drivers/lib/ip/transport/tcp/event.c +++ b/reactos/drivers/lib/ip/transport/tcp/event.c @@ -10,6 +10,9 @@ #include "precomp.h" +VOID STDCALL KeRaiseIrql(KIRQL NewIrql, PKIRQL OldIrql); +VOID STDCALL KeLowerIrql(KIRQL NewIrql); + extern ULONG TCP_IPIdentification; extern LIST_ENTRY SleepingThreadsList; extern FAST_MUTEX SleepingThreadsLock; diff --git a/reactos/drivers/lib/ip/transport/tcp/tcp.c b/reactos/drivers/lib/ip/transport/tcp/tcp.c index 0cf23d83d04..dbb3a6f1ccd 100644 --- a/reactos/drivers/lib/ip/transport/tcp/tcp.c +++ b/reactos/drivers/lib/ip/transport/tcp/tcp.c @@ -338,8 +338,8 @@ NTSTATUS TCPReceiveData ( PCONNECTION_ENDPOINT Connection, PNDIS_BUFFER Buffer, ULONG ReceiveLength, - ULONG ReceiveFlags, PULONG BytesReceived, + ULONG ReceiveFlags, PTCP_COMPLETION_ROUTINE Complete, PVOID Context ) { PCHAR DataBuffer; @@ -395,18 +395,14 @@ NTSTATUS TCPReceiveData NTSTATUS TCPSendData ( PCONNECTION_ENDPOINT Connection, - PNDIS_BUFFER Buffer, - ULONG DataSize, - ULONG Flags, - PULONG DataUsed) { + PCHAR BufferData, + ULONG PacketSize, + PULONG DataUsed, + ULONG Flags) { NTSTATUS Status; - PCHAR BufferData; - ULONG PacketSize; RecursiveMutexEnter( &TCPLock, TRUE ); - NdisQueryBuffer( Buffer, &BufferData, &PacketSize ); - TI_DbgPrint(MID_TRACE,("Connection = %x\n", Connection)); TI_DbgPrint(MID_TRACE,("Connection->SocketContext = %x\n", Connection->SocketContext));