mirror of
https://github.com/reactos/reactos.git
synced 2025-01-07 14:51:00 +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 <roscfg.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <ntddk.h>
|
#include <ntddk.h>
|
||||||
|
#include <tdi.h>
|
||||||
|
#include <tdistat.h>
|
||||||
#include <../recmutex/recmutex.h>
|
#include <../recmutex/recmutex.h>
|
||||||
#include <roscfg.h>
|
#include <roscfg.h>
|
||||||
#include <tcpip.h>
|
#include <tcpip.h>
|
||||||
|
|
|
@ -43,7 +43,7 @@ NTSTATUS RouterStartup(
|
||||||
NTSTATUS RouterShutdown(
|
NTSTATUS RouterShutdown(
|
||||||
VOID);
|
VOID);
|
||||||
|
|
||||||
UINT CountFIBs();
|
UINT CountFIBs(VOID);
|
||||||
|
|
||||||
UINT CopyFIBs( PFIB_ENTRY Target );
|
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
|
/* NOTE: When we leave, the FAST_MUTEX must have been released. The result
|
||||||
* is that we always exit in the same irql as entering */
|
* 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;
|
NTSTATUS Status = STATUS_SUCCESS;
|
||||||
PVOID CurrentThread = KeGetCurrentThread();
|
PVOID CurrentThread = KeGetCurrentThread();
|
||||||
|
|
||||||
|
|
|
@ -160,7 +160,7 @@ VOID DispDoDisconnect( PVOID Data ) {
|
||||||
DispCancelComplete(DisType->FileObject);
|
DispCancelComplete(DisType->FileObject);
|
||||||
}
|
}
|
||||||
|
|
||||||
VOID DDKAPI DispCancelRequest(
|
VOID NTAPI DispCancelRequest(
|
||||||
PDEVICE_OBJECT Device,
|
PDEVICE_OBJECT Device,
|
||||||
PIRP Irp)
|
PIRP Irp)
|
||||||
/*
|
/*
|
||||||
|
@ -245,7 +245,7 @@ VOID DDKAPI DispCancelRequest(
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
VOID DDKAPI DispCancelListenRequest(
|
VOID NTAPI DispCancelListenRequest(
|
||||||
PDEVICE_OBJECT Device,
|
PDEVICE_OBJECT Device,
|
||||||
PIRP Irp)
|
PIRP Irp)
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -16,7 +16,6 @@
|
||||||
TDI_STATUS InfoTdiQueryGetAddrTable( PNDIS_BUFFER Buffer,
|
TDI_STATUS InfoTdiQueryGetAddrTable( PNDIS_BUFFER Buffer,
|
||||||
PUINT BufferSize ) {
|
PUINT BufferSize ) {
|
||||||
|
|
||||||
IF_LIST_ITER(CurrentIF);
|
|
||||||
TDI_STATUS Status = TDI_INVALID_REQUEST;
|
TDI_STATUS Status = TDI_INVALID_REQUEST;
|
||||||
KIRQL OldIrql;
|
KIRQL OldIrql;
|
||||||
UINT Count = 0;
|
UINT Count = 0;
|
||||||
|
@ -24,6 +23,7 @@ TDI_STATUS InfoTdiQueryGetAddrTable( PNDIS_BUFFER Buffer,
|
||||||
PIPADDR_ENTRY IpAddress =
|
PIPADDR_ENTRY IpAddress =
|
||||||
ExAllocatePool( NonPagedPool, sizeof( IPADDR_ENTRY ) * IfCount );
|
ExAllocatePool( NonPagedPool, sizeof( IPADDR_ENTRY ) * IfCount );
|
||||||
PIPADDR_ENTRY IpCurrent = IpAddress;
|
PIPADDR_ENTRY IpCurrent = IpAddress;
|
||||||
|
IF_LIST_ITER(CurrentIF);
|
||||||
|
|
||||||
TI_DbgPrint(DEBUG_INFO, ("Called.\n"));
|
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 InfoTdiQueryGetRouteTable( PNDIS_BUFFER Buffer, PUINT BufferSize ) {
|
||||||
TDI_STATUS Status;
|
TDI_STATUS Status;
|
||||||
KIRQL OldIrql;
|
KIRQL OldIrql;
|
||||||
UINT RtCount = CountFIBs(),
|
UINT RtCount = CountFIBs();
|
||||||
Size = sizeof( IPROUTE_ENTRY ) * RtCount;
|
UINT Size = sizeof( IPROUTE_ENTRY ) * RtCount;
|
||||||
PFIB_ENTRY RCache =
|
PFIB_ENTRY RCache =
|
||||||
ExAllocatePool( NonPagedPool, sizeof( FIB_ENTRY ) * RtCount ),
|
ExAllocatePool( NonPagedPool, sizeof( FIB_ENTRY ) * RtCount ),
|
||||||
RCacheCur = RCache;
|
RCacheCur = RCache;
|
||||||
|
@ -142,7 +142,7 @@ TDI_STATUS InfoTdiQueryGetIPSnmpInfo( PNDIS_BUFFER Buffer,
|
||||||
PUINT BufferSize ) {
|
PUINT BufferSize ) {
|
||||||
IPSNMP_INFO SnmpInfo;
|
IPSNMP_INFO SnmpInfo;
|
||||||
UINT IfCount = CountInterfaces();
|
UINT IfCount = CountInterfaces();
|
||||||
UINT RouteCount = CountFIBs( NULL );
|
UINT RouteCount = CountFIBs();
|
||||||
TDI_STATUS Status = TDI_INVALID_REQUEST;
|
TDI_STATUS Status = TDI_INVALID_REQUEST;
|
||||||
|
|
||||||
TI_DbgPrint(DEBUG_INFO, ("Called.\n"));
|
TI_DbgPrint(DEBUG_INFO, ("Called.\n"));
|
||||||
|
|
Loading…
Reference in a new issue