On Fri, 23 May 2003, Ravi wrote: > Hi Kirk Bollinger, > If I understood your question correctly you wanted to print skb or in > other words want to send contents of skbuff to user space.. > > Write a kernel module to copy the contents of skbuff to user space > Use dev_add_pack to capture the packets and have fun. yes, that's what I want to do. I'll checkout dev_add_pack and try the module method. thanks! -kirk > > Ravi > > > Kirk Bollinger wrote: > > > > I'm just starting to play around with the kernel. > > > > I want to know how most people do things like print out info and/or > > write to a file. I'm interested in playing with network code and wanted to > > print some parts of the skb's. > > > > for instance my first thing I tried to do is to print the destination > > address of all icmp ECHO_REPLY packets but haven't been able to get this > > to work. > > > > > > Any tutorials on this? > > > > thanks! > > > > -kirk > > > > -- > > 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/