<!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.16640" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>Sorry for the late reply.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Nothing should be different on Vista. Have you tried the
sample called "iflist" in the developer's pack? The sample lists both IPv4 and
IPv6 of each adapter.</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=schumiimor@gmail.com href="mailto:schumiimor@gmail.com">Schumi
Imor</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> Saturday, May 10, 2008 1:53
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Winpcap-users] Getting IP from
pcap_findalldevs in VISTA</DIV>
<DIV><BR></DIV>Hello, <BR> It seems that getting the
device's IP from pcap_findalldevs changed from XP to VISTA.<BR>
<B><SPAN style="COLOR: rgb(204,0,0)">((struct sockaddr_in
*)(d->addresses->addr))->sin_addr.S_un.S_addr;</SPAN></B><BR>
is returning 0 in Vista. Did this struct change in Vista because of IPv6 or
something?<BR><BR><BR> pcap_findalldevs(&alldevs,
errbuf)<BR> /* Print the list */<BR>
for(d=alldevs; d; d=d->next)<BR> {<BR>
i++;<BR> if
(d->description) {<BR>
printf(" (%s)\n", d->description);<BR>
<B><SPAN
style="COLOR: rgb(204,0,0)">srcIP = ((struct sockaddr_in
*)(d->addresses->addr))->sin_addr.S_un.S_addr;</SPAN><BR
style="COLOR: rgb(204,0,0)"><SPAN
style="COLOR: rgb(204,0,0)">
srcNetMask = ((struct sockaddr_in
*)(d->addresses->netmask))->sin_addr.S_un.S_addr;</SPAN></B><BR>
}<BR> }<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>