You can use the GetAdaptersInfo() call to get the IP and MAC address of your adapters.
Greetings Carlos ----- Original Message ----- From: Rajasekharan. V 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(!) -- Rajasekharan. V http://www.geocities.com/cool_ranju/ -- ______________________________________________________________________________ mensaje enviado desde http://www.iespana.es emails (pop)-paginas web (espacio ilimitado)-agenda-favoritos (bookmarks)-foros -Chat
