Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753903AbXLEHjo (ORCPT ); Wed, 5 Dec 2007 02:39:44 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751641AbXLEHje (ORCPT ); Wed, 5 Dec 2007 02:39:34 -0500 Received: from rhun.apana.org.au ([64.62.148.172]:4098 "EHLO arnor.apana.org.au" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751564AbXLEHjd (ORCPT ); Wed, 5 Dec 2007 02:39:33 -0500 Date: Wed, 5 Dec 2007 18:39:27 +1100 From: Herbert Xu To: David Miller Cc: simon@fire.lp0.eu, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: sockets affected by IPsec always block (2.6.23) Message-ID: <20071205073927.GA12413@gondor.apana.org.au> References: <20071205065132.GA11476@gondor.apana.org.au> <20071204.231200.117152338.davem@davemloft.net> <20071205071607.GA11852@gondor.apana.org.au> <20071204.233432.136250076.davem@davemloft.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071204.233432.136250076.davem@davemloft.net> User-Agent: Mutt/1.5.9i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1239 Lines: 30 On Tue, Dec 04, 2007 at 11:34:32PM -0800, David Miller wrote: > > TCP has some built-in assumptions about characteristics of > interent links and what constitutes a timeout which is "too long" > and should thus result in a full connection failure. > > IPSEC changes this because of IPSEC route resolution via > ISAKMP. > > With this in mind I can definitely see people preferring > the "block until IPSEC resolves" behavior, especially for > something like, say, periodic remote backups and stuff like > that where you really want the thing to just sit and wait > for the connect() to succeed instead of failing. Hmm, but connect(2) should succeed in that case thanks to the blackhole route, no? The subsequent SYNs will then be dropped until the IPsec SAs are in place. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/