Skip to contentSkip to conversation

sk_buff question

DISCUSSION Emmanuel Varagnat 2 participants 2 messages May 31, 2001 – Jun 1, 2001

lore
Share & tools
lore
#0 lore raw

I need to had a header to the data in the sk_buff.
But what to do if there is no enough space left at the head ? I saw skb_copy_expand, but it gives me a new sk_buff. Is there a way to expand the headroom and keep the pointer on the sk_buff ?

Thanks

-Manu

#1 lore raw

Emmanuel Varagnat <[email protected]> �crit :

Quoted 2 lines

I need to had a header to the data in the sk_buff. But what to do if there is no enough space left at the head ?

I assume "alloc+copy" isn't the expected answer, is it ?

Quoted 2 lines

I saw skb_copy_expand, but it gives me a new sk_buff. Is there a way to expand the headroom and keep the pointer on the sk_buff ?

pskb_expand_head maybe.

Signature · 1 line
Ueimor