How to send a tcp packet to same machine from a kernel module by creating a sk_buff struct

Discussion in 'Linux Networking' started by will_u_tellmemore, Jan 11, 2007.

  1. Hi all,

    Can somebody tell me or point me to correct resource .
    I want to know how can i send a fabricated TCP packet from my kernel
    module using
    sk_buff . So basically how do i create this struct, make it look like a
    sk_buff having incoming
    tcp packet on some device and add it to queue from which sk_buff are
    processed by upper layers. So kernel TCP layer should see it as normal
    packet.

    Thanks,
    TellMeMore
     
    will_u_tellmemore, Jan 11, 2007
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.