Re: Basic understanding about sk_buff packet handling

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

 



----- Original Message -----
From: "bunty" <bunty123_4@rediffmail.com>
To: <kernelnewbies@nl.linux.org>
Cc: "mohanlal jangir" <mohanlal@samsung.com>
Sent: Wednesday, April 14, 2004 8:36 PM
Subject: Basic understanding about sk_buff packet handling


hello,
              As a part of my kernel project i come to some problems
regardiong sk_buff structure

1) i want to add two fields of each 4 bytes in sk_buff structure what is the
effect of it on kernel packet processing? Is there any -ve effect?
No -ve effect. Even if it has, there is no one stopping you to heck with
kernel :-)

2) if i am going to increase it by 8 bytes then what will happen to net
packet size and its data part? Is that all will fit in sk_buff?
net packet size and data part will not be affected (as long as you don't
temper them).

3) Which is best to include my 2 fields in sk_buff or include its total
value at end of data part?
Don't add them at start of structure. You can add them inside or the end of
strucute.

4) When kernel passes the packet to dest host all sk_buff fields are also
transferred or only packet header and data?
Only packet header and data. sk_buff implementation is local to Linux and
used to manage the packet inside Linux kernel. You can see the transmitted
packets using tools like tcpdump or ethereal.

Regards
Mohanlal


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