mirror of
https://github.com/reactos/reactos.git
synced 2025-01-05 22:12:46 +00:00
- GEt TCPIP building with msvc.
svn path=/trunk/; revision=20657
This commit is contained in:
parent
38c460379c
commit
9e3f61ba5d
5 changed files with 10 additions and 8 deletions
|
@ -1,6 +1,8 @@
|
|||
#include <roscfg.h>
|
||||
#include <limits.h>
|
||||
#include <ntddk.h>
|
||||
#include <tdi.h>
|
||||
#include <tdistat.h>
|
||||
#include <../recmutex/recmutex.h>
|
||||
#include <roscfg.h>
|
||||
#include <tcpip.h>
|
||||
|
|
|
@ -43,7 +43,7 @@ NTSTATUS RouterStartup(
|
|||
NTSTATUS RouterShutdown(
|
||||
VOID);
|
||||
|
||||
UINT CountFIBs();
|
||||
UINT CountFIBs(VOID);
|
||||
|
||||
UINT CopyFIBs( PFIB_ENTRY Target );
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ VOID RecursiveMutexInit( PRECURSIVE_MUTEX RecMutex ) {
|
|||
|
||||
/* NOTE: When we leave, the FAST_MUTEX must have been released. The result
|
||||
* is that we always exit in the same irql as entering */
|
||||
UINT RecursiveMutexEnter( PRECURSIVE_MUTEX RecMutex, BOOL ToWrite ) {
|
||||
SIZE_T RecursiveMutexEnter( PRECURSIVE_MUTEX RecMutex, BOOLEAN ToWrite ) {
|
||||
NTSTATUS Status = STATUS_SUCCESS;
|
||||
PVOID CurrentThread = KeGetCurrentThread();
|
||||
|
||||
|
|
|
@ -160,7 +160,7 @@ VOID DispDoDisconnect( PVOID Data ) {
|
|||
DispCancelComplete(DisType->FileObject);
|
||||
}
|
||||
|
||||
VOID DDKAPI DispCancelRequest(
|
||||
VOID NTAPI DispCancelRequest(
|
||||
PDEVICE_OBJECT Device,
|
||||
PIRP Irp)
|
||||
/*
|
||||
|
@ -245,7 +245,7 @@ VOID DDKAPI DispCancelRequest(
|
|||
}
|
||||
|
||||
|
||||
VOID DDKAPI DispCancelListenRequest(
|
||||
VOID NTAPI DispCancelListenRequest(
|
||||
PDEVICE_OBJECT Device,
|
||||
PIRP Irp)
|
||||
/*
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
TDI_STATUS InfoTdiQueryGetAddrTable( PNDIS_BUFFER Buffer,
|
||||
PUINT BufferSize ) {
|
||||
|
||||
IF_LIST_ITER(CurrentIF);
|
||||
TDI_STATUS Status = TDI_INVALID_REQUEST;
|
||||
KIRQL OldIrql;
|
||||
UINT Count = 0;
|
||||
|
@ -24,6 +23,7 @@ TDI_STATUS InfoTdiQueryGetAddrTable( PNDIS_BUFFER Buffer,
|
|||
PIPADDR_ENTRY IpAddress =
|
||||
ExAllocatePool( NonPagedPool, sizeof( IPADDR_ENTRY ) * IfCount );
|
||||
PIPADDR_ENTRY IpCurrent = IpAddress;
|
||||
IF_LIST_ITER(CurrentIF);
|
||||
|
||||
TI_DbgPrint(DEBUG_INFO, ("Called.\n"));
|
||||
|
||||
|
@ -66,8 +66,8 @@ TDI_STATUS InfoTdiQueryGetAddrTable( PNDIS_BUFFER Buffer,
|
|||
TDI_STATUS InfoTdiQueryGetRouteTable( PNDIS_BUFFER Buffer, PUINT BufferSize ) {
|
||||
TDI_STATUS Status;
|
||||
KIRQL OldIrql;
|
||||
UINT RtCount = CountFIBs(),
|
||||
Size = sizeof( IPROUTE_ENTRY ) * RtCount;
|
||||
UINT RtCount = CountFIBs();
|
||||
UINT Size = sizeof( IPROUTE_ENTRY ) * RtCount;
|
||||
PFIB_ENTRY RCache =
|
||||
ExAllocatePool( NonPagedPool, sizeof( FIB_ENTRY ) * RtCount ),
|
||||
RCacheCur = RCache;
|
||||
|
@ -142,7 +142,7 @@ TDI_STATUS InfoTdiQueryGetIPSnmpInfo( PNDIS_BUFFER Buffer,
|
|||
PUINT BufferSize ) {
|
||||
IPSNMP_INFO SnmpInfo;
|
||||
UINT IfCount = CountInterfaces();
|
||||
UINT RouteCount = CountFIBs( NULL );
|
||||
UINT RouteCount = CountFIBs();
|
||||
TDI_STATUS Status = TDI_INVALID_REQUEST;
|
||||
|
||||
TI_DbgPrint(DEBUG_INFO, ("Called.\n"));
|
||||
|
|
Loading…
Reference in a new issue