All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick McHardy <kaber@trash.net>
To: Yasuyuki KOZAKAI <yasuyuki.kozakai@toshiba.co.jp>
Cc: netfilter-devel@lists.netfilter.org, usagi-core@linux-ipv6.org
Subject: Re: nf_conntrack tree
Date: Sun, 20 Mar 2005 17:42:57 +0100	[thread overview]
Message-ID: <423DA811.3090608@trash.net> (raw)
In-Reply-To: <200503170831.j2H8VgbY014017@toshiba.co.jp>

Yasuyuki KOZAKAI wrote:
> Hi, Patrick,
> 
> OK, I agree introducing nf_ct_ops.
> 
> But in the current, it's not acceptable to introduce nf_conntrack_common
> as you said in other mail. I think it needs many changes to ip_conntrack and
> ip_nat, it may be difficult to change nf_conn structure
> (e.g. optimization), and it will confuse us - What we unify is ?

We're unifying things common to ip_conntrack and nf_conntrack, like
mark, status, ... in order to keep the number of accessor functions
in nf_ct_ops to a minimum.

> My suggestion is pulling out common definitions of enum and flags to some
> common header files, and making {ip,nf}_conntrack*.h include them.
> No change to ip_conntrack_*.c is necessary.

Yes, that is one part. But some matches/targets need to get some
information from the conntrack. I've made a list of what is needed, so
we can talk in more concrete terms:

ipt_state:
- recognize untracked

ipt_helper:
- ct->master->helper->name

ipt_conntrack:
- recognize untracked
- tuples
- status
- expires

ipt_connmark/IPT_CONNMARK:
- mark

Creating a struct nf_conntrack_common should be ok for untracked,
status, expires, mark and master->helper->name. The tuples can't be
handled this way, for them we need nf_ct_ops.

Regards
Patrick

  reply	other threads:[~2005-03-20 16:42 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-23  6:17 [PATCH NF_CONNTRACK 1/9]: Fix multiple problems with TCP window tracking Yasuyuki KOZAKAI
2005-05-23 13:46 ` Michal Rokos
2005-03-16  0:35   ` nf_conntrack tree Patrick McHardy
2005-03-16  6:48     ` Yasuyuki KOZAKAI
2005-03-16  9:53       ` Pablo Neira
2005-03-16 10:13         ` Jozsef Kadlecsik
2005-03-16 13:14           ` Yasuyuki KOZAKAI
2005-03-16 14:36           ` Patrick McHardy
2005-03-16 14:31       ` Patrick McHardy
     [not found]     ` <200503160648.j2G6mXVV014699@toshiba.co.jp>
2005-03-16 19:22       ` Yasuyuki KOZAKAI
2005-03-16 19:32         ` Patrick McHardy
2005-03-16 19:54           ` Yasuyuki KOZAKAI
2005-03-16 20:04             ` Patrick McHardy
2005-03-17  8:31               ` Yasuyuki KOZAKAI
2005-03-20 16:42                 ` Patrick McHardy [this message]
2005-03-22 16:31                   ` Yasuyuki KOZAKAI
2005-05-24  1:53     ` [PATCH NF_CONNTRACK 1/9]: Fix multiple problems with TCP window tracking Yasuyuki KOZAKAI
2005-06-11 15:42       ` Patrick McHardy
     [not found]   ` <200505240153.j4O1r35h028029@toshiba.co.jp>
2005-05-24 11:23     ` Michal Rokos
2005-06-11 15:49       ` Patrick McHardy

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=423DA811.3090608@trash.net \
    --to=kaber@trash.net \
    --cc=netfilter-devel@lists.netfilter.org \
    --cc=usagi-core@linux-ipv6.org \
    --cc=yasuyuki.kozakai@toshiba.co.jp \
    /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.