Google Gruppi non supporta più i nuovi post o le nuove iscrizioni Usenet. I contenuti storici continuano a essere visibili.

NDIS IM + Win98 + Promiscuous

1 visualizzazione
Passa al primo messaggio da leggere

Crystal Luo

da leggere,
29 gen 2002, 22:37:5429/01/02
a
Dear all,

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


Stephan Wolf

da leggere,
30 gen 2002, 08:08:4630/01/02
a
On Wed, 30 Jan 2002 11:37:54 +0800, "Crystal Luo" <cj...@psl.com.sg>
wrote:

>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.

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

Crystal Luo

da leggere,
30 gen 2002, 20:12:3030/01/02
a
> 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


Thomas F. Divine

da leggere,
30 gen 2002, 21:57:5030/01/02
a
If your NDIS IM sets promiscuous mode, then you will begin to receive
loopbacks of packets that you have sent on lower miniport (on the platforms
you mentioned).

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...

Crystal Luo

da leggere,
30 gen 2002, 22:53:5930/01/02
a

"Thomas F. Divine" <pca...@hotmail.com> wrote in message
news:u5hclfg...@corp.supernews.com...

> If your NDIS IM sets promiscuous mode, then you will begin to receive
> loopbacks of packets that you have sent on lower miniport (on the
platforms
> you mentioned).
>
> Thomas F. Divine
>

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


Thomas F. Divine

da leggere,
30 gen 2002, 23:49:5630/01/02
a
"A foolish consistency is the hobgoblin of little minds,
Adored by philosophers and divines..."
--
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:a3ac5t$p7s$1...@newton3.pacific.net.sg...

0 nuovi messaggi