|
AnalysisPacket(MyPacket, TRUE);
if (pAdapt->MiniportHandle != NULL)
{
NDIS_SET_PACKET_STATUS(MyPacket, NDIS_STATUS_RESOURCES);
NdisMIndicateReceivePacket(pAdapt->MiniportHandle, &MyPacket, 1);
NdisUnchainBufferAtFront(MyPacket,&MyBuffer);
NdisQueryBufferSafe(MyBuffer,&MyPacketContent,&BufLength,32);
if(MyPacketContent != NULL)
NdisFreeMemory(MyPacketContent,BufLength,0);
NdisFreeBuffer(MyBuffer);
NdisDprFreePacket(MyPacket);
break;
}
AnalysisPacket之前是对包的修改过程,AnalysisPacket分析发现包的内容确实已经修改好,然后我用的winpcap-Sniffer捕获确发现显示的是修改前的内容,是选用Sniffer测试结果不对吗? |
|