All of lore.kernel.org
 help / color / mirror / Atom feed
From: Piotr Duszynski <regis44@gmail.com>
To: netfilter-devel@vger.kernel.org
Subject: Conntrack modification
Date: Sun, 09 Nov 2008 14:55:35 +0100	[thread overview]
Message-ID: <4916EBD7.2090006@gmail.com> (raw)

Hi everyone,

I am working on a project, that needs source MAC information for each
active connection tracked by conntrack. In the beginning I was thinking
 about using the nf_conntrack_tuple.src for this purpose, but then I saw
that the hash function is taking into account this struct as well. I
guess that if I modified it, packets wouldn't be properly identified
anymore as part of existing connection. After diving again into the
source code I have come across nf_conntrack_extend , which seems to a
good place to put the MAC related information.

I am really not sure which path should I take. In the simplest case I
could just add __u32 src_mac to the nf_conntrack_tuple, but this doesn't
seem to be a very elegant solution .

Best regards
Piotrek


                 reply	other threads:[~2008-11-09 13:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4916EBD7.2090006@gmail.com \
    --to=regis44@gmail.com \
    --cc=netfilter-devel@vger.kernel.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.