Re: Send packet w/out calling libnet_build_ethernet()
Aaron Turner <[email protected]>
| Newsgroups | gmane.comp.security.libnet |
|---|---|
| Message-ID | <[email protected]> |
Hey Fabio, 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.
signature.asc
(application/pgp-signature, 254 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Public key at: http://www.synfin.net/aturner/pgpkey.asc iD8DBQFAXIIWhweYF/hu2uYRAuSYAJ4i1Mr9SsCMYCK9yMT1PB4BY7Ur+ACfbIA6 xl2q8JjKvrf3qfesd0uITzY= =vWBC -----END PGP SIGNATURE-----