Re: Debug printing and file access

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

 



Hi Kirk,
check out arp capturing method of linux.It uses dev_add_pack macro
Incase of not able to find out grep it.

Regards
Ravi

Kirk Bollinger wrote:
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/



--


The views presented in this mail are completely mine. The company is not responsible for whatsoever. ------------------------------------------------------------------------ Ravi Kumar CH Rendezvous On Chip (i) Pvt Ltd Hyderabad, India Ph: +91-40-2335 1214 / 1175 / 1184

ROC home page <http://www.roc.co.in>



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