Hi.
 
Remember that if you do not set any hw filter with PacketSetHwFilter(), you won't receive any packet.
If you want to receive packets from/to your machine, then use
 
PacketSetHwFilter(lpAdapter,NDIS_PACKET_TYPE_ALL_LOCAL)
 
GV

 
 
----- Original Message -----
To: winpcap
Sent: Tuesday, July 02, 2002 5:33 PM
Subject: [WinPcap-users] Winpcap not on promiscuous mode

Hi,
 
I am using the latest version (2.3) of winpcap (the low-level interface using packet.dll) and for some reason it refuses to read packets unless I put it into promisuous mode.  Its a 100 mbps switched network.  I have tested it on both Windows 2000 Professional and Windows XP Professional with the same results.
 
I wish to be able to simply read packets that are intended for me.  I can certainly read all the packets that come through the interface and drop those that are not for me, but that seems like a work-around.  Please help.
 
Secondly, I wonder why there is no interface in the low-level API for finding out the NIC's hardware address.  We can certainly retrieve it through alternate APIs or through SNMP, but I do feel that without a function that returns the interface's hardware address the API is less than complete(!)
 
 

Reply via email to