Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Linux Networking

how to construct the sk_buff structure by myself?

Reply
 
Thread Tools Display Modes
  #1  
Old 02-17-2004, 11:13 AM
Default how to construct the sk_buff structure by myself?



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


fangweiwei
Reply With Quote
Reply

Tags
construct, skbuff, structure

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
Forum Jump


All times are GMT. The time now is 01:54 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.