From: David Miller <davem@davemloft.net>
To: kaber@trash.net
Cc: netfilter-devel@vger.kernel.org
Subject: Re: [NETFILTER 01/02]: nf_conntrack_tcp: fix connection reopening
Date: Thu, 11 Oct 2007 14:36:52 -0700 (PDT) [thread overview]
Message-ID: <20071011.143652.11608242.davem@davemloft.net> (raw)
In-Reply-To: <20071011164351.31373.99334.sendpatchset@localhost.localdomain>
From: Patrick McHardy <kaber@trash.net>
Date: Thu, 11 Oct 2007 18:44:04 +0200 (MEST)
> [NETFILTER]: nf_conntrack_tcp: fix connection reopening
>
> With your description I could reproduce the bug and actually you were
> completely right: the code above is incorrect. Somehow I was able to
> misread RFC1122 and mixed the roles :-(:
>
> When a connection is >>closed actively<<, it MUST linger in
> TIME-WAIT state for a time 2xMSL (Maximum Segment Lifetime).
> However, it MAY >>accept<< a new SYN from the remote TCP to
> reopen the connection directly from TIME-WAIT state, if it:
> [...]
>
> The fix is as follows: if the receiver initiated an active close, then the
> sender may reopen the connection - otherwise try to figure out if we hold
> a dead connection.
>
> Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
> Tested-by: Krzysztof Piotr Oledzki <ole@ans.pl>
> Signed-off-by: Patrick McHardy <kaber@trash.net>
Patch applied.
next prev parent reply other threads:[~2007-10-11 21:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-11 16:44 [NETFILTER 00/02]: Netfilter fixes Patrick McHardy
2007-10-11 16:44 ` [NETFILTER 01/02]: nf_conntrack_tcp: fix connection reopening Patrick McHardy
2007-10-11 21:36 ` David Miller [this message]
2007-10-11 16:44 ` [NETFILTER 02/02]: x_tables: add missing ip6t_modulename aliases Patrick McHardy
2007-10-11 21:36 ` David Miller
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=20071011.143652.11608242.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=kaber@trash.net \
--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 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).