[Winpcap-users] pcap_findalldevs_ex'

ocramclimb ocram.climb at tiscali.it
Fri Sep 23 09:41:58 GMT 2005


Good Morning.

I want to send some packets to a remote adapter connected to my PC.
I want to retrive its name to pass to the function 'pcap_open'.
So I want to have the list of the remote adapters connected, but I have some problem using the function 'pcap_findalldevs_ex'.

My PC addressed 10.0.0.11 is connected to a host addressed 10.0.0.12 that offers a service on port 5060.

This is the code:

/* Retrieve the device list from the remote machine */
if (pcap_findalldevs_ex("rpcap://10.0.0.12/5060", NULL, &alldevs, errbuf) == -1)
{
    fprintf(stderr,"Error in pcap_findalldevs_ex: %s\n", errbuf);
    exit(1);
}

This is the error message:

"Error in pcap_findalldevs_ex: Is the server properly installed on 10.0.0.12?  connect() failed: Impossibile stabilire la connessione. Risposta non corretta della parte connessa dopo l'intervallo di tempo oppure mancata risposta dall'host collegato.  (code 10060)"

Wath is the problem, please?

Thank you

Marco Ferrario
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winpcap.org/pipermail/winpcap-users/attachments/20050923/fbdf603c/attachment-0001.htm


More information about the Winpcap-users mailing list