<!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.16705" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>Does the sample called "iflist" return the same 0.0.0.0
address?</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Iflist is available in the winpcap developer's pack,
wpdpack\Examples-pcap\iflist</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>
<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=gcapwell@broadcom.com href="mailto:gcapwell@broadcom.com">Gerald
Capwell</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> Thursday, September 11, 2008 2:47
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Winpcap-users] Always
retrieving 0.0.0.0 IP address</DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=843214121-11092008>Hi,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=843214121-11092008>I am writing MSFT
VC++ Studio 8 application that uses winpcap. I can receive a correct
device list, however I cannot retrieve the IP addresses of each adapter. I
always receive "0.0.0.0"</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=843214121-11092008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=843214121-11092008>Here is the
function call:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=843214121-11092008>iptos(((<FONT
color=#0000ff size=2>struct</FONT><FONT size=2> sockaddr_in
*)(d->addresses->addr))->sin_addr.S_un.S_addr);</FONT></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=843214121-11092008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=843214121-11092008>I'm using the
4.1Beta4 build.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=843214121-11092008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=843214121-11092008><SPAN
class=843214121-11092008>Any ideas?</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=843214121-11092008><SPAN
class=843214121-11092008></SPAN></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=843214121-11092008><SPAN
class=843214121-11092008>Thanks for your help.</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=843214121-11092008><SPAN
class=843214121-11092008></SPAN></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=843214121-11092008><SPAN
class=843214121-11092008>Regards, Gerry</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=843214121-11092008><SPAN
class=843214121-11092008></SPAN><FONT size=2> </DIV>
<P></FONT><FONT size=2> </P></FONT></SPAN></FONT>
<DIV><FONT face=Arial size=2><SPAN
class=843214121-11092008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=843214121-11092008></SPAN></FONT> </DIV>
<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>