Re: How to set NIC to promiscuous mode from FilterHook driver
- From: PCAUSA <pcausa@xxxxxxxxx>
- Date: Mon, 12 May 2008 19:42:46 -0700 (PDT)
He is probably referring to this tyoe of Filter Hook, documented in
MSDN at URL:
http://msdn.microsoft.com/en-us/library/ms802735.aspx
Thomas F. Divine
On May 12, 5:59 pm, "Alireza Dabagh [MS]" <a...@xxxxxxxxxxxxxxxxxxxx>
wrote:
I did not understand exactly what your component is. "Filter hook driver"
could mean one of those nasty virus like drivers that take a shortcut by
hijacking NDIS and TCPIP entry points. It could also mean an NDIS IM filter
(or lightweight filter for NDIS 6 and higher) drivers written to spec or it
could be something else. If your driver is hijacking NDIS/TCPIP entry
points, please disregard my mail. Unfortunately many people on this
newsgroup will help you nevertheless. I can't.
If your object is to see packets sent to the other interfaces on the
network -from- this machine, then just look at them on the transmit path.
If you want to see packets sent to the other interfaces connected to the
same switch then read on.
You set a NIC to promiscuous mode by sending a set_packet_filter OID to the
NIC. (you need to be a NDIS protocol or lightweight driver to do this ). But
that will not help you. Any switch worth the box it came in, will not allow
you to see "packets destined to other machines in the network" just because
you set the NIC to promiscuous mode (with the exception of being connected
to a "mirror" port).
-ali
--
This posting is provided "AS IS" with no warranties, and confers no rights..
<vasanthara...@xxxxxxxxxxxxx> wrote in message
news:e37c994c-0a95-45bb-9e25-b0f59256a490@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> Hi !
I want to receive all packets in my filter hook driver and do
filtering the TCP packets which matches a particular destination
address in the network. So, I wrote a filter hook driver and is
working fine. Now, I want to get packets destined to other machines
also in the network, from my filter hook driver. How can I set the NIC
to promiscuous mode so that I shall receive other packets also in my
PacketFilterExtension function.
Is it possible? If so, how can I set it?
Please help.
thanks in advance,
regards,
vasanth.
.
- Follow-Ups:
- Re: How to set NIC to promiscuous mode from FilterHook driver
- From: vasantharaj . g
- Re: How to set NIC to promiscuous mode from FilterHook driver
- References:
- How to set NIC to promiscuous mode from FilterHook driver
- From: vasantharaj . g
- Re: How to set NIC to promiscuous mode from FilterHook driver
- From: Alireza Dabagh [MS]
- How to set NIC to promiscuous mode from FilterHook driver
- Prev by Date: Re: DiskPerfDeviceControl () of diskperf in wdk;
- Next by Date: Re: Kernel mode DLL problem
- Previous by thread: Re: How to set NIC to promiscuous mode from FilterHook driver
- Next by thread: Re: How to set NIC to promiscuous mode from FilterHook driver
- Index(es):
Relevant Pages
|