> i am not getting those funcions can u little bit elaborate it for me. They are defined as inline functions in include/linux/skbuf.h > i am confused with structure filed len and data_len. The actual data length is len > Actually i want to include my 2 own fileds in skbuff struture each of which 4 bytes. so i want to know is it feasible for skbuff structure. You can always do, but you have to recompile the kernel. In my opnion, you need not to add anything. The current structure is enough capable to meet your requirements. > My aim is to add those fileds. can i know the size after add ing these field? You can use sizeof operator Regards Mohanlal Parag. On Mon, 12 Apr 2004 mohanlal jangir wrote : >Have a look at following skb APIs >skb_push >skb_pull >skb_put etc > >Regards >Mohanlal > >----- Original Message ----- > From: "bunty chaudhari" <bunty123_4@rediffmail.com> >To: "kernelnewbies" <kernelnewbies@nl.linux.org> >Sent: Sunday, April 11, 2004 8:36 PM >Subject: changeing sk_buff->data > > >how can i change sk_buff->data field by attaching 8 bytes at the end of each >packet.It is part of my kernel project. >I want where i have to change to acheive this. >Parag. > > > >-- >Kernelnewbies: Help each other learn about the Linux kernel. >Archive: http://mail.nl.linux.org/kernelnewbies/ >FAQ: http://kernelnewbies.org/faq/ > -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/