NDIS Filter IM drivers (a.k.a. PASSTHRU) can be used w/ NDISWAN; NDIS MUX IM drivers cannot.
Below are notes from a mail I saved four years ago; I’ll post them here verbatim:
- When you call NdisIMRegisterLayeredMiniport and
NdisRegisterProtocol, the NDIS major version can be 4 or 5. - Add wan to the list of FilterMediaTypes in the INF file.
Do not use ndiswanip. For example:
HKR,Ndi\Interfaces,FilterMediaTypes,“wan, ethernet, fddi”
You will be able to filter NDISWAN and LAN media types in
the same driver. - Add NdisMediumWan to MediumArray passed to NdisOpenAdapter.
- Save which media type was selected in NdisOpenAdapter.
It will be NdisMediumWan if you are binding to NDISWAN. - During MiniportInitialize the SelectedMediumIndex is
returned. If the saved media type is NdisMediumWan,
set the selected media type to NdisMedium802_3.
Bryan S. Burgin
xxxxx@microsoft.com
This posting is provided “AS IS” with no warranties, and confers no rights.
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of parth jitendra mehta
Sent: Wednesday, September 29, 2004 12:29 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] NDIS IM driver for analog modem???!!!
?
Hello e.b.
I am comp. sci. student and doing a project on firewalls.
I am new to driver writing and have started working with ddk a week ago. I am writing a NDIS IM driver for doing packet filtering…
however the driver will work for network cards only!!! Can the driver also be made to work with alalog modems(ones that are attached to serial port) and if yes how???
Can it bind itself with with modem driver insted of miniport NIC driver???
What changes do I need to make in the IM driver???
Can I modify the PassThru example given in Win2000 DDK to make it work with analog modems?
If yes will it still be compatiable with NDIS??
I know some of the questions may sound strange but bare with me as I am new to kernel programming!!!
I would like to hear from all who have something to suggest to me…
Thanks for your time…