Review your favorite Linux distribution.
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-11-2006, 01:31 AM   #1
Registered: Mar 2006
Posts: 47

Rep: Reputation: 15
about skbuff

hello all,

I have some queries.........

struct sk_buff *skb_tmp;
memcpy(skb_put(skb_tmp , skb->len),skb,skb->len);

IN the above operation i want to copy the contents of skb to skb_tmp......

NOW if i use the skb_tmp instead of skb ,in the linux stack(in the receive routines) the system will crash..........WHY(any idea....)?
(i tested this at netif_receive_skb())

What information is transferred onto the wire....?

is it just skb->len bytes..or fields like skb->sk,
skb->csum r also transferred.............

thanks in advance...


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
skbuff venkatesh111 Linux From Scratch 1 03-21-2006 03:44 AM
can we allocate skbuff in user program shrishailnk Linux - Networking 1 03-20-2006 11:13 PM
problem related to skbuff.h shrishailnk Linux - Networking 7 03-20-2006 01:42 PM
Why skbuff.h different for 2.4 and 2.6 kernels? linux_lover2005 Programming 1 03-20-2006 05:54 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:58 AM.

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