Re: pskb_may_pull

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

 



On Wednesday 10 November 2004 08:01, Subhash Gopinath wrote:

> I am using 2.4.27 . 'Wanted to know what pskb_may_pull() in ipgre_rc() of
> net/ipv4/ip_gre.c does...Why does it have 16 as its second parameter ?

  It would help to know something about skbuff in this regard. pskb_may_pull() 
is used to find out if it is possible to 'pull', i.e, advance the pointer 
within the skb by the specified number of bytes. The 16 (or whatever) is 
typically the size of a protocol header. So, the call you are referring to 
just means to check if there is enough stuff in the skbuff to account for the 
next protocol header.

  HTH.
-- 
Regards,
Kiran Kumar Immidi


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[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