|
Libnet
Send packet w/out calling libnet_build_ethernet() Mar 19 2004 12:27PM Fabio Duarte (fduarte parks com br) (1 replies) Re: Send packet w/out calling libnet_build_ethernet() Mar 19 2004 06:51PM Peter Moody (peter ucsc edu) (1 replies) Re: Send packet w/out calling libnet_build_ethernet() Mar 19 2004 07:32PM Fabio Duarte (fduarte parks com br) (1 replies) |
|
Privacy Statement |
Well tcpreplay will do that too (both uni and bi-directionally). If you
still want to write your own, it's pretty simple. The trick is to send
the packet using libnet_adv_write_link() which takes your libnet handle,
a data buffer containing your entire packet, and the lenght of the data
in the buffer.
Read do_packets() in do_packets.c in tcpreplay for more details.
-Aaron
On Fri, Mar 19, 2004 at 04:32:05PM -0300, Fabio Duarte wrote:
> Hi Peter, the reason is the former, I have to build the tool as an
> exercise. The moment I get the packet I have to retransmit it thru
> another interface. As I understood from tcpreplay, I would need to save
> the packets in files and etc...
> The way I am doing the retransmission today works well but, if there is
> a cleaner way I would like to try.
>
> Thanks,
> Fabio Duarte.
[ reply ]