Creating and sending a packet from a kernel module

From: Joshua Stewart (joshua.stewart@comcast.net)
Date: Thu Mar 20 2003 - 20:46:00 EST


I'd like to create and send a brand new TCP SYN packet from a module.
Does anybody have an example of how to do this.

I've tried doing alloc_skb, filling in all the information I could
imagine needing in skb->data, but what is the minimal amount of stuff
needed by the other parts of the skb to get this packet moving?

Is there an easy way to create and own a TCP socket from a module that I
could send and receive on?

Thanks,
        Josh

-- 
Joshua Stewart <joshua.stewart@comcast.net>


- 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/



This archive was generated by hypermail 2b29 : Sun Mar 23 2003 - 22:00:33 EST