Re: Newbie questions

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

 



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
> -
> : 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
> 

-
: 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

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux