Re: printing packet data

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

 



On Wed, 2004-12-22 at 08:20 +0530, linux lover wrote:
[snip module code]

> But how can i print those HEX codes in packet?
If I've understood properly your problem... you need to catch a packet
that is outgoing from your system and you want to print out packet
content?

Playing with sk_buff you reach tcp data and you print out this char
buffer with a printk()... 
If you want to print every char in HEX form (I guess you want to do
something like tcpdump), you cycle with a for() loop in the char array
and use %x printk directive...

If I missed the point please, let me know.
Ciao ciao
sp0nge
--
$ cd /pub
 
| Paolo Perego - Spike
Reply
<p.perego@xxxxxxxx>
$ more beer
 
| www:
http://www.sikurezza.org/angel

Adding sound to movies would be like putting lipstick on the Venus de
Milo. -- actress Mary Pickford, 1925

Attachment: signature.asc
Description: This is a digitally signed message part


[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