Re: get tcp header

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wednesday 2010-09-01 23:34, Nicola Padovano wrote:

>> It merely means that the function is only designed to be executed by
>> ip4tables.
>yes, but this also means that when i receive a packet (=the skb
>pointer of target function) its data pointer points to the beginning
>of ip header (remember that skb->data and skb->tail mark the beginning
>and the end of header+payload of the layer X).
>am i right?

Yes, that happens to be the case. But that's why you use 
skb_{mac,network,transport}_header anyway, because that is more 
invariant than skb->data. (Provided restrictions on its use are obeyed.)
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux