Tag: ProtocolDriver预览模式: 普通 | 列表

郁闷的数据包接收问题

        昨天写好框架的NDIS协议驱动,不管我怎么处理,就是死活收不到下层网卡的数据包。
        这个东东折磨了我整整一天,让人郁闷的是这个问题本来不应该是问题的。下面贴出相关DDK的文档,标记一下,更希望遇到和我同样的朋友早点解脱。囧。
引用内容 引用内容

Restrictions on Indicating Receive Packets
        A connectionless miniport driver must not indicate a receive packet to a protocol driver while the miniport driver’s packet filter for that protocol driver is set to zero. When a miniport driver’s MiniportInitialize function is called, the miniport driver’s packet filter should be set to zero. When the packet filter is zero, receive indications are disabled. After a miniport driver’s MiniportInitialize function has returned, a protocol driver can set OID_GEN_CURRENT_PACKET_FILTER to a nonzero value, thereby enabling the miniport driver to indicate receive packets to that protocol.

查看更多...

Tags: NDIS ProtocolDriver

分类:开发应用 | 固定链接 | 评论: 4 | 引用: 0 | 查看次数: 1322