[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Question about skbuff
Hi Marco,
> > what exactly is the problem here ?
>
> The problem is I cannot correctly point to the data content (payload)
> in the tcp header. And what I've pointed is the end of skbuff.
>
> > data addr : c7ca3d50
> > tail : c7ca3d50
> > end : c7ca3d50
>
> The address is the same, so I think I should make something wrong
> while I'm trying to point to the data content (payload) of the tcp
> header. Could you tell me how can I calculate the address of the
> data content (payload in tcp header) in skbuff.
I know *nothing* about skbuffs but given the lack of answers so far
I'll give you a guess.
Could it be that an skbuff knows nothing about the contents of a TCP
packet and so as far as it's concerned the skbuff data address is the
same as the TCP header? If you wish to interpret the skbuff's data as
a TCP packet and you want the TCP packet's data then it's up to you to
get to it; the skbuff's data pointer just gets you to the TCP header.
All complete `finger in the air'. Someone else step in and give the
right answer please :-)
Cheers,
Ralph.
-
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/