On Fri, Nov 14, 2003 at 03:58:33PM -0800, nrpr wrote: > Hi, > what is the difference between skb->len and > skb->data_len skb->len is the total number of bytes of data. skb->data_len is the number of bytes in skb fragments, i.e. _not_ pointed to by skb->data. skb_headlen(skb) is the number of bytes pointed to by skb->data. > Is there any documentation which describes skbuf in > detail . Yes, but usually it is out of date, describing just pre-2.4.x sk_buffs, which didn't have skb->data_len. I don't know when skb->data_len was introduced (as part of the zero-copy feature), but it was before 2.4.10. I don't know of any up-to-date sk_buff documentation, except for what (little) you can find in the kernel sources itself. -- Regards, Rask Ingemann Lambertsen - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html