linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* how do i get a packets contents from using printks
@ 2002-05-13 14:03 william fitzgerald
  2002-05-13 18:32 ` blitzkrieg
  0 siblings, 1 reply; 2+ messages in thread
From: william fitzgerald @ 2002-05-13 14:03 UTC (permalink / raw)
  To: linux-c-programming

hi all,

i have inserted printk statements into a 2.4.14
kernel in the networking code and want to trace a
packet through the kerenl.

i have being able to record a particular sk_buff
by for example:
printk(KERN_DEBUG"ip_forwrd(sk_buff %P)-> entry
point",skb);

but how do i extract the packets headers etc from
the sk_buff?


Beer Mail, brought to you by your friends at beer.com.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: how do i get a packets contents from using printks
  2002-05-13 14:03 how do i get a packets contents from using printks william fitzgerald
@ 2002-05-13 18:32 ` blitzkrieg
  0 siblings, 0 replies; 2+ messages in thread
From: blitzkrieg @ 2002-05-13 18:32 UTC (permalink / raw)
  To: william fitzgerald; +Cc: linux-c-programming

On Mon, May 13, 2002 at 03:03:17PM +0100, william fitzgerald wrote:
> printk(KERN_DEBUG"ip_forwrd(sk_buff %P)-> entry
> point",skb);
> 
> but how do i extract the packets headers etc from
> the sk_buff?

Check the definition of struct sk_buff in linux/skbuff.h, check also 
linux/ip.h, linux/tcp.h and so on... depends which headers you want to 
know.

bye bye
-b

-- 
head --lines=4 $HOME/.signature

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-05-13 18:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-13 14:03 how do i get a packets contents from using printks william fitzgerald
2002-05-13 18:32 ` blitzkrieg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).