[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: IP Fragmentation
On Mon, 4 Feb 2002, A. Ramesh wrote:
> I am not sure why the kernel allocates 15 more bytes when it creates a fragment packet. The piece of kernel code which does the memory allocated for the new fragment is as follows:
>
> if ((skb2 = alloc_skb(len+hlen+dev->hard_header_len+15,GFP_ATOMIC)) == NULL) {
> NETDEBUG(printk(KERN_INFO "IP: frag: no memory for new fragment!\n"));
> err = -ENOMEM;
> goto fail;
> }
>
> -Ramesh
Its for word (2-byte) alignment of skb i think. See alloc_skb()
--
The statement below is true.
The statement above is false.
^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^
Amit Kucheria
EECS Grad. Research Assistant
University of Kansas @ Lawrence
(R)+1-(785)-830 8521 ||| (O)+1-(785)-864 7774
____________________________________________________
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
IRC Channel: irc.openprojects.net / #kernelnewbies
Web Page: http://www.kernelnewbies.org/