I'm a newbie in writing IM drivers. Using the PASSTHRU sample in
Platform Builder, I've successfully capturing ethernet packets under
Windows Mobile 6 Device Emulator environment. However, the driver
failed to capture WAN/GPRS packets with the help of the Cellular
Emulator tool.
After searching several related topics here, I've made the following
changes:
- increase the size of the g_aNdisMedium array and add NdisMediumWan
into it
- remove ASYNCMAC in wszSkipTheseNICs array
- remove miniport SendHandler and SendPacketsHandler
- remove protocol ReceiveHandler and ReceiveCompleteHandler
- add miniport WanSendHandler = MiniportWanSend (just add log messages
in this new function as I'm not sure what should be inserted)
- add protocol WanSendCompleteHandler = ProtocolWanSendComplete (same
as above)
- add protocol WanReceiveHandler = ProtocolWanReceive (same as above)
- add registry entry "UpperBind"="PASSTHRU" under HKLM\Comm
\AsyncMac1\Parms
But still I'm not able to see any log messages being printed. I would
like to ask
1) What should I put in the functions MiniportWanSend,
ProtocolWanSendComplete and ProtocolWanReceive? Any samples are
preferred.
2) Do I miss any other registry settings or code modifications?
3) Somebody from the related topics stated that the captured packets
are framed and compressed in case I succeed. Are there any further
processes to change the packets back to like those from the ethernet,
or is my direction of capturing WAN packets wrong initially?
Thanks in advance!
Regards,
Chris