阅读:2440回复:4
IMSAMP求教
希望在2000下开发IP拦截驱动,但passthru、NuMega和winPCap的packet都不支持PPP拨号连接方式。终于从网上down了一个驱动样例,据说可以,但是不太会用,那位大虾能帮个忙,指点一二。
问题如下: 1、提供的.inf文件为OEMSetup,但2000下安装IM Driver需要两个.inf,一个是面向miniport的,另一个面向protocol,谁知道OEMSetup怎么用?是否需要修改?还是有其他方法,可以使我将.sys安装上。 2、编译它的BindPrune.dll时,总提示说cannot find include file <macwin32.h>,谁有这个文件,或知道如何可以通过编译 下面先列出关于样例的一段说明,源代码在附件里。 How to make an IM driver that works with NDISWAN over TCP/IP Written 5-17-1999 by Scott Meeuwsen Below you will find changes you can make to a working Ethernet IM driver that will allow it to function with NDISWAN adapters over TCP/IP. I found it extremely difficult to figure this out so I hope you find this information beneficial. If you are using the newest IMSAMP, it already works with NDISWAN if you follow step #6 below. If not, you can find Jim Mateer's newest version of his excellent IM driver sample at <ftp://ftp.pcausa.net/devonly/imdrv/imdrv.zip>. Here are the steps to follow: 1. Get NDISWAN to bind to your transport. Put something like this in your NetRules for your transport: MyIMTransport ndisWanAdapterDialOutIP non non 100 2. Prefix your corresponding IM adapter name with NdisWan so that you bind correctly to RasArp (e.g. NdisWanMyIMAdapter3) 3. Disable the binding of the real NDISWAN adapter from TCP/IP 4. Set the packet filter of the real NDISWAN adapter to forward BROADCAST and DIRECTED packets (do this in your ProtocolBindAdapter routine) 5. Report that your corresponding virtual IM adapter has a medium type of NdisMedium802_3 from MiniportInitialize (do not report NdisMediumWan) 6. Make sure the phone book entry you are using to dial has "IP header compression" disabled (Haven't figured out why this is necessary yet) 7. Other than these changes, pretend that you are coding an IM for an Ethernet adapter and you should be fine. Questions/Comments/Bugs/Etc. - <scottm@highlevel.com> |
|
最新喜欢:znsoft |
沙发#
发布于:2001-07-17 16:29
为什么不提供你的例子呢?
|
|
|
板凳#
发布于:2001-07-18 08:45
我down的例子附加在前面的话题里,你是指这个吗?
另外,我已联系到作者,他说此样例编译于NT 5.0 beta 2 DDK,而不是win2k DDK,我有点疑问,NT 5.0 beta 2 DDK就是NTDDK4吧,可我看例子中的文件夹是NTDDK5。 作者说由于inf文件是针对NT写的,因此如果应用于win2k需要修改。可该inf文件挺复杂的,哪位大虾能提点一下,如何将其修改为win2k下的inf [magie 编辑于 2001-07-18 08:58] |
|
地板#
发布于:2001-07-18 09:54
我增么感觉不到与passthru得太大区别,为什么说它可以用于wan?
我找到一个imsamp的旧版本(nt4),或许会有帮助。 |
|
地下室#
发布于:2002-02-21 14:26
我也碰到了同样的问题,不过我全部重新编译就可以(build -c),原因不知道。
|
|