All of lore.kernel.org
 help / color / mirror / Atom feed
From: Juha Heljoranta <juha.heljoranta@evtek.fi>
To: netfilter-devel@lists.netfilter.org
Subject: Modify skb from match module?
Date: Wed, 16 Feb 2005 23:03:21 +0200	[thread overview]
Message-ID: <4213B519.3080201@evtek.fi> (raw)

I would like to associate some information to struct sk_buff *skb so 
that it would be available later while processing packet. But it turns 
out that the skb is const

    static int match(const struct sk_buff *skb, ...

Is there any way to modify skb from match module? Or is there another 
way to store/cache information so that it can be later associated to skb.

The information that I'd like to store consist inode and device number 
and some other stuff about the process owning sending/receiving socket. 
Storing this information makes sense because it can be used later (e.g. 
for logging) and fetching it takes time/cpu.

Regards,
Juha Heljoranta

             reply	other threads:[~2005-02-16 21:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-16 21:03 Juha Heljoranta [this message]
2005-02-17 13:14 ` Modify skb from match module? Tobias DiPasquale

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=4213B519.3080201@evtek.fi \
    --to=juha.heljoranta@evtek.fi \
    --cc=netfilter-devel@lists.netfilter.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.