Hi Eddie!<br><br>Just thanking you! It passes that point now.... Got other issues, but those are from the code I have...<br><br>Thank's a lot!<br><br><div class="gmail_quote">On Tue, Dec 2, 2008 at 10:08 AM, Eddie Ehlin <span dir="ltr"><<a href="mailto:eddie.ehlin@vastgotadata.se">eddie.ehlin@vastgotadata.se</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">George Elias skrev:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">
Hi Eddie,<br>
<br>
I did that, but I don't know the name of the device...<br>
<br>
Thank's a lot for the reply!<br>
<br></div><div class="Ih2E3d">
On Tue, Dec 2, 2008 at 7:50 AM, Eddie Ehlin <<a href="mailto:eddie.ehlin@vastgotadata.se" target="_blank">eddie.ehlin@vastgotadata.se</a> <mailto:<a href="mailto:eddie.ehlin@vastgotadata.se" target="_blank">eddie.ehlin@vastgotadata.se</a>>> wrote:<br>
<br>
George Elias skrev:<br>
<br>
Hi all,<br>
<br>
I'm porting some former cooworker's code from Linux to Windows.<br>
<br>
On Linux it uses device "lo" as loopback device, what should I<br>
use on Windows? Libpcap can't find "<a href="http://127.0.0.1" target="_blank">127.0.0.1</a><br></div>
<<a href="http://127.0.0.1" target="_blank">http://127.0.0.1</a>> <<a href="http://127.0.0.1" target="_blank">http://127.0.0.1</a>>" neither "localhost" not<div class="Ih2E3d"><br>
even "ACE_LOCALHOST".<br>
<br>
<br>
Any help would be a great help!<br>
<br>
Thanks in advance<br>
<br>
-- George Elias Ferreira da Silva<br>
MSN: <a href="mailto:fs.georgee@gmail.com" target="_blank">fs.georgee@gmail.com</a> <mailto:<a href="mailto:fs.georgee@gmail.com" target="_blank">fs.georgee@gmail.com</a>><br></div>
<mailto:<a href="mailto:fs.georgee@gmail.com" target="_blank">fs.georgee@gmail.com</a> <mailto:<a href="mailto:fs.georgee@gmail.com" target="_blank">fs.georgee@gmail.com</a>>><div class="Ih2E3d"><br>
Skype: fs.georgee<br>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Winpcap-users mailing list<br></div>
<a href="mailto:Winpcap-users@winpcap.org" target="_blank">Winpcap-users@winpcap.org</a> <mailto:<a href="mailto:Winpcap-users@winpcap.org" target="_blank">Winpcap-users@winpcap.org</a>><div class="Ih2E3d">
<br>
<a href="https://www.winpcap.org/mailman/listinfo/winpcap-users" target="_blank">https://www.winpcap.org/mailman/listinfo/winpcap-users</a><br>
<br>
Hi George,<br>
I'm not an expert at this but on Windows you need to install a<br>
network-adapter (MS Loopback).<br>
You should be able to install this adapter via the "Add&Remove<br>
hardware" under control-panel.<br>
<br>
See: <a href="http://support.microsoft.com/kb/839013" target="_blank">http://support.microsoft.com/kb/839013</a><br>
<br>
Best regards,<br>
Eddie<br>
_______________________________________________<br>
Winpcap-users mailing list<br></div>
<a href="mailto:Winpcap-users@winpcap.org" target="_blank">Winpcap-users@winpcap.org</a> <mailto:<a href="mailto:Winpcap-users@winpcap.org" target="_blank">Winpcap-users@winpcap.org</a>><div class="Ih2E3d"><br>
<a href="https://www.winpcap.org/mailman/listinfo/winpcap-users" target="_blank">https://www.winpcap.org/mailman/listinfo/winpcap-users</a><br>
<br>
<br>
<br>
<br>
-- <br>
George Elias Ferreira da Silva<br>
Fone: (48) 9911-5084<br></div><div class="Ih2E3d">
MSN: <a href="mailto:fs.georgee@gmail.com" target="_blank">fs.georgee@gmail.com</a> <mailto:<a href="mailto:fs.georgee@gmail.com" target="_blank">fs.georgee@gmail.com</a>><br>
Skype: fs.georgee<br>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Winpcap-users mailing list<br>
<a href="mailto:Winpcap-users@winpcap.org" target="_blank">Winpcap-users@winpcap.org</a><br>
<a href="https://www.winpcap.org/mailman/listinfo/winpcap-users" target="_blank">https://www.winpcap.org/mailman/listinfo/winpcap-users</a><br>
<br>
</div></blockquote>
Hi,<br>
<br>
You should be able to find the name of the device by calling pcap_findalldevs(). Check the example project "WpdPack/Example-pcap/iflist" which is shipped with the dev-pack.<br>
A name should look like something like this: \Device\NPF_{989C471A-BA83-4065-814A-6D5881F7957E}<br>
<br>
Though all the devices that is listed by calling pcap_findalldevs() is not suited for pcap, keep that in mind.<br>
<br>
I hope that this helps! :-)<br>
Best regards,<br><font color="#888888">
Eddie<br>
</font><br>
Ps. No problem at all! Ds.<div><div></div><div class="Wj3C7c"><br>
_______________________________________________<br>
Winpcap-users mailing list<br>
<a href="mailto:Winpcap-users@winpcap.org" target="_blank">Winpcap-users@winpcap.org</a><br>
<a href="https://www.winpcap.org/mailman/listinfo/winpcap-users" target="_blank">https://www.winpcap.org/mailman/listinfo/winpcap-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>George Elias Ferreira da Silva<br>Fone: (48) 9911-5084<br>MSN: <a href="mailto:fs.georgee@gmail.com">fs.georgee@gmail.com</a><br>Skype: fs.georgee<br>