netdev
[Top] [All Lists]

skb_copy(....) ?

To: netdev@xxxxxxxxxxx
Subject: skb_copy(....) ?
From: Atif Syed <Atif.Syed@xxxxxxxxxxxx>
Date: Thu, 21 Feb 2002 15:22:20 +0100
Organization: NEC
Sender: owner-netdev@xxxxxxxxxxx




Dear all,

I am trying to copy sk_buffer.


skb_new=alloc_skb(sizeof(struct sk_buff) ,  GFP_ATOMIC);
skb_new=pskb_copy(skb,GFP_KERNEL);

These lines make hang the kernel. Should i have to allocate memory or only 
copy the skb to the new one. I am confused  after reading the documentation.

Thanks in advance for help.


Atif Syed
NEC Europe Ltd. - Network Laboratories

Email: Atif.Syed@xxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>