Em Sun, Aug 19, 2007 at 09:38:13AM -0300, ツ Leandro Sales escreveu:
> Are these operations equivalent? Please, tell me where can I find docs about 
> skb
> 
> -   skb->h.raw = skb->data;
> 
> +   skb_reset_transport_header(skb);

That is easy as I left all the old code in include/linux/skbuff.h. Just
look at what the operation does if NET_SKBUFF_DATA_USES_OFFSET is not
defined, that, for the above api is:

static inline void skb_reset_transport_header(struct sk_buff *skb)
{
        skb->transport_header = skb->data;
}

skb->h.raw is the old name of skb->transport_header
skb->nh.raw is the old name of skb->network_header
skb->nac.raw is the old name of skb->mac_header
 
- Arnaldo
-
To unsubscribe from this list: send the line "unsubscribe dccp" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to