阅读:1364回复:6
请教胡版主
我在用passthru的时候,用的8139网卡,在加了你的程序后,在
PtReceive运行到 Packet 为空之后 if(PacketSize<=LookAheadBufferSize) { Status=NdisAllocateMemory(&pPacketContent,BUFFER_SIZE,0,HighestAcceptableMax); if(Status!=NDIS_STATUS_SUCCESS) { DbgPrint(\"PTReceive:NdisAllocateMemory Failed\\n\"); return(NDIS_STATUS_NOT_ACCEPTED); } if(pPacketContent==NULL) { DbgPrint(\"PTReceive:pPacketContent==NULL\\n\"); return(NDIS_STATUS_NOT_ACCEPTED); } NdisZeroMemory(pPacketContent,BUFFER_SIZE); NdisMoveMemory(pPacketContent,HeaderBuffer,HeaderBufferSize); NdisMoveMemory(pPacketContent+HeaderBufferSize,LookAheadBuffer,LookAheadBufferSize); PacketLen=PacketSize+HeaderBufferSize; NdisDprAllocatePacket(&Status,&MyPacket,pAdapt->RecvPacketPoolHandle); if(Status==NDIS_STATUS_SUCCESS) { NdisAllocateBuffer(&Status,&pPacketBuffer,pAdapt->RecvPacketPoolHandle,( PVOID ) pPacketContent,PacketLen); NdisChainBufferAtFront(MyPacket,pPacketBuffer); MyPacket->Private.Head->Next=NULL; MyPacket->Private.Tail=NULL; Rsvd=(PRSVD)(MyPacket->MiniportReserved); Rsvd->OriginalPkt=NULL; NDIS_SET_PACKET_HEADER_SIZE(MyPacket,HeaderBufferSize); //if (ProcessPacket(MyPacket)==NDIS_STATUS_NOT_ACCEPTED) //return(NDIS_STATUS_NOT_ACCEPTED); //************************************************************************************* NdisMIndicateReceivePacket(pAdapt->MiniportHandle,&MyPacket,1); NdisIndicateReceivePacket这条函数出错,机器蓝屏了,能指导一下吗? |
|
|
沙发#
发布于:2002-10-09 09:02
你加的是哪个程序?
|
|
|
板凳#
发布于:2002-10-09 09:07
我加的是在protocol.c中阿
|
|
|
地板#
发布于:2002-10-09 09:30
我是说你加的是版主的哪个程序?
是本站的哪个VPN的例子程序么? |
|
|
地下室#
发布于:2002-10-09 12:41
不是,我用的是他和其他人谈话的
|
|
|
5楼#
发布于:2002-10-09 12:44
请教你有这样的程序,给我看看吗?
|
|
|
6楼#
发布于:2002-10-10 08:58
我在做,还没有做完,
我是在98下做的 |
|
|