From owner-freebsd-net@FreeBSD.ORG Sat Apr 12 09:58:55 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 833AE37B404; Sat, 12 Apr 2003 09:58:55 -0700 (PDT) Received: from calis.blacksun.org (calis.blacksun.org [216.254.108.150]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0441943FBF; Sat, 12 Apr 2003 09:58:55 -0700 (PDT) (envelope-from don@calis.blacksun.org) Received: by calis.blacksun.org (Postfix, from userid 1001) id DF8301705E; Sat, 12 Apr 2003 13:02:18 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by calis.blacksun.org (Postfix) with ESMTP id DBFF017054; Sat, 12 Apr 2003 13:02:18 -0400 (EDT) Date: Sat, 12 Apr 2003 13:02:18 -0400 (EDT) From: Don To: BelletJr@aol.com In-Reply-To: <20030412123544.B4056@calis.blacksun.org> Message-ID: <20030412125908.G4156@calis.blacksun.org> References: <134.1e1ff9dc.2bc95035@aol.com> <20030412123544.B4056@calis.blacksun.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: current@freebsd.org cc: net@freebsd.org Subject: Re: connect(2) behavior with unreacheable hosts X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Apr 2003 16:58:55 -0000 > ICMP Type 11. If the host does not receive this message, then the only > thing connect() can do is timeout. In that case connect() should return -1 > and errno should return [ETIMEDOUT] or [ENETUNREACH] (I have no idea which > one). Actually if ICMP is not working, it should return [ETIMEDOUT]. If ICMP is working, I am not sure which of those errno value would be returned. This is just a guess based on the information in connect(2). -Don