[Winpcap-bugs] [ hangs in WanPacket.cpp::CreateNPPInterface ]

Gianluca Varenni gianluca.varenni at cacetech.com
Fri Mar 20 10:05:47 PDT 2009


I'm not surprised about that. The NetMon interface from MS is poorly 
documented and full of bugs. And unfortunately there is no way to fix them, 
apart from finding workarounds.
And when it comes to using it from a service, it gets even worse. If you do 
not need to capture from dialup/VPN interfaces, there a couple of 
workarounds that come to my mind now:
- on 2000/XP/2003, always use packet.dll without support for dialup (and 
this means that you need to change packet.dll after the WinPcap official 
installer has run)
- try to move some calls to WinPcap into the main thread (mainly the one to 
list the adapters)

Hope this answers your question

GV



----- Original Message ----- 
From: "lementec fabien" <fabien.lementec at gmail.com>
To: <winpcap-bugs at winpcap.org>
Sent: Tuesday, March 17, 2009 9:50 AM
Subject: [Winpcap-bugs] [ hangs in WanPacket.cpp::CreateNPPInterface ]


> Hi,
>
> My program freezes when I call pcap_findalldevs_ex. After compiling
> and debugging pcap 4.1 beta5, I spot the issue. It occurs as
> Packet.dll calls CreateNPPInterface in WanPacket.cpp to open
> \Device\NPF_GenericDialupAdapter. The call to CreateNPPInterface
> never returns.
>
> When I remove this call, everything works as expected for the other
> adapters (ie. packets are captured).
>
> I am calling winpcap in a win32 service, in a thread different from the 
> main
> one.
>
> Thanks for helping,
>
> -- 
> "make it work, make it right, make it fast"
> _______________________________________________
> Winpcap-bugs mailing list
> Winpcap-bugs at winpcap.org
> https://www.winpcap.org/mailman/listinfo/winpcap-bugs 



More information about the Winpcap-bugs mailing list