Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 05-24-2007, 09:52 PM   #1
Pankaj Srivastava
LQ Newbie
Registered: May 2007
Posts: 2

Rep: Reputation: 0
Question Explanation sought for a check in ip_finish_output2() function

Could someone please explain why there is a following check in ip_finish_output2() function as sk_buff in question should have already headroom space accounted for in the original allocation. In what scenario we can hit this leg.

/* Be paranoid, rather than too clever. */
if (unlikely(skb_headroom(skb) < hh_len && dev->hard_header)) {
struct sk_buff *skb2;

skb2 = skb_realloc_headroom(skb, LL_RESERVED_SPACE(dev));
if (skb2 == NULL) {
return -ENOMEM;
if (skb->sk)
skb_set_owner_w(skb2, skb->sk);
skb = skb2;


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
ip_output.c (ip_finish_output2( )) shrishailnk Linux - Networking 0 04-30-2006 10:08 AM
Linux book sought une Linux - General 5 07-11-2005 08:40 PM
Help sought with 'find -exec' drjones69 Linux - Software 2 04-27-2005 05:02 AM
Port check function call mrsharky Linux - Networking 4 04-15-2005 12:27 PM
Boot disk; check. CD in drive; check. Doesn't work; check. Hal DamnSmallLinux 7 02-04-2004 03:10 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:05 PM.

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