How to send an IP packet from the kernel

From: Dmytro Bablinyuk
Date: Sun Dec 14 2003 - 21:11:24 EST


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?

Thank you

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/