hello, i want to add my own variables with icmp header. so i modified icmp header and added 2 variables to make icmp header len is 16 bytes. but when i build kernel image and boot it and then ping to myself why am i still getting 8 bytes header i.e. 84 bytes packet and why not 92 bytes packet? 56 bytes data + 16 bytes icmp header + 20 bytes ip header = 92 bytes also ping results shown below takes much time to ping myself. what gone wrong? how to make it behave like normal ping? regards, parag. I POST TO LINUX-KERNEL mailing list but uanble to get good explaination. On Tue, 27 Apr 2004 mohanlal jangir wrote : >See this >http://www.dirac.org/linux/writing/lkmpg/lkmpg.html#AEN715 > >Also read about copy_to_user/copy_from_user functions. > >Regards >Mohanlal > >----- Original Message ----- > From: "bunty" <bunty123_4@rediffmail.com> >To: <kernelnewbies@nl.linux.org>; <mohanlal@samsung.com>; ><omanakuttan@tataelxsi.co.in> >Sent: Monday, April 26, 2004 8:24 PM >Subject: query related to /proc and read_write.c file > > >hello, > 1) how kernel write to /proc entry? while studying kernel source i found >that there is no open/read/write/close file functions. >what i found is that sprintf function that writes to /proc entry. can anyone >please explain it? > > 2)what is the use of read_write.c file in fs directory of kernel source? >the file contains sys_read, sys_write. why there is no function that will >read a user space file and write to it. >i found few questions asked on linux-kernel as well as kernelnewbies but >there is no one able to answer it? >i am using kernel 2.4.24. >regards, >parag. > > >-- >Kernelnewbies: Help each other learn about the Linux kernel. >Archive: http://mail.nl.linux.org/kernelnewbies/ >FAQ: http://kernelnewbies.org/faq/ >