<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<STYLE>.hmmessage P {
        PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px
}
BODY.hmmessage {
        FONT-SIZE: 10pt; FONT-FAMILY: Tahoma
}
</STYLE>
<META content="MSHTML 6.00.6000.16608" name=GENERATOR></HEAD>
<BODY class=hmmessage bgColor=#ffffff>
<DIV><FONT face="Courier New">you declared udp in the wrong way. you probably
wrote</FONT></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV><FONT face="Courier New">...</FONT></DIV>
<DIV><FONT face="Courier New">udp_header udp;</FONT></DIV>
<DIV><FONT face="Courier New">...</FONT></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV><FONT face="Courier New">while it should be</FONT></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV><FONT face="Courier New">udp_header *udp;</FONT></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV><FONT face="Courier New">BTW, the error message from the compiler tells you
what you are doing wrong: you are converting a "udp_header*" (the right side of
the assignment) to a "udp_header" type (left hand side of the
assignment).</FONT></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV><FONT face="Courier New">GV</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV><FONT face="Courier New"></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=essence_z@hotmail.com href="mailto:essence_z@hotmail.com">Ziara .</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=winpcap-users@winpcap.org
href="mailto:winpcap-users@winpcap.org">winpcap</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, March 13, 2008 12:00
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Winpcap-users] error compiling
udp = (udp_header*)((u_char*)ip +ip_len); </DIV>
<DIV><BR></DIV>Hello, i'm compiling my application in builder c++ v6 and
when I add:<BR> <BR>u_int ip_len = (ip->ver_ihl & 0xf) * 4;
//Longitud de Ip header<BR>udp = (udp_header*)((u_char*)ip +
ip_len);<BR> <BR>where ip_header *ip;<BR> <BR>I have a error in the
line number two:<BR> <BR>cannot convert udp_header* to
udp_header<BR> <BR>I don't know what happend. Someone
know?<BR> <BR>thanks in advanced<BR><BR>
<HR>
Todo ruedas: información práctica y todo el glamour del mundo del motor. <A
href="http://estilo.es.msn.com/" target=_new>MSN Estilo y Tendencias</A>
<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>