From owner-freebsd-net@FreeBSD.ORG Fri Jan 2 17:14:01 2015 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E6D72D96 for ; Fri, 2 Jan 2015 17:14:01 +0000 (UTC) Received: from mailout.easymail.ca (mailout.easymail.ca [64.68.201.169]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A15CB660BD for ; Fri, 2 Jan 2015 17:14:00 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 1E4DCDFF7 for ; Fri, 2 Jan 2015 12:04:31 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at mailout.easymail.ca X-Spam-Flag: NO X-Spam-Score: -4.25 X-Spam-Level: X-Spam-Status: No, score=-4.25 required=5 tests=[ALL_TRUSTED=-1.8, AWL=0.149, BAYES_00=-2.599] Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (easymail-mailout.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yCJopxi+oBcn for ; Fri, 2 Jan 2015 12:04:22 -0500 (EST) Received: from bsddt1241.lv01.astrodoggroup.com (unknown [40.141.24.126]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id 1FA3BE0BB for ; Fri, 2 Jan 2015 12:04:22 -0500 (EST) Message-ID: <54A6CFB6.7080103@astrodoggroup.com> Date: Fri, 02 Jan 2015 09:04:54 -0800 From: Harrison Grundy User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: freebsd-net@freebsd.org Subject: connect() returns EINVAL inappropriately Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18-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: Fri, 02 Jan 2015 17:14:02 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 connect() returns EINVAL when called on TIMEWAIT or DROPPED sockets. Patch attached at: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196035 I'm not sure what exactly it *should* return, beyond "Not EINVAL". - --- Harrison Grundy