Re: libnet_write
Aaron Turner <[email protected]> Sat, 5 Jun 2004 11:47:53 -0700
| Newsgroups | gmane.comp.security.libnet |
|---|---|
| Message-ID | <[email protected]> |
just use libnet_adv_write_link(). Works great. -Aaron On Sat, Jun 05, 2004 at 02:08:54PM +0100, Jee J.Z. wrote: > Hi Amit, > > I'm afraid, yes. At least this is what I'm doing, since I still don't need a large bandwidth at the moment. Maybe in the future I'll get in trouble. If you find a better way to do it, please let me know. Thanks. > > Jee > > > > > > > Hi > > > > 1. can libnet_write write packets that were not built in the libnet context > > ? i dont think so. > > 2. that means if i capture a TCP packet and inject it back using libnet > > functions, say even without any changes at all(to headeror payload), I need > > to reconstruct the tcp header using the call libnet_build_tcp() and then > > build the ip_header using libnet_build_ip() and only then i can write it > > using libnet_write() ?? !!, is there no way of passing a pointer to a raw > > packet(one which we created, or caught and now want to reinject) without > > going through these build functions, because as you can see calling all > > these build functions for packets which were caught and are now being > > reinjected after a delay involves a lot of overhead ?? > > > > thanks > > Amit > >
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 iD8DBQFAwhVZhweYF/hu2uYRAg/QAJ42oZx0S08YYtdP/mxZ6IQ+J1UivQCdEczh q6oHj0NXr1IbZajqrm//IkE= =oE56 -----END PGP SIGNATURE-----