NdisTransferData question

Home Forums Discussions General NdisTransferData question

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #4908
    Deneb
    Participant

      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.

      #5706
      GeN
      Participant

        @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 ?

        #5707
        Deneb
        Participant

          thnks 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.

          #5708
          GeN
          Participant

            @Deneb wrote:

            thnks 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.

            yes.

          Viewing 4 posts - 1 through 4 (of 4 total)
          • You must be logged in to reply to this topic.