linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: blitzkrieg <blitzkrieg@sitoverde.com>
To: william fitzgerald <william.fitzgerald3@beer.com>
Cc: linux-c-programming@vger.kernel.org
Subject: Re: how do i get a packets contents from using printks
Date: Mon, 13 May 2002 20:32:15 +0200	[thread overview]
Message-ID: <20020513203215.A572@slackware.alcatrazz.org> (raw)
In-Reply-To: <44D8933CAE839984FA29FC69B9F24B15@william.fitzgerald3.beer.com>; from william.fitzgerald3@beer.com on Mon, May 13, 2002 at 03:03:17PM +0100

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

      reply	other threads:[~2002-05-13 18:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-13 14:03 how do i get a packets contents from using printks william fitzgerald
2002-05-13 18:32 ` blitzkrieg [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020513203215.A572@slackware.alcatrazz.org \
    --to=blitzkrieg@sitoverde.com \
    --cc=linux-c-programming@vger.kernel.org \
    --cc=william.fitzgerald3@beer.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).