From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Souvik Ghosh
Sent: Sunday, May 20, 2007 12:37 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Ndis 5.1 Intermediate Driver Help
Hi,
I am Souvik from Kolkata, India. Currently I am developing a NDIS 5.1
Inetermediate driver.
I have two question in this regard -
- I like to run my Intermediate driver for a specific adapter. Let me be
clear at this
point that I have adopted the INF file from the passthru sample that comes
with DDK. And
My code is also an extension of passthru.
[PCAUSA] See the sample code on http://www.wd-3.com in the three-part
article “Extending the Passthru NDIS Intermediate Driver Sample”. That
sample uses a companion user-mode application and illustrates a technique
that allows the application to query the IM driver for a list of adapters
that it is bound to. Then the application (based on user input.) can open a
handle on a specific adapter and “run” on only that adapter even if it is,
in fact, bound to multiple adapters.
A typical end-user machine may have multiple adapters.
Before writing any code to control the bindings you need to think about the
logic that you would use to programmatically control the bindings - not the
code. Can you write a simple set of “rules” for selecting the right adapter?
Probably not. In many cases only the user really knows the purpose of each
adapter on his or her host.
So, it is likely (almost certain.) that the user would have to get involved
in the binding selection process.
The simplest way is to tell the user to use the Network Control Panel to
uncheck the unwanted adapters. If you could develop a “rule” for selecting
the binding, then you could adapt the DDK BindView sample application to
uncheck unwanted bindings.
If the adapter of interest is actually identified by a unique Vendor
ID/Product ID, then you could control the binding process using a NDIS
Notify Object.
Good luck,
Thomas F. Divine
I have tried to do that by calling “NdisOpenAdapter” from “PtBindAdapter”
function (in Passthru
sample) only for the specific adapter - I was skipping this call for all
other adapter installed
in the system But in that case the other adapter can not connect to the
network when I install
my driver. Please help me to resolve this issue - it should be be done in
run time, not during
installation of driver.
- I would like to make a copy of a packet, received from the Protocol layer
and to resend it
to the miniport layer. In fact I like to send the same packet repeatedly. I
have been succeeded
to copy the packet - at least dump of the packets say so. But when I call
“NdisSend” with the newly formed packet the system crashes. I tried to send
the Packet from my function which gets called from “PtSendPackets” routine
In that case which conditions I have to taken care of? Can you please
suggest me the way out.
Thanks in advance.
Regards,
Souvik
–
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer