Re: Newbie questions

From: Vineet Mehta
Date: Thu Apr 15 2004 - 04:38:27 EST


On Wed, 14 Apr 2004, Gabor Fekete wrote:

> Hi!
>
> First of all I'm a complete beginner in the kernel.
>
> I have a few questions:
> 1. What are data_len and len in sk_buff, how are they used?

len is the TOTAL lenght of the sk_buff including headers. data_len says
about lenght for data payload.

>
> I realized that len is changing constantly as the packet
> travels between the layers.
>
> 2. What is the difference between frag_list and frags[]?
> What is each?
> struct skb_shared_info {
> atomic_t dataref;
> unsigned int nr_frags;
> unsigned short tso_size;
> unsigned short tso_segs;
> struct sk_buff *frag_list;
> skb_frag_t frags[MAX_SKB_FRAGS];
> };
>
> Thanks!
>
> Gabor Fekete
> -
> To unsubscribe from this list: send the line "unsubscribe linux-net" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html