ftbk86
驱动牛犊
驱动牛犊
  • 注册日期2005-11-29
  • 最后登录2016-01-09
  • 粉丝0
  • 关注0
  • 积分57分
  • 威望402点
  • 贡献值0点
  • 好评度15点
  • 原创分0分
  • 专家分0分
阅读:1702回复:1

PtReceivePacket 问题,高手请进!

楼主#
更多 发布于:2010-03-08 18:39
需要在PtReceivePacket 对接收的数据包进行重新处理,是在passthru架构下处理的!但是在PtreceivePacket中 针对 NDIS51如何对数据包进行处理呢? 也就是针对下面一块如何处理呢? ...
#ifdef NDIS51
    //
    // Check if we can reuse the same packet for indicating up.
    // See also: PtReceive().
    //

    (VOID)NdisIMGetCurrentPacketStack(Packet, &Remaining);
    if (Remaining)
    {
        //
        // We can reuse "Packet". Indicate it up and be done with it.
        //
        Status = NDIS_GET_PACKET_STATUS(Packet);
        NdisMIndicateReceivePacket(pAdapt->MiniportHandle, &Packet, 1);
        return((Status != NDIS_STATUS_RESOURCES) ? 1 : 0);
    }

#endif // NDIS51
游客

返回顶部