LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
LinkBack Search this Thread
Old 04-15-2009, 04:07 AM   #1
Mr.J
Member
 
Registered: Jun 2008
Posts: 82

Rep: Reputation: 15
when sk_buff is allocated while sending packaet


When a frame is received at NIC, interrupt handler of NIC , allocate sk_buff struct and copy data from Device to struct.
When I send packet (using send function of socket), where this struct is initialized and who allocate this struct....


Thanks
James.
 
Old 04-16-2009, 08:44 PM   #2
AustinMarton
Member
 
Registered: May 2007
Location: New Zealand
Distribution: Fedora at home, Ubuntu 10.04 at work
Posts: 88

Rep: Reputation: 16
I'm not sure exactly where, but the driver receives the skb from the upper layers - so somewhere up there
 
Old 04-17-2009, 09:37 PM   #3
titan22
LQ Newbie
 
Registered: Apr 2009
Posts: 17

Rep: Reputation: 3
UDP ip_append_data() user data is copied to SKB
TCP do_tcp_sendpages() user data is copied to SKB
sendfile ip_append_page() zero copy. Update SKB pointers to user data.

They are in L4 layer and sit under net/ipv4 (or ipv6). SKBs are pushed down to L3 IP later.

Last edited by titan22; 04-17-2009 at 09:44 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get the pid from sk_buff? yorambaron Linux - Kernel 1 04-24-2007 02:10 PM
sk_buff append new shrishailnk Linux - Networking 0 04-09-2006 01:07 AM
Help with sk_buff cstrask Programming 0 11-23-2005 09:55 PM
how to use sk_buff wangjinyi Programming 0 10-27-2005 02:28 AM
Question about sk_buff auron Linux - Networking 0 10-06-2005 03:57 AM


All times are GMT -5. The time now is 08:13 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration