Sorry to trouble again, <br><br>But, does anyone know if there is a way to get the loopback interface automatically? I mean, someway I can code so it runs the right way in any computer... I guess that if I hard code the interface name it will be different on another computer.<br>
<br>Thank&#39;s a lot!<br><br><div class="gmail_quote">On Tue, Dec 2, 2008 at 10:35 AM, George Elias <span dir="ltr">&lt;<a href="mailto:fs.georgee@gmail.com">fs.georgee@gmail.com</a>&gt;</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;">
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&#39;s a lot!<div><div></div><div class="Wj3C7c"><br><br><div class="gmail_quote">On Tue, Dec 2, 2008 at 10:08 AM, Eddie Ehlin <span dir="ltr">&lt;<a href="mailto:eddie.ehlin@vastgotadata.se" target="_blank">eddie.ehlin@vastgotadata.se</a>&gt;</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>
Hi Eddie,<br>
<br>
I did that, but I don&#39;t know the name of the device...<br>
<br>
Thank&#39;s a lot for the reply!<br>
<br></div><div>
On Tue, Dec 2, 2008 at 7:50 AM, Eddie Ehlin &lt;<a href="mailto:eddie.ehlin@vastgotadata.se" target="_blank">eddie.ehlin@vastgotadata.se</a> &lt;mailto:<a href="mailto:eddie.ehlin@vastgotadata.se" target="_blank">eddie.ehlin@vastgotadata.se</a>&gt;&gt; wrote:<br>


<br>
 &nbsp; &nbsp;George Elias skrev:<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Hi all,<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;I&#39;m porting some former cooworker&#39;s code from Linux to Windows.<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;On Linux it uses device &quot;lo&quot; as loopback device, what should I<br>
 &nbsp; &nbsp; &nbsp; &nbsp;use on Windows? Libpcap can&#39;t find &quot;<a href="http://127.0.0.1" target="_blank">127.0.0.1</a><br></div>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;<a href="http://127.0.0.1" target="_blank">http://127.0.0.1</a>&gt; &lt;<a href="http://127.0.0.1" target="_blank">http://127.0.0.1</a>&gt;&quot; neither &quot;localhost&quot; not<div><br>
 &nbsp; &nbsp; &nbsp; &nbsp;even &quot;ACE_LOCALHOST&quot;.<br>
<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Any help would be a great help!<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Thanks in advance<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;--  &nbsp; &nbsp; &nbsp; &nbsp;George Elias Ferreira da Silva<br>
 &nbsp; &nbsp; &nbsp; &nbsp;MSN: <a href="mailto:fs.georgee@gmail.com" target="_blank">fs.georgee@gmail.com</a> &lt;mailto:<a href="mailto:fs.georgee@gmail.com" target="_blank">fs.georgee@gmail.com</a>&gt;<br></div>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;mailto:<a href="mailto:fs.georgee@gmail.com" target="_blank">fs.georgee@gmail.com</a> &lt;mailto:<a href="mailto:fs.georgee@gmail.com" target="_blank">fs.georgee@gmail.com</a>&gt;&gt;<div><br>
 &nbsp; &nbsp; &nbsp; &nbsp;Skype: fs.georgee<br>
 &nbsp; &nbsp; &nbsp; &nbsp;------------------------------------------------------------------------<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;_______________________________________________<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Winpcap-users mailing list<br></div>
 &nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:Winpcap-users@winpcap.org" target="_blank">Winpcap-users@winpcap.org</a> &lt;mailto:<a href="mailto:Winpcap-users@winpcap.org" target="_blank">Winpcap-users@winpcap.org</a>&gt;<div>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;<a href="https://www.winpcap.org/mailman/listinfo/winpcap-users" target="_blank">https://www.winpcap.org/mailman/listinfo/winpcap-users</a><br>
 &nbsp; &nbsp; &nbsp; &nbsp; <br>
 &nbsp; &nbsp;Hi George,<br>
 &nbsp; &nbsp;I&#39;m not an expert at this but on Windows you need to install a<br>
 &nbsp; &nbsp;network-adapter (MS Loopback).<br>
 &nbsp; &nbsp;You should be able to install this adapter via the &quot;Add&amp;Remove<br>
 &nbsp; &nbsp;hardware&quot; under control-panel.<br>
<br>
 &nbsp; &nbsp;See: <a href="http://support.microsoft.com/kb/839013" target="_blank">http://support.microsoft.com/kb/839013</a><br>
<br>
 &nbsp; &nbsp;Best regards,<br>
 &nbsp; &nbsp;Eddie<br>
 &nbsp; &nbsp;_______________________________________________<br>
 &nbsp; &nbsp;Winpcap-users mailing list<br></div>
 &nbsp; &nbsp;<a href="mailto:Winpcap-users@winpcap.org" target="_blank">Winpcap-users@winpcap.org</a> &lt;mailto:<a href="mailto:Winpcap-users@winpcap.org" target="_blank">Winpcap-users@winpcap.org</a>&gt;<div><br>

 &nbsp; &nbsp;<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>
MSN: <a href="mailto:fs.georgee@gmail.com" target="_blank">fs.georgee@gmail.com</a> &lt;mailto:<a href="mailto:fs.georgee@gmail.com" target="_blank">fs.georgee@gmail.com</a>&gt;<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>
 &nbsp;<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 &quot;WpdPack/Example-pcap/iflist&quot; 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><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" target="_blank">fs.georgee@gmail.com</a><br></div></div>Skype: fs.georgee<br>

</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>