mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-01 04:13:35 +00:00
According to this osr page:
http://www.osr.com/ddk/network/103ndisx_51pu.htm NdisMEthIndicateReceive passes an NDIS_HANDLE (Specifically, MiniportAdapterHandle), rather than the ETH_FILTER structure. God knows why this wasn't caught before but it did awfully strange stuff including the occasional crash, and more importantly, seemingly randomly corrupting the LAN_ADAPTER and IP_INTERFACE structures in tcpip.sys when we landed in packet receiving in datalink/lan.c. Fixed now. svn path=/trunk/; revision=10276
This commit is contained in:
@@ -4452,7 +4452,7 @@ typedef VOID
|
||||
|
||||
typedef VOID
|
||||
(STDCALL *ETH_RCV_INDICATE_HANDLER)(
|
||||
IN PETH_FILTER Filter,
|
||||
IN NDIS_HANDLE MiniportAdapter,
|
||||
IN NDIS_HANDLE MacReceiveContext,
|
||||
IN PCHAR Address,
|
||||
IN PVOID HeaderBuffer,
|
||||
@@ -4986,7 +4986,7 @@ NdisMDeregisterIoPortRange(
|
||||
PacketSize) \
|
||||
{ \
|
||||
(*((PNDIS_MINIPORT_BLOCK)(MiniportAdapterHandle))->EthRxIndicateHandler)( \
|
||||
(((PNDIS_MINIPORT_BLOCK)(MiniportAdapterHandle))->FilterDbs.u.EthDB), \
|
||||
(MiniportAdapterHandle), \
|
||||
(MiniportReceiveContext), \
|
||||
(HeaderBuffer), \
|
||||
(HeaderBuffer), \
|
||||
|
||||
Reference in New Issue
Block a user