Re: libnet_write

Jose Nazario <[email protected]> Mon, 7 Jun 2004 11:25:58 -0400 (EDT)
Newsgroups gmane.comp.security.libnet
Message-ID <[email protected]>
On Mon, 7 Jun 2004 [email protected] wrote:

>   What if I do not want to build the ethernet header. I want the packet
> to be a raw packet that is handed to ip after the write call. What about
> libnet_write_raw_ipv4, i tihink that is no longer supported, i use
> libnet 1.1.2.1.

have you looked at pcap_inject()? you're already capturing with pcap, you
can manipulate with libnet and write using pcap_inject():

$ man pcap
...
     int
     pcap_inject(pcap_t *p, void *, size_t);

...

     pcap_inject() uses write(2) to inject a raw packet through the network
     interface.


just a thought.

________
jose nazario, ph.d.			[email protected]
http://monkey.org/~jose/ 		http://infosecdaily.net/