[Winpcap-users] pcap_findalldevs_ex'

Gianluca Varenni gianluca.varenni at gmail.com
Sun Oct 2 17:38:12 GMT 2005


Hi.

pcap_findalldevs_ex lists remote adapters (using the "rpcap://..." string) *if* you have WinPcap remote capture daemon installed and started on the remote system. I think that the service you have on port 5060 of the remote machine is some service you developed, not the remote capture daemon, isn't it?

Have a nice day
GV

  ----- Original Message ----- 
  From: ocramclimb 
  To: winpcap-users at winpcap.org 
  Sent: Friday, September 23, 2005 2:41 AM
  Subject: [Winpcap-users] pcap_findalldevs_ex'


  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


------------------------------------------------------------------------------


  _______________________________________________
  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/20051002/1d9b7e0e/attachment.htm


More information about the Winpcap-users mailing list