Re: Backporting gerrit tree (from git) to 2.6.18. IT WAS: "Backport" latest (git) DCCP code to 2.6.18

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

 



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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [IETF DCCP]     [Linux Networking]     [Git]     [Security]     [Linux Assembly]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux