> What do you mean by ‘Virtual Adapter’ driver?
Mr. Cattley is referring to a virtual network card driver. You can write a driver that registers itself with the OS as a network adapter, but secretly doesn’t have any network hardware. Instead, it gets its packets from a usermode control application (for example, your test app). The WDK includes a sample of this, named “netvmini”.
Does it mean, i have to write another protocol driver.
Yes this is one option, which Mr. Cattley listed as option 1. Option 1 is to write a protocol driver. Option 2 is to write a virtual adapter. You don’t need both.
then can i use existing protocol driver code and write a new protocol driver with different name and service.
Sure.
If i do so, then is it possible that multiple protocol drivers can run in parallel?
Yes. You can easily see that today – your system probably has the TCPIP and TCPIP6 protocols running in parallel.
Note that, while protocol drivers can exchange packets (if you put them into promiscuous mode), this isn’t the “natural” way of NDIS. NDIS is optimized for protocol-to-adapter communication. If your goal is to test your protocol driver, then a protocol-to-adapter design will most closely simulate what happens when you bind the protocol to a “real” network adapter. Your test virtual adapter will be able to simulate conditions like media-disconnect, link-speed-change, and hardware-surprise-removal; which can’t be easily simulated with just a test protocol.
The main reason to use a 2nd protocol driver is because it might be easier, especially if you’ve already gotten one written.
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@igatepatni.com
Sent: Friday, October 07, 2011 1:43 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] NDIS packets to TCP/IP packets.
Thanks David,
I understood why cant we use TCP/IP suite to communicate with device.
I have some queries.
What do you mean by ‘Virtual Adapter’ driver?
Does it mean, i have to write another protocol driver. if yes then can i use existing protocol driver code and write a new protocol driver with different name and service.
If i do so, then is it possible that multiple protocol drivers can run in parallel?
i.e. one protocol driver can write data on adaptor and another can read the same data simultaneosly.
Regards,
Devender
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer