[Winpcap-bugs] Windows 7 and pcap_findalldevs

Gianluca Varenni gianluca.varenni at cacetech.com
Fri Oct 30 10:54:44 PDT 2009


Did you actually check that the address is an IPv4 one?

GV

  ----- Original Message ----- 
  From: Larry Weaver 
  To: winpcap-bugs at winpcap.org 
  Sent: Friday, October 30, 2009 10:41 AM
  Subject: [Winpcap-bugs] Windows 7 and pcap_findalldevs


  I've just upgraded to window 7 and there is a new behavior for findalldevs.  Under xp the address returned could be used to add the ipaddress of an interface to it's description

   

                          s = gcnew String(iptos(((struct sockaddr_in *)d->addresses->addr)->sin_addr.s_addr)) + " " + s;

   

  but under windows 7, the address comes back from findalldevs as 0 (leading to a 0.0.0.0 being added to the description).  I don't have vista, so I don't know if this is the same behavior under vista or not.

   

  Wireshark has the same behavior.  When it starts under windows 7 it lists the adapters with no ip.  Since my motherboards have two nvidia Ethernet ports I have to select the correct one by trial and error.

   

  I assume this is a bug and not just the new expected behavior.

   

  Larry



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


  _______________________________________________
  Winpcap-bugs mailing list
  Winpcap-bugs at winpcap.org
  https://www.winpcap.org/mailman/listinfo/winpcap-bugs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winpcap.org/pipermail/winpcap-bugs/attachments/20091030/02456db0/attachment.htm 


More information about the Winpcap-bugs mailing list