Re: skbuff

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

 



Hi,
unsigned char *head
 unsigned char *data
unsigned char *tail
unsigned char *end

head points to the beginning of the allocated space, data is the beginning
of the valid octets( usually slightly greater than head ), tail is the end
of the valid octets and end points to the address tail can reach.

  Another way to look available buffer space is
     skb->end - skb->head

  and currently used data space is
    skb->tail - skb->data

 So the length of the data itself (skb->tail - skb->data).


Geetha


----- Original Message -----
From: <anupama.sonnenahalli@amd.com>
To: <kernelnewbies@nl.linux.org>
Sent: Saturday, February 16, 2002 2:05 AM
Subject: skbuff


> I had a quick question about skbuff.
>
>
> In the skb, I understand that skb->len = skb->data - skb->tail.
>
> What is data_len field? Is this skb->data_len = skb-end - skb->data ?
>
> But, looking from the code, it looks like skb->len is always greater than
skb->data_len!
>
> Your answer will be greatly appreciated.
>
> Sincerely,
> Anu
>
>
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive:       http://mail.nl.linux.org/kernelnewbies/
> IRC Channel:   irc.openprojects.net / #kernelnewbies
> Web Page:      http://www.kernelnewbies.org/

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux