Author: pschweitzer
Date: Sun Nov 29 19:53:48 2015
New Revision: 70213
URL:
http://svn.reactos.org/svn/reactos?rev=70213&view=rev
Log:
[TCPIP]
Stub implementation of IOCTL_QUERY_IP_HW_ADDRESS.
This fixes 5 tests in iphlpapi_apitest!
Modified:
trunk/reactos/drivers/network/tcpip/include/dispatch.h
trunk/reactos/drivers/network/tcpip/tcpip/dispatch.c
trunk/reactos/drivers/network/tcpip/tcpip/main.c
Modified: trunk/reactos/drivers/network/tcpip/include/dispatch.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/tcpip/incl…
==============================================================================
--- trunk/reactos/drivers/network/tcpip/include/dispatch.h [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/tcpip/include/dispatch.h [iso-8859-1] Sun Nov 29
19:53:48 2015
@@ -69,6 +69,10 @@
PIRP Irp,
PIO_STACK_LOCATION IrpSp);
+NTSTATUS DispTdiQueryIpHwAddress(
+ PIRP Irp,
+ PIO_STACK_LOCATION IrpSp);
+
VOID DispDoDisconnect(
PVOID Data);
Modified: trunk/reactos/drivers/network/tcpip/tcpip/dispatch.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/tcpip/tcpi…
==============================================================================
--- trunk/reactos/drivers/network/tcpip/tcpip/dispatch.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/tcpip/tcpip/dispatch.c [iso-8859-1] Sun Nov 29 19:53:48
2015
@@ -1609,4 +1609,18 @@
return Status;
}
+NTSTATUS DispTdiQueryIpHwAddress( PIRP Irp, PIO_STACK_LOCATION IrpSp ) {
+ NTSTATUS Status;
+
+ Status = STATUS_NOT_IMPLEMENTED;
+ if (IrpSp->Parameters.DeviceIoControl.InputBufferLength < 2 * sizeof(ULONG)) {
+ Status = STATUS_INVALID_BUFFER_SIZE;
+ goto Exit;
+ }
+
+Exit:
+ Irp->IoStatus.Status = Status;
+ return Status;
+}
+
/* EOF */
Modified: trunk/reactos/drivers/network/tcpip/tcpip/main.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/tcpip/tcpi…
==============================================================================
--- trunk/reactos/drivers/network/tcpip/tcpip/main.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/tcpip/tcpip/main.c [iso-8859-1] Sun Nov 29 19:53:48
2015
@@ -525,6 +525,11 @@
Status = DispTdiDeleteIPAddress(Irp, IrpSp);
break;
+ case IOCTL_QUERY_IP_HW_ADDRESS:
+ TI_DbgPrint(MIN_TRACE, ("QUERY_IP_HW_ADDRESS\n"));
+ Status = DispTdiQueryIpHwAddress(Irp, IrpSp);
+ break;
+
default:
TI_DbgPrint(MIN_TRACE, ("Unknown IOCTL 0x%X\n",
IrpSp->Parameters.DeviceIoControl.IoControlCode));