阅读:1581回复:7
zhaock ,有办法修改网卡驱动的属性吗?
zhaock,现在我想修改网卡驱动的属性,如何修改呢?
因为有些属性有的网卡有,有的网卡没有,我又如何知道呢? 如修改网卡为全双工,或者修改网卡实现硬件tcp的校验和计算? |
|
|
沙发#
发布于:2005-06-23 15:43
Query Oid 来查询,再Set Oid来设置,你说的全双工,和硬件tcp的校验和,ndis 的帮助里面Oid部分都有
|
|
板凳#
发布于:2005-06-23 17:10
我只找到了全双工,对于校验和没有找到,你能告诉我是哪一个吗?包括接收和发送的校验和?
Thanks |
|
|
地板#
发布于:2005-06-23 22:19
看一下oid 部分的NDIS_TASK_OFFLOAD
|
|
地下室#
发布于:2005-06-24 11:06
//
// Task offload Structure, which follows the above header in ndis query // typedef struct _NDIS_TASK_OFFLOAD { ULONG Version; // NDIS_TASK_OFFLOAD_VERSION ULONG Size; // Size of this structure. Used for version checking. NDIS_TASK Task; // Task. ULONG OffsetNextTask; // Offset to the next NDIS_TASK_OFFLOAD ULONG TaskBufferLength; // Length of the task offload information. UCHAR TaskBuffer[1]; // The task offload information. } NDIS_TASK_OFFLOAD, *PNDIS_TASK_OFFLOAD; 你指的是他吗? 在ndis-hook中如何怎么使用啊,有例子吗? |
|
|
5楼#
发布于:2005-06-24 11:10
//
// Task offload Structure, which follows the above header in ndis query // typedef struct _NDIS_TASK_OFFLOAD { ULONG Version; // NDIS_TASK_OFFLOAD_VERSION ULONG Size; // Size of this structure. Used for version checking. NDIS_TASK Task; // Task. ULONG OffsetNextTask; // Offset to the next NDIS_TASK_OFFLOAD ULONG TaskBufferLength; // Length of the task offload information. UCHAR TaskBuffer[1]; // The task offload information. } NDIS_TASK_OFFLOAD, *PNDIS_TASK_OFFLOAD; 你指的是他吗? 在ndis-hook中如何使用啊,有例子吗? |
|
|
6楼#
发布于:2005-06-24 14:35
可以参考一下e100bex 网卡的例子,里面有用软件模拟,网卡支持计算校验和的代码
|
|
7楼#
发布于:2005-06-24 16:38
使用了简单方法,hook 函数
|
|
|