[Winpcap-users] pcap_findalldevs_ex'

Gianluca Varenni gianluca.varenni at cacetech.com
Mon Oct 3 15:42:16 GMT 2005


Hi.

WinPcap can list the adapters on a remote machine (and capture from those remote adapters) *only* if the remote machine has WinPcap installed *and* the remote capture daemon has been started.

Alternatively, you can also use the remote capture daemon on a UNIX machine, recompiling the libpcap version shipped with WinPcap under that OS.

The instructions to use the remote capture daemon are here:

http://www.winpcap.org/docs/docs31/html/group__remote.html

If the remote hardware is not running WinPcap (or the patched libpcap), then there's no way to list/capture from remote adapters using the remote protocol used by winpcap.

Hope it helps
GV


----- Original Message ----- 
  From: ocramclimb 
  To: winpcap-users at winpcap.org 
  Sent: Monday, October 03, 2005 12:59 AM
  Subject: Re: [Winpcap-users] pcap_findalldevs_ex'


  yes, you are right!

  the remot client i want to contact is a hardware from third-part, i know its ip address and the port it uses
  can you tell me what i can do so?

  thank you very much
  nice day

  Marco Ferrario
    ----- Original Message ----- 
    From: Gianluca Varenni 
    To: winpcap-users at winpcap.org 
    Sent: Sunday, October 02, 2005 7:38 PM
    Subject: Re: [Winpcap-users] pcap_findalldevs_ex'


    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



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


    _______________________________________________
    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/20051003/eea305bb/attachment.htm


More information about the Winpcap-users mailing list