Which version of WinPcap are you using?

Do you have a large number of IP addresses configured on that interface?

Have a nice day
GV


From: Petter Gustavsson 
Sent: Monday, August 09, 2010 6:50 AM
To: [email protected] 
Subject: [Winpcap-users] WinPcap and Vista p"cap_findalldevs" Problem


Hi, 


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.


Netsh is used to add ip-addresses to the Vista system using script with 
information like:


"netsh interface ipv4 add address name=Loopback addr=192.168.254.1 
mask=255.255.128.0"
"netsh interface ipv4 add address name=Loopback addr=192.168.254.2 
mask=255.255.128.0"
etc. ...


Removing these addresses and then adding them again can sometimes fix the 
problem, temporarily. Is this a Vista + WinPcap problem? Really seems so.


Anyone who recognize this problem?


Best regards,
Petter Gustavsson


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


_______________________________________________
Winpcap-users mailing list
[email protected]
https://www.winpcap.org/mailman/listinfo/winpcap-users
_______________________________________________
Winpcap-users mailing list
[email protected]
https://www.winpcap.org/mailman/listinfo/winpcap-users

Reply via email to