Re: skbuff size

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

 



On Fri, Jul 30, 2004 at 12:31:58AM -0700, linux lover wrote:
> hello,
>         i want to know what is size of skbuff
> structure and how to write a program to calculate it?
>         i want to know only size of skbuff that
> includes header parts only not data part that makes
> its size length 1514 bytes
> 

The size of the structure itself you can get using

sizeof(struct skbuff).

I don't remember the fields of the skbuff struct, but if it doesn't
have size values you can always resort to pointer arithmetic.

unsigned int size;
char * start, end;

...

size = end - start;

> regrads,
> linux_lover2004
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive:       http://mail.nl.linux.org/kernelnewbies/
> FAQ:           http://kernelnewbies.org/faq/
> 
>  
>  +++++++++++++++++++++++++++++++++++++++++++
>  This Mail Was Scanned By Mail-seCure System
>  at the Tel-Aviv University CC.
> 

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[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