<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">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>