On 5/4/05, Christophe Lucas <clucas@xxxxxxxxxxxxx> wrote: > rajat swarup (rajats@xxxxxxxxx) wrote: > > Hi, > > I need to construct ICMP packets in the Kernel and some particular > > data needs to be transmitted in the data field of the ICMP packets. > > Can someone please send some pointers about how to construct ICMP > > packets and then send them? I believe icmp_send() method is used to > > send ICMP packets. > > > > Any help would be appreciated! > > Why do you have to make this ? > Does lipcap not enough ? > Libpcap operates in the user level. I am processing some packets in a kernel hook. I need to take this data from kernel and construct packets out of it and user mode and kernel mode cannot have shared memory. Thanks, Rajat. -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/