<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=text/html;charset=iso-8859-1 http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.7600.16588"></HEAD>
<BODY style="PADDING-LEFT: 10px; PADDING-RIGHT: 10px; PADDING-TOP: 15px"
id=MailContainerBody leftMargin=0 topMargin=0 CanvasTabStop="true"
name="Compose message area">
<DIV><FONT face=Calibri>Which version of WinPcap are you using?</FONT></DIV>
<DIV><FONT face=Calibri></FONT> </DIV>
<DIV><FONT face=Calibri>Do you have a large number of IP addresses configured on
that interface?</FONT></DIV>
<DIV><FONT face=Calibri></FONT> </DIV>
<DIV><FONT face=Calibri>Have a nice day</FONT></DIV>
<DIV><FONT face=Calibri>GV</FONT></DIV>
<DIV style="FONT: 10pt Tahoma">
<DIV><BR></DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=pettor@gmail.com
href="mailto:pettor@gmail.com">Petter Gustavsson</A> </DIV>
<DIV><B>Sent:</B> Monday, August 09, 2010 6:50 AM</DIV>
<DIV><B>To:</B> <A title=winpcap-users@winpcap.org
href="mailto:winpcap-users@winpcap.org">winpcap-users@winpcap.org</A> </DIV>
<DIV><B>Subject:</B> [Winpcap-users] WinPcap and Vista p"cap_findalldevs"
Problem</DIV></DIV></DIV>
<DIV><BR></DIV><SPAN
style="BORDER-COLLAPSE: collapse; FONT-FAMILY: arial, sans-serif; FONT-SIZE: 13px"
class=Apple-style-span>Hi,
<DIV><BR></DIV>
<DIV>I use WinPcap to capture packets through an application written in
C. The application is used to run on Vista, but has been used on Windows XP
without any similar problem. For most time everything works fine
for me and the other users, but sometimes there will be an error where the
application will "fail to bind to servers". This message is basically just an
translation from a problem that occur when Pcap fails to find devices (using
pcap_findalldevs(...) ) on the system. Well not entirely true, devices are found
(Ms Loopback) but the "addr" "sockaddr*" field doesn't any information. So the
pcap_if_t container that should contain all devices recognize "MS Loopback
Driver" but no valid addresses can be found, even if there are plenty available
on the system.</DIV>
<DIV><BR></DIV>
<DIV>Netsh is used to add ip-addresses to the Vista system using script with
information like:</DIV>
<DIV><BR></DIV>
<DIV>"netsh interface ipv4 add address name=Loopback addr=192.168.254.1
mask=255.255.128.0"</DIV>
<DIV>
<DIV>"netsh interface ipv4 add address name=Loopback addr=192.168.254.2
mask=255.255.128.0"</DIV></DIV>
<DIV>etc. ...</DIV>
<DIV><BR></DIV>
<DIV>Removing these addresses and then adding them again can sometimes fix the
problem, temporarily. Is this a Vista + WinPcap problem? Really seems so.</DIV>
<DIV><BR></DIV>
<DIV>Anyone who recognize this problem?</DIV>
<DIV><BR></DIV>
<DIV>Best regards,</DIV>
<DIV>Petter Gustavsson</DIV></SPAN>
<P>
<HR>
<P></P>_______________________________________________<BR>Winpcap-users mailing
list<BR>Winpcap-users@winpcap.org<BR>https://www.winpcap.org/mailman/listinfo/winpcap-users<BR></BODY></HTML>