neak47
驱动小牛
驱动小牛
  • 注册日期2009-05-25
  • 最后登录2016-01-09
  • 粉丝4
  • 关注0
  • 积分140分
  • 威望1221点
  • 贡献值1点
  • 好评度0点
  • 原创分0分
  • 专家分1分
阅读:2380回复:5

中间层驱动需要注意的一点

楼主#
更多 发布于:2010-09-01 09:02
基于passthru的中间层驱动,当修改了原始的packet之后,记得这句话:

 NOTE on OID_TCP_TASK_OFFLOAD - if this IM driver modifies the contents
    of data it passes through such that a lower miniport may not be able
    to perform TCP task offload, then it should not forward this OID down,
    but fail it here with the status NDIS_STATUS_NOT_SUPPORTED. This is to
    avoid performing incorrect transformations on data.

大意是说 当查询OID_TCP_TASK_OFFLOAD时,不能向下传递OID_TCP_TASK_OFFLOAD,屏蔽网卡的TCP_TASK_OFFLOAD功能。

MPQueryInformation函数的注释中有。

否则:

 即使最简单的tcp 3次握手都不能完成。

neak47
驱动小牛
驱动小牛
  • 注册日期2009-05-25
  • 最后登录2016-01-09
  • 粉丝4
  • 关注0
  • 积分140分
  • 威望1221点
  • 贡献值1点
  • 好评度0点
  • 原创分0分
  • 专家分1分
沙发#
发布于:2010-09-01 20:06
呵呵,不好意思了,因为我碰到这个问题了,所以想发到这里来给大家分享下
游客

返回顶部