[ros-diffs] [cgutman] 41388: - Implement NdisCancelSendPackets

cgutman at svn.reactos.org cgutman at svn.reactos.org
Fri Jun 12 01:53:24 CEST 2009


Author: cgutman
Date: Fri Jun 12 03:53:23 2009
New Revision: 41388

URL: http://svn.reactos.org/svn/reactos?rev=41388&view=rev
Log:
 - Implement NdisCancelSendPackets

Modified:
    trunk/reactos/drivers/network/ndis/ndis/50stubs.c
    trunk/reactos/drivers/network/ndis/ndis/miniport.c

Modified: trunk/reactos/drivers/network/ndis/ndis/50stubs.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/ndis/ndis/50stubs.c?rev=41388&r1=41387&r2=41388&view=diff
==============================================================================
--- trunk/reactos/drivers/network/ndis/ndis/50stubs.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/ndis/ndis/50stubs.c [iso-8859-1] Fri Jun 12 03:53:23 2009
@@ -142,18 +142,6 @@
     UNIMPLEMENTED
 
     return NULL;
-}
-
-/*
- * @unimplemented
- */
-VOID
-EXPORT
-NdisCancelSendPackets(
-    IN NDIS_HANDLE  NdisBindingHandle,
-    IN PVOID  CancelId)
-{
-    UNIMPLEMENTED
 }
 
 /*

Modified: trunk/reactos/drivers/network/ndis/ndis/miniport.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/ndis/ndis/miniport.c?rev=41388&r1=41387&r2=41388&view=diff
==============================================================================
--- trunk/reactos/drivers/network/ndis/ndis/miniport.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/ndis/ndis/miniport.c [iso-8859-1] Fri Jun 12 03:53:23 2009
@@ -3009,5 +3009,27 @@
   IoCompleteRequest(Irp, IO_NO_INCREMENT);
 }
 
+/*
+ * @implemented
+ */
+VOID
+EXPORT
+NdisCancelSendPackets(
+    IN NDIS_HANDLE  NdisBindingHandle,
+    IN PVOID  CancelId)
+{
+    PADAPTER_BINDING AdapterBinding = NdisBindingHandle;
+    PLOGICAL_ADAPTER Adapter = AdapterBinding->Adapter;
+
+    NDIS_DbgPrint(MAX_TRACE, ("Called for ID %x.\n", CancelId));
+
+    if (Adapter->NdisMiniportBlock.DriverHandle->MiniportCharacteristics.CancelSendPacketsHandler)
+    {
+        (*Adapter->NdisMiniportBlock.DriverHandle->MiniportCharacteristics.CancelSendPacketsHandler)(
+          Adapter->NdisMiniportBlock.MiniportAdapterContext,
+          CancelId);
+    }
+}
+
 /* EOF */
 



More information about the Ros-diffs mailing list