|
|||||||||||
|
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:
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 SanfilippoReceived 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 |
||||||||||
|
|||||||||||