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
This commit is contained in:
Art Yerkes 2004-09-30 05:41:09 +00:00
parent e60bec5f2c
commit 03a9fe5219
4 changed files with 12 additions and 12 deletions

View file

@ -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 \

View file

@ -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;

View file

@ -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;

View file

@ -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));