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: rusty@rustcorp.com.au, netfilter-devel@lists.netfilter.org,
	pablo@netfilter.org, kadlec@blackhole.kfki.hu
Subject: Re: [RFC][PATCH 0/10]: ct_extend
Date: Mon, 25 Jun 2007 20:05:37 +0200	[thread overview]
Message-ID: <468003F1.8050409@trash.net> (raw)
In-Reply-To: <200706251649.l5PGn3eL021623@toshiba.co.jp>

Yasuyuki KOZAKAI wrote:
> From: Patrick McHardy <kaber@trash.net>
> Date: Mon, 25 Jun 2007 12:16:35 +0200
> 
>>Do you think we should put these patches in 2.6.23?
> 
> 
> I think it's ready.

Great.

> I've re-checked race at nf_conntrack_netlink and I think there is no
> race on members in nfct_nat(ct) at ct_netlink_change_helper(). Because
> 
> - 'bysource' and 'ct' are protected by nf_nat_lock when the area of
>   nfct_nat(ct) is reallocated.
> - 'seq' and 'help' are used by only helper, but we don't change helper.
>   So there is no race.
> - 'masq_index' is set in ipt_MASQUERADE.c while conntrack is
>   unconfirmed. Besides nfctnetlink can change only confirmed conntracks.
>   And 'masq_index' in confirmed conntrack is never changed.

Sounds right.

> BTW, I don't understand why ipt_MQASQUERADE needs lock. I think there is no
> difference of results if we remove the lock. If we want to completely
> discards conntracks related to output device, MASQUERADE should wait
> in *_event() until all packets pass through network stack. But I'm not sure
> it's possible.


Yes it looks unnecessary. Reliably removing all conntracks is not
really necessary, its only an optimization to keep the table smaller.

I'm actually happy about every missed connection since my DSL line
has an almost permanent address and connections usually live on
after a reconnect unless NAT remaps them :)

      parent reply	other threads:[~2007-06-25 18:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-25  3:14 [RFC][PATCH 0/10]: ct_extend Yasuyuki KOZAKAI
2007-06-25 10:16 ` Patrick McHardy
2007-06-25 16:49   ` Yasuyuki KOZAKAI
     [not found]   ` <200706251649.l5PGn3eL021623@toshiba.co.jp>
2007-06-25 18:05     ` Patrick McHardy [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=468003F1.8050409@trash.net \
    --to=kaber@trash.net \
    --cc=kadlec@blackhole.kfki.hu \
    --cc=netfilter-devel@lists.netfilter.org \
    --cc=pablo@netfilter.org \
    --cc=rusty@rustcorp.com.au \
    --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.