Networking Forums

Networking Forums > Computer Networking > Linux Networking > how to construct the sk_buff structure by myself?

Reply
Thread Tools Display Modes

how to construct the sk_buff structure by myself?

 
 
fangweiwei
Guest
Posts: n/a

 
      02-17-2004, 10:13 AM
Hi,everyone!
I want to ask for help about the sk_buff.
How can I construct an packet by myself?use sk_buff structure.

If as the following?
sk = alloc_skb(sizeof(struct sk_buff),GFP_ATOMIC);
sk->data=mydata;//mydata is data what we know

but I don't know if I should fill in other part of sk.

besides ,I found document about sk_buff is too little, so can you give
me some faq or document about it?

thank you very much!!
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
obtain ARP header from 'sk_buff' Mark Linux Networking 0 10-07-2010 09:16 AM
sk_buff & DMA Bill Linux Networking 2 04-23-2008 07:36 AM
How to send a tcp packet to same machine from a kernel module by creating a sk_buff struct will_u_tellmemore Linux Networking 0 01-11-2007 12:45 PM
DNS structure Kevin Windows Networking 6 11-17-2005 03:50 AM
problems with sk_buff implementation Venu Linux Networking 0 06-24-2004 02:59 AM



1 2 3 4 5 6 7 8 9 10 11