two passes over the list...
i was thinking about the three passes on the linked list...
now they've become only two passes, but the first pass does
use a realloc() for each element of the pblock chain it does
encounter...
i wonder if it is possible to avoid that... i tried by keeping
into a new field of the libnet context the current size of the
packet... changing it both when you add an header to the chain
and when you make a new header upon a previous one...
i modified libnet_pblock.c, libnet_init.c and libnet-structures.h
i recompiled the libnet with these changes and had a try with
ping_of_death.c but even though it seems to work i didn't check
the wire to see if everything is alright...
if you can give a look, i thank you very much
sandr8)
To unsubscribe, e-mail: libnet-unsubscribe@securityfocus.com
For additional commands, e-mail: libnet-help@securityfocus.com
Received on Thu May 29 14:25:55 2003
This archive was generated by hypermail 2.1.8
: Wed Aug 23 2006 - 14:02:23 EDT
|