[Winpcap-users] error compiling udp = (udp_header*)((u_char*)ip +ip_len);

TORKHANI Wajdi wajdi.torkhani at laposte.net
Thu Mar 13 19:50:03 GMT 2008


try:
u_int ip_len = (ip->ver_ihl & 0xf) * 4; //Longitud de Ip header
*udp = (udp_header*)((u_char*)ip + ip_len);


  ----- Original Message ----- 
  From: Ziara . 
  To: winpcap 
  Sent: Thursday, March 13, 2008 8:00 PM
  Subject: [Winpcap-users] error compiling udp = (udp_header*)((u_char*)ip +ip_len); 


  Hello, i'm compiling my application in builder c++ v6 and when I add:
   
  u_int ip_len = (ip->ver_ihl & 0xf) * 4; //Longitud de Ip header
  udp = (udp_header*)((u_char*)ip + ip_len);
   
  where ip_header *ip;
   
  I have a error in the line number two:
   
  cannot convert udp_header*  to udp_header
   
  I don't know what happend. Someone know?
   
  thanks in advanced


------------------------------------------------------------------------------
  Todo ruedas: información práctica y todo el glamour del mundo del motor. MSN Estilo y Tendencias 


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


  _______________________________________________
  Winpcap-users mailing list
  Winpcap-users at winpcap.org
  https://www.winpcap.org/mailman/listinfo/winpcap-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winpcap.org/pipermail/winpcap-users/attachments/20080313/c1597fd4/attachment.htm


More information about the Winpcap-users mailing list