- Fix the NdisMEthIndicateReceive macro and ETH_RCV_INDICATE_HANDLER prototype to...
authorFilip Navara <filip.navara@gmail.com>
Sun, 10 Oct 2004 17:16:42 +0000 (17:16 +0000)
committerFilip Navara <filip.navara@gmail.com>
Sun, 10 Oct 2004 17:16:42 +0000 (17:16 +0000)
- Modify NDIS accordingly.

svn path=/trunk/; revision=11258

reactos/drivers/net/ndis/ndis/miniport.c
reactos/include/net/ndis.h
reactos/w32api/include/ddk/ndis.h

index 832a9ee..f07fd60 100644 (file)
@@ -358,7 +358,7 @@ MiniEthReceiveComplete(
 \f
 VOID STDCALL
 MiniEthReceiveIndication(
-    IN  NDIS_HANDLE MiniportAdapter,
+    IN  PETH_FILTER Filter,
     IN  NDIS_HANDLE MacReceiveContext,
     IN  PCHAR       Address,
     IN  PVOID       HeaderBuffer,
@@ -379,7 +379,7 @@ MiniEthReceiveIndication(
  *     PacketSize          = Total size of received packet
  */
 {
-    MiniIndicateData(MiniportAdapter,
+    MiniIndicateData((PLOGICAL_ADAPTER)Filter->Miniport,
                     MacReceiveContext,
                     HeaderBuffer,
                     HeaderBufferSize,
index 5957365..d569ee1 100644 (file)
@@ -4452,7 +4452,7 @@ typedef VOID
 
 typedef VOID
 (STDCALL *ETH_RCV_INDICATE_HANDLER)(
-    IN  NDIS_HANDLE MiniportAdapter,
+    IN  PETH_FILTER Filter,
     IN  NDIS_HANDLE MacReceiveContext,
     IN  PCHAR       Address,
     IN  PVOID       HeaderBuffer,
@@ -4986,7 +4986,7 @@ NdisMDeregisterIoPortRange(
                                 PacketSize)             \
 {                                                       \
     (*((PNDIS_MINIPORT_BLOCK)(MiniportAdapterHandle))->EthRxIndicateHandler)( \
-               (MiniportAdapterHandle),  \
+               ((PNDIS_MINIPORT_BLOCK)(MiniportAdapterHandle))->FilterDbs.u.EthDB,  \
                (MiniportReceiveContext), \
                (HeaderBuffer),           \
                (HeaderBuffer),           \
index fa53f64..69a5d8d 100644 (file)
@@ -4069,7 +4069,7 @@ typedef VOID DDKAPI
 
 typedef VOID DDKAPI
 (*ETH_RCV_INDICATE_HANDLER)(
-  IN NDIS_HANDLE  MiniportAdapter,
+  IN PETH_FILTER  Filter,
   IN NDIS_HANDLE  MacReceiveContext,
   IN PCHAR  Address,
   IN PVOID  HeaderBuffer,
@@ -4627,7 +4627,7 @@ NdisMDeregisterIoPortRange(
                                 PacketSize)             \
 {                                                       \
     (*((PNDIS_MINIPORT_BLOCK)(MiniportAdapterHandle))->EthRxIndicateHandler)( \
-               (MiniportAdapterHandle),  \
+               ((PNDIS_MINIPORT_BLOCK)(MiniportAdapterHandle))->FilterDbs.EthDB,  \
                (MiniportReceiveContext), \
                (HeaderBuffer),           \
                (HeaderBuffer),           \