Subject: Re: strange tcp behavior

From: Evgeniy Polyakov <[email-masked]>
Date: Sat, 4 Aug 2007 20:49:10 +0400

On Fri, Aug 03, 2007 at 01:04:51PM -0700, David Miller ([email-masked]) wrote:
> From: Evgeniy Polyakov <[email-masked]>
> Date: Fri, 3 Aug 2007 12:22:42 +0400
> 
> > On Thu, Aug 02, 2007 at 07:21:34PM -0700, David Miller ([email-masked]) wrote:
> > > What in the world are we doing allowing stream sockets to autobind?
> > > That is totally bogus.  Even if we autobind, that won't make a connect
> > > happen.
> > 
> > For accepted socket it is perfectly valid assumption - we could autobind 
> > it during the first send. Or may bind it during accept. Its a matter of
> > taste I think. Autobinding during first sending can end up being a 
> > protection against DoS in some obscure rare case...
> 
> accept()ed socket is by definition fully bound and already in
> established state.

That what I meant - it binds during accept (well it can not be called
real binding), but could be autobound during first send to needed port.
Maybe that was one of intentions, don't know.

-- 
	Evgeniy Polyakov