Messages in this thread | | | Date | Sun, 14 Dec 2003 21:31:49 -0500 (EST) | From | William Stearns <> | Subject | Re: How to send an IP packet from the kernel |
| |
Good morning, Dmytro,
On Mon, 15 Dec 2003, Dmytro Bablinyuk wrote:
> I have a dstaddr, srcaddr and the actual data(payload). I need to load > IP packet with data(payload) and send the packet out to the net through > eth0 . > How do I do this from the kernel?
Why not do it from userspace, with lots of available tools ( http://www.stearns.org/doc/pcap-apps.html , http://www.stearns.org/netreply )? Cheers, - Bill
--------------------------------------------------------------------------- "Vi has two modes; the one in which it beeps and the one in which it doesn't." -- Alan Cox -------------------------------------------------------------------------- William Stearns (wstearns@pobox.com). Mason, Buildkernel, freedups, p0f, rsync-backup, ssh-keyinstall, dns-check, more at: http://www.stearns.org Linux articles at: http://www.opensourcedigest.com --------------------------------------------------------------------------
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |