From: kuznet@ms2.inr.ac.ru
To: hidden@balabit.hu (Kovacs Krisztian)
Cc: davem@redhat.com (David S. Miller),
jmorris@redhat.com, netdev@oss.sgi.com,
linux-net@vger.rutgers.edu, bazsi@balabit.hu (Balazs Scheidler)
Subject: Re: Fw: Re: [PATCH] ipv4 tcp autobind problem
Date: Tue, 7 Oct 2003 15:56:41 +0400 (MSD) [thread overview]
Message-ID: <200310071156.PAA31530@yakov.inr.ac.ru> (raw)
In-Reply-To: <3F7990FB.7030606@balabit.hu> from "Kovacs Krisztian" at óÅÎ 30, 2003 04:19:39
Hello!
> - When the socket is closed (inet_release() is called, tproxy has its
> "callback" function here), the corresponding entries are deleted from
> tproxy's hash tables, again, based on the local ip:port pair.
The mistake is here. inet_release() has nothing to do to connection
state. Socket is not closed at this point, it goes to FIN-WAIT*, LAST-ACK or
something like this and can exist for long time after this and proxying
is to be continued all this time.
Right place to finish tracking is when socket is removed from TCP
hash tables, and to start tracking is when the socket is inserted
to TCP hash tables. BTW you would not see the problem with binding
if it was made right.
Alexey
next prev parent reply other threads:[~2003-10-07 11:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20030930024320.5aca8ddc.davem@redhat.com>
2003-09-30 12:37 ` Fw: Re: [PATCH] ipv4 tcp autobind problem kuznet
2003-09-30 12:37 ` David S. Miller
2003-09-30 14:19 ` Kovacs Krisztian
2003-10-07 11:56 ` kuznet [this message]
2003-10-07 12:35 ` Kovacs Krisztian
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=200310071156.PAA31530@yakov.inr.ac.ru \
--to=kuznet@ms2.inr.ac.ru \
--cc=bazsi@balabit.hu \
--cc=davem@redhat.com \
--cc=hidden@balabit.hu \
--cc=jmorris@redhat.com \
--cc=linux-net@vger.rutgers.edu \
--cc=netdev@oss.sgi.com \
/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).