How can NDIS Miniport driver and IM driver communicate with each other?
Hi,
Friends. I have written a NDIS IM driver for Windows 2000. Now I want
to write a Miniport driver to add a virtual NIC in my Windows 2000 box.
This virtual NIC will forward each packet sent by upper TCP/IP module
to IM driver, and the IM driver will in turn sent this packet out down
the underlying physical NIC filtered by this IM driver. Similiarly,
when the IM driver receives a packet indicated by the underlying physical
NIC, it will check the destination IP address of this packet. And If
the destination IP address is that of the virtual NIC, it will forward
this packet to the virtual NIC miniport dirver.
So the question is:
How can my Miniport driver and IM driver communicate and forward packet
with each other?
Use IoCallDriver? Can it be done? What about the performance?
Or any other graceful way?
thanks a lot.