Skip to contentSkip to conversation

Creating and sending a packet from a kernel module

DISCUSSION Joshua Stewart 1 participant 1 message Mar 21, 2003

lore
Share & tools
lore
#0 lore raw

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

Signature · 1 line
Joshua Stewart <[email protected]>