[prev in list] [next in list] [prev in thread] [next in thread] 

List:       winpcap-bugs
Subject:    Re: [Winpcap-bugs] Windows 7 and pcap_findalldevs
From:       "Gianluca Varenni" <gianluca.varenni () cacetech ! com>
Date:       2009-10-30 17:54:44
Message-ID: 3B65E06E2E4849F08A0FB1257AEB8D8C () NELSON3
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Did you actually check that the address is an IPv4 one?

GV

  ----- Original Message ----- 
  From: Larry Weaver 
  To: winpcap-bugs@winpcap.org 
  Sent: Friday, October 30, 2009 10:41 AM
  Subject: [Winpcap-bugs] Windows 7 and pcap_findalldevs


  I've just upgraded to window 7 and there is a new behavior for findalldevs.  Under \
xp the address returned could be used to add the ipaddress of an interface to it's \
description

   

                          s = gcnew String(iptos(((struct sockaddr_in \
*)d->addresses->addr)->sin_addr.s_addr)) + " " + s;

   

  but under windows 7, the address comes back from findalldevs as 0 (leading to a \
0.0.0.0 being added to the description).  I don't have vista, so I don't know if this \
is the same behavior under vista or not.

   

  Wireshark has the same behavior.  When it starts under windows 7 it lists the \
adapters with no ip.  Since my motherboards have two nvidia Ethernet ports I have to \
select the correct one by trial and error.

   

  I assume this is a bug and not just the new expected behavior.

   

  Larry



------------------------------------------------------------------------------


  _______________________________________________
  Winpcap-bugs mailing list
  Winpcap-bugs@winpcap.org
  https://www.winpcap.org/mailman/listinfo/winpcap-bugs


[Attachment #5 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v = 
"urn:schemas-microsoft-com:vml" xmlns:o = 
"urn:schemas-microsoft-com:office:office" xmlns:w = 
"urn:schemas-microsoft-com:office:word" xmlns:m = 
"http://schemas.microsoft.com/office/2004/12/omml"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.5726" name=GENERATOR>
<STYLE>@font-face {
	font-family: Cambria Math;
}
@font-face {
	font-family: Calibri;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.0in 1.0in 1.0in; }
P.MsoNormal {
	FONT-SIZE: 11pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Calibri","sans-serif"
}
LI.MsoNormal {
	FONT-SIZE: 11pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Calibri","sans-serif"
}
DIV.MsoNormal {
	FONT-SIZE: 11pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Calibri","sans-serif"
}
A:link {
	COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlink {
	COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
A:visited {
	COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlinkFollowed {
	COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.EmailStyle17 {
	COLOR: windowtext; FONT-FAMILY: "Calibri","sans-serif"; mso-style-type: \
personal-compose }
.MsoChpDefault {
	mso-style-type: export-only
}
DIV.Section1 {
	page: Section1
}
</STYLE>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]--></HEAD>
<BODY lang=EN-US vLink=purple link=blue bgColor=#ffffff>
<DIV><FONT size=2>Did you actually check that the address is an IPv4 
one?</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>GV</FONT></DIV>
<DIV>&nbsp;</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=LW@LWConsulting.com href="mailto:LW@LWConsulting.com">Larry 
  Weaver</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=winpcap-bugs@winpcap.org 
  href="mailto:winpcap-bugs@winpcap.org">winpcap-bugs@winpcap.org</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, October 30, 2009 10:41 
  AM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> [Winpcap-bugs] Windows 7 and 
  pcap_findalldevs</DIV>
  <DIV><BR></DIV>
  <DIV class=Section1>
  <P class=MsoNormal>I’ve just upgraded to window 7 and there is a new behavior 
  for findalldevs.&nbsp; Under xp the address returned could be used to add the 
  ipaddress of an interface to it’s description<o:p></o:p></P>
  <P class=MsoNormal><o:p>&nbsp;</o:p></P>
  <P class=MsoNormal><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier \
New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
  <SPAN style="COLOR: #010001">s</SPAN> = <SPAN style="COLOR: blue">gcnew</SPAN> 
  <SPAN style="COLOR: #010001">String</SPAN>(<SPAN 
  style="COLOR: #010001">iptos</SPAN>(((<SPAN style="COLOR: blue">struct</SPAN> 
  <SPAN style="COLOR: #010001">sockaddr_in</SPAN> *)<SPAN 
  style="COLOR: #010001">d</SPAN>-&gt;<SPAN 
  style="COLOR: #010001">addresses</SPAN>-&gt;<SPAN 
  style="COLOR: #010001">addr</SPAN>)-&gt;<SPAN 
  style="COLOR: #010001">sin_addr</SPAN>.<SPAN 
  style="COLOR: #010001">s_addr</SPAN>)) + <SPAN style="COLOR: #a31515">" 
  "</SPAN> + <SPAN style="COLOR: #010001">s</SPAN>;<o:p></o:p></SPAN></P>
  <P class=MsoNormal><o:p>&nbsp;</o:p></P>
  <P class=MsoNormal>but under windows 7, the address comes back from 
  findalldevs as 0 (leading to a 0.0.0.0 being added to the description).&nbsp; 
  I don’t have vista, so I don’t know if this is the same behavior under vista 
  or not.<o:p></o:p></P>
  <P class=MsoNormal><o:p>&nbsp;</o:p></P>
  <P class=MsoNormal>Wireshark has the same behavior.&nbsp; When it starts under 
  windows 7 it lists the adapters with no ip.&nbsp; Since my motherboards have 
  two nvidia Ethernet ports I have to select the correct one by trial and 
  error.<o:p></o:p></P>
  <P class=MsoNormal><o:p>&nbsp;</o:p></P>
  <P class=MsoNormal>I assume this is a bug and not just the new expected 
  behavior.<o:p></o:p></P>
  <P class=MsoNormal><o:p>&nbsp;</o:p></P>
  <P class=MsoNormal>Larry<o:p></o:p></P></DIV>
  <P>
  <HR>

  <P></P>_______________________________________________<BR>Winpcap-bugs mailing 
  list<BR>Winpcap-bugs@winpcap.org<BR>https://www.winpcap.org/mailman/listinfo/winpcap-bugs<BR></BLOCKQUOTE></BODY></HTML>




_______________________________________________
Winpcap-bugs mailing list
Winpcap-bugs@winpcap.org
https://www.winpcap.org/mailman/listinfo/winpcap-bugs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic