RE: Re: more questions on skbuff allocation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



skb_put doesn't put anything in the area shown as "skb_put area" in the diagram.
It just updates sk_buff's pointers to allow you to write data in the skb_put area.
The skb_put call returns you the pointer to the start of this area, where you are supposed to
write whatever you want to (till length len which you gave in skb_put call).
 
cheers,
Deepankar.
-----Original Message-----
From: kernelnewbies-bounce@nl.linux.org [mailto:kernelnewbies-bounce@nl.linux.org]On Behalf Of bunty
Sent: Thursday, April 29, 2004 12:00 PM
To: mohanlal jangir
Cc: kernelnewbies@nl.linux.org
Subject: Re: Re: more questions on skbuff allocation


hi ,
          i already read that articale but it is not having clear explaination about how actually in kernel it works?
what i am not getting from diagram 3 and 4 is that what exactly has been put in skb in diagram 4 so that it looks like
          | headroom | data area| skb_put area | tailroom
from diagram 3
        | headroom | data area | tailroom

regards,
parag.


On Thu, 29 Apr 2004 mohanlal jangir wrote :
>Here is an excellent tutorial by Alan Cox
>http://www.tldp.org/LDP/khg/HyperNews/get/net/net-intro.html
>
>Regards
>Mohanlal
>




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux