[Winpcap-users] Problem in pcap_findalldevs
Gianluca Varenni
gianluca.varenni at cacetech.com
Fri Mar 2 16:15:40 GMT 2007
----- Original Message -----
From: Renato Araújo Ferreira
To: winpcap-users at winpcap.org
Sent: Thursday, March 01, 2007 5:00 PM
Subject: Re: [Winpcap-users] Problem in pcap_findalldevs
Gianluca,
I found the real problem. It was happening because I'm using COINIT_MULTITHREADED in my OLEDB implementation class that I´m using to access MSSQL using it's native client (CLSID_SQLNCLI), and because I prefer to build my own concurrency model. When I change this parameter of CoInitializeEx all the interfaces are shown. And wasnt happening before because I tested the winpcap functions before to build the MSSQL access.
The objects hidden by this problem is basicaly dialup and vpn interfaces. Which is the real problem to get dialup interfaces when COM is initialized with COINIT_MULTITHREADED???
In order to capture from dialup/vpn adapters, we use the Microsoft NetMon component, which happens to be a COM component which does not support the MULTITHREADED threading model under XP/2003.
Have a nice day
GV
I'm a bit unhappy because I read in MSND that COINIT_MULTITHREADED is the faster in a multithreaded implementation.
thanks,
Renato
----- Original Message -----
From: Gianluca Varenni
To: winpcap-users at winpcap.org
Sent: Wednesday, February 28, 2007 3:04 AM
Subject: Re: [Winpcap-users] Problem in pcap_findalldevs
So you are saying that if you run ethereal/wireshark side by side with your app, wireshark shows all the adapters, while your app doesnt. Right?
Which version of WinPcap are you using? Please make sure that your app folder does not contain any local copy of the winpcap dlls, in particular packet.dll. If that doesn't work, try to put the debug version of packet.dll (available at http://www.winpcap.org/bugs.htm) in your application running folder, and send the generated winpcap_debug.txt logfile to the winpcap-bugs mailing list. Please be careful to choose the right version of packet.dll for your platform and WinPcap version.
Have a nice day
GV
----- Original Message -----
From: Renato Araújo Ferreira
To: winpcap-users at winpcap.org
Sent: Saturday, February 24, 2007 6:49 AM
Subject: [Winpcap-users] Problem in pcap_findalldevs
Hello,
I have a problem with pcap_findalldevs because it's not returning all interfaces anymore, it shows only the first one, but it worked before in the same source code and i never changed my user privileges in this computer. I read in docs that says something about privileges to open the interface, but it does not work when running as administrator too, while ethereal open all interfaces being or not administrator.
Could someone help me?
thanks,
Renato....
--------------------------------------------------------------------------
_______________________________________________
Winpcap-users mailing list
Winpcap-users at winpcap.org
https://www.winpcap.org/mailman/listinfo/winpcap-users
----------------------------------------------------------------------------
_______________________________________________
Winpcap-users mailing list
Winpcap-users at winpcap.org
https://www.winpcap.org/mailman/listinfo/winpcap-users
------------------------------------------------------------------------------
_______________________________________________
Winpcap-users mailing list
Winpcap-users at winpcap.org
https://www.winpcap.org/mailman/listinfo/winpcap-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winpcap.org/pipermail/winpcap-users/attachments/20070302/957c14e3/attachment.htm
More information about the Winpcap-users
mailing list