Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

ipv4 options padding bugfix

From: alessandro salvatori <alessandrosalvatori(at)virgilio.it>
Date: Thu Jul 10 2003 - 16:31:30 EDT


in libnet_build_ip.c

  • n = libnet_pblock_append(l, p, options, adj_size);

becomes...

+ n = libnet_pblock_append(l, p, options, option_s); ...
+ n = libnet_pblock_append(l, p, "\0\0\0", adj_size - option_s);

because we don't know if the three bytes after the options buffer belong to us and our segment ;) is this right?
cheers
sandr8)



To unsubscribe, e-mail: libnet-unsubscribe@securityfocus.com For additional commands, e-mail: libnet-help@securityfocus.com
Received on Thu Jul 10 16:49:25 2003

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:02:24 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library