阅读:2872回复:2
7600版wdk带的passthru源码疑问
NDIS_MEDIUM MediumArray[4] =
{ NdisMedium802_3, // Ethernet NdisMedium802_5, // Token-ring NdisMediumFddi, // Fddi NdisMediumWan // NDISWAN }; 这个是passthru.c对MediumArray的初始化 ,这里已经包含了对 WAN device 类型的定义 但是在MPInitialize对Medium进行验证的时候确是: Medium = pAdapt->Medium; if (Medium == NdisMediumWan) { Medium = NdisMedium802_3; } for (i = 0; i < MediumArraySize; i++) { if (MediumArray == Medium) { *SelectedMediumIndex = i; break; } } if (i == MediumArraySize) { Status = NDIS_STATUS_UNSUPPORTED_MEDIA; break; } 把NdisMediumWan换成了NdisMedium802_3,为什么要这样做 ?各位大牛能解释一下吗 |
|
沙发#
发布于:2010-03-10 16:24
|
|
板凳#
发布于:2010-03-11 10:47
谢谢哈
|
|