[Winpcap-bugs] NIC enumeration problem
Gianluca Varenni
gianluca.varenni at cacetech.com
Thu Apr 16 09:47:23 PDT 2009
WinPcap detects the adapters when the WinPcap driver is loaded, if you add a new device after it, it won't see it. A workaround for that is to reload the winpcap driver after having created the TAPs. This can be done through the SCM APIs or on the command line with "net stop npf" and "net start npf". You need administrative privileges to do that and there shouldn't be any open instance to the WinPcap devices open at the time you perform the driver restart (otherwise the driver will simply refuse to unload).
Hope it helps
GV
----- Original Message -----
From: Sumit Kalsait
To: winpcap-bugs at winpcap.org
Sent: Thursday, April 16, 2009 12:31 AM
Subject: [Winpcap-bugs] NIC enumeration problem
Hi all WinPCap Guys !
I got starnge problem.
have you ever tried to create a new TAP virtual Ethernet adapter with OpenVPN (using the installtap.exe tool) and then check the list of devices in your Windows application?(it cannot enumerate interfaces correctly. Windows application just sees the how many interfaces are available and shows into the listbox) I guess there is a problem within winpcap because the new created tap device only appears after a reboot. I have checked with ipconfig that the tap device has been generated properly, so I don't understand why the list is not actualized by winpcap. The crazy thing is that if I delete the tap-devices, winpcap actualizes the list correctly!
I could not find anything about this on the Net. Do you perhaps know how to solve this? Because, for the my simulation, it would be great if I could generate some TAP devices only when they are needed, i.e. at runtime. A reboot is therefore not possible.
Many Thanks and Best Regards
Sumit Kalsait
****************************************************************************************
20.-24. April Hannover Messe 2009
Produkte und Lösungen für Ihren Erfolg - Besuchen Sie uns in Halle 9
Mehr Informationen unter http://www.phoenixcontact.de/hannovermesse
****************************************************************************************
..................................................................
PHOENIX CONTACT ELECTRONICS GmbH
Sitz der Gesellschaft / registered office of the company: 31812 Bad Pyrmont
USt-Id-Nr.: DE811742156
Amtsgericht Hannover HRB 100528 / district court Hannover HRB 100528
Geschäftsführer / Executive Board:
Klaus Eisert
Roland Bent
Dr. Martin Heubeck
___________________________________________________________________
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren, jegliche anderweitige Verwendung sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
----------------------------------------------------------------------------------------------------
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure, distribution or other use of the material or parts thereof is strictly forbidden.
___________________________________________________________________
------------------------------------------------------------------------------
_______________________________________________
Winpcap-bugs mailing list
Winpcap-bugs at winpcap.org
https://www.winpcap.org/mailman/listinfo/winpcap-bugs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winpcap.org/pipermail/winpcap-bugs/attachments/20090416/591d4fef/attachment.htm
More information about the Winpcap-bugs
mailing list