Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: [hping-devel] Re: Pb when sending multiple packet using libARS and libnet

From: antirez <antirez(at)invece.org>
Date: Fri Dec 27 2002 - 10:18:47 EST

On Thu, Dec 26, 2002 at 04:03:21PM +0100, Jacky Buyck wrote:
> Hi all.

Hello,

this is the right behaviour, the API can't flush away layers information just after the compilation (or after the packet was sent) because it is often useful to compile/send multiple times the same packet with some change (or even the same packet). For example to implement traceroute, a natural implementation will create the packet only the first time, than modify the layers to change the ip ttl and (udp|tcp) port, recompile than resend the packet, until the work is done.

ars_destroy() is provided as a way to reuse the same packet structure to build a new layer without allocate a new one to send multiple, different packets.

Ciao,
Salvatore

-- 
Salvatore Sanfilippo  s/at/@/ s/dot/./
          finger antirez@tella.alicom.org for PGP key
      "Don't worry about what anybody else is going to do.
 The best way to predict the future is to invent it." (Alan Kay)

---------------------------------------------------------------------
To unsubscribe, e-mail: libnet-unsubscribe@securityfocus.com
For additional commands, e-mail: libnet-help@securityfocus.com
Received on Fri Dec 27 10:20:18 2002

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


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