Here are my modifications in the driver file “Packet.c” (via the unix command diff)
///// New function
> NDIS_STATUS PacketPnPEvent (IN NDIS_HANDLE ProtocolBindingContext,
> IN PNET_PNP_EVENT pNetPnPEvent)
> return NDIS_STATUS_SUCCESS;
//// In the function PKT_Init ->
< ProtocolChar.MajorNdisVersion = 0x03;
< ProtocolChar.MinorNdisVersion = 0x00;
> //ProtocolChar.MajorNdisVersion = 0x03;
> //ProtocolChar.MinorNdisVersion = 0x00;
> ProtocolChar.MajorNdisVersion = 5;
> ProtocolChar.MinorNdisVersion = 0;
> ProtocolChar.PnPEventHandler = PacketPnPEvent;
> ProtocolChar.UnloadHandler = NULL;
> ProtocolChar.ReceivePacketHandler = NULL;
Then it should compile
Thanks for your information again. I compiled winpcap and ran fine under wince 3.0, so can you pin point what I have to do to make it work under wince4.2 such as "changing the version of the NDIS declaration in the code, and to add the functions needed by NDIS 5.1." as you have mentioned.
Do you have a demo project for the driver and sample app I can look at?
Thanks a lot.
Don't expect to capture all the traffic. You will be limited to the traffic of your network! (The network of your current SSID for a Wireless LAN)
Thanks for the info. I was under the impression that you weren't able to capture any traffic?
Yes, I did it. You need to look at the new specification for NDIS. You just need to change the version of the NDIS declaration in the code, and to add the functions needed by NDIS 5.1.
I tried compiling it with evc++ 4.0 and it gave me a whole bunch of errors.
- [WinPcap-users] PacketCE - Some... Marc-Aurèle Brothier / S h o c k f i s h
- Marc-Aurèle Brothier - s h o c k f i s h /