I am porting my NDIS IM from Win2K/XP to Win98/ME. Thanks to Bryan Burgin's
experimental PassThru For Win98 example, I have installed the IM
successfully on Win98SE, though the configuration is really a mess.
Different from PassThru, mine has to set underlying NIC to run on
promiscuous mode. Thus the problem occurs: ProtocolReceive() handler
receives same indicated Lookahead repeatedly. This problem does not occur on
the receive path on Win2K/XP. Any hints on the cause would be hightly
appreciated.
And just being curious. This NIC's miniport uses
NdisMIndicateReceivePacket() on Win2K/XP. Why does it indicate Lookahead on
Win98? Most/all miniport for win98 indicates Lookahead? or simply because it
indicates receive repeatedly and resources are exhausted?
Regards,
Crystal
I don't get it. Are you saying NDIS repeatedly presents you the same
receive lookahead data? Or are you talking about loopback packets
maybe?
Stephan
Hi. Yes, they are loopback packets/lookahead. It seems that such problem
does not occur on Win2K/XP on the receive path.
Thanks.
Crystal
You probably should keep track of the requested NDIS packet filter setting.
If the upper-level has not set the promiscuous bit, then you should probably
filter the loopback of send packets by checking the hardware source address
against the current hardware address of the NDIS miniport below you.
(probably doesn't matter, in practice...).
Good luck,
--
Thomas F. Divine
PCAUSA - Tools & Resources For Network Software Developers
NDIS Protocol/Intermediate/Hooking - TDI Client/Filter
<http://www.pcausa.com> - <http://www.rawether.net>
"Crystal Luo" <cj...@psl.com.sg> wrote in message
news:a3a2n3$lnt$1...@newton3.pacific.net.sg...
Hi, thank you. So it is indeed this frustrating problem again! I encountered
the same problem when I was doing it on Win2K/XP.
On Win2K/XP, it works if I use NdisSetPacketFlags() with
NDIS_FLAGS_SKIP_LOOPBACK and NDIS_FLAGS_DONT_LOOPBACK respectively.
But it seems that both flags don't work on Win98/ME.
Regards,
Crystal
PCAUSA - Tools & Resources For Network Software Developers
NDIS Protocol/Intermediate/Hooking - TDI Client/Filter
<http://www.pcausa.com> - <http://www.rawether.net>
"Crystal Luo" <cj...@psl.com.sg> wrote in message
news:a3ac5t$p7s$1...@newton3.pacific.net.sg...