[Winpcap-users] Identify an Ethernet card

Gianluca Varenni gianluca.varenni at cacetech.com
Wed Mar 25 09:54:23 PDT 2009


The structure pcap_if_t contains the IPv4 and IPv6 addresses associated with the adapter in the field addresses. 
Please have a look at the "iflist" sample in the WinPcap developers' pack.

Have a nice day
GV

  ----- Original Message ----- 
  From: ceo at triplebit.com 
  To: winpcap-users at winpcap.org 
  Sent: Wednesday, March 25, 2009 2:46 AM
  Subject: [Winpcap-users] Identify an Ethernet card


  I try to identify the correct card, of wich I'de like to capture its packets, by the following code-
  I know the IP address (in a dotted format like 192.168.1.101) and also its mac address in a 
  _int64 format.

  How can selecet the right adapters from 5 adapters that I have in my pc?

  Regards

  I. Lesher

  for(d= alldevs; d != NULL; d= d->next)

  {

  .....// missing code

  }



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


  _______________________________________________
  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/20090325/222387e2/attachment.htm 


More information about the Winpcap-users mailing list