<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16735" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>I don't know exactly how the microsoft loopback interface
works (I hope to play with it this coming weekend), but in general it will not
allow you to capture the packets to/from the IP loopback address 127.0.0.1: such
packets are managed directly by the TCP/IP protocol driver, and they do not
reach any lower layer. WinPcap sits in parallel with the TCP/IP protocol driver,
so it will not be able to see packets that do not go out of the TCP/IP
stack.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Have a nice day</FONT></DIV>
<DIV><FONT size=2>GV</FONT></DIV>
<DIV> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=fs.georgee@gmail.com href="mailto:fs.georgee@gmail.com">George
Elias</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=winpcap-users@winpcap.org
href="mailto:winpcap-users@winpcap.org">winpcap-users@winpcap.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, December 02, 2008 5:04
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Winpcap-users] Loopback
Device on Windows</DIV>
<DIV><BR></DIV>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's a
lot!<BR><BR>
<DIV class=gmail_quote>On Tue, Dec 2, 2008 at 10:35 AM, George Elias <SPAN
dir=ltr><<A
href="mailto:fs.georgee@gmail.com">fs.georgee@gmail.com</A>></SPAN>
wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">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!
<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><<A href="mailto:eddie.ehlin@vastgotadata.se"
target=_blank>eddie.ehlin@vastgotadata.se</A>></SPAN> wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">George
Elias skrev:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV>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>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><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><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><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><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>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><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>
<P>
<HR>
<P></P>_______________________________________________<BR>Winpcap-users
mailing
list<BR>Winpcap-users@winpcap.org<BR>https://www.winpcap.org/mailman/listinfo/winpcap-users<BR></BLOCKQUOTE></BODY></HTML>