- This topic has 3 replies, 2 voices, and was last updated 20 years, 7 months ago by
GeN.
-
AuthorPosts
-
March 18, 2005 at 4:01 pm #4908
Hello guys,
one problem concerning ProtocolReceive in NDIS IM driver. I see the
functions indicates up the data received using MacReceiveContext with
the NDIS_HANDLE MacReceiveContext parameter ( the second parameter ).
If data received is not enough, I call NdisTransferData to get the
rest of the packet, and I wnat to delay the indication until
NdisTransferData returns successfull. I want to indicate the receive
in the ProtocolTransferDataComplete handler. The problem is, what
function should I use to indicate and, if NdisMEthIndicateReceive is
the answer ( for 802_3 ) then what parameter should I pass in the
MacReceiveContext?Thanks.
March 20, 2005 at 4:12 pm #5706@Deneb wrote:
Hello guys,
one problem concerning ProtocolReceive in NDIS IM driver. I see the
functions indicates up the data received using MacReceiveContext with
the NDIS_HANDLE MacReceiveContext parameter ( the second parameter ).
If data received is not enough, I call NdisTransferData to get the
rest of the packet, and I wnat to delay the indication until
NdisTransferData returns successfull. I want to indicate the receive
in the ProtocolTransferDataComplete handler. The problem is, what
function should I use to indicate and, if NdisMEthIndicateReceive is
the answer ( for 802_3 ) then what parameter should I pass in the
MacReceiveContext?Thanks.
MacReceiveContext – is the context of Packet Receive Operation.
You can pass any handle there, but be ready to be called at MiniportTransferData with this very handle. And you’ll have to copy the data of the packet for that handle.
Do I make myself clear ?March 21, 2005 at 8:29 am #5707thnks GeN, it’s clear. One more question – the MiniportTransferData will be called before Ndis..Indicate.. returns? So – am I free to release the handle upon exit of ProtocolTransferDataComplete ( from where I do the indication )?
Thnks a lot.
March 21, 2005 at 8:55 am #5708 -
AuthorPosts
- You must be logged in to reply to this topic.
