From owner-freebsd-doc@FreeBSD.ORG Wed Jan 19 11:10:18 2005 Return-Path: Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 76B6916A4CE for ; Wed, 19 Jan 2005 11:10:18 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D92A43D53 for ; Wed, 19 Jan 2005 11:10:18 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j0JBAIlK099026 for ; Wed, 19 Jan 2005 11:10:18 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j0JBAIgU099025; Wed, 19 Jan 2005 11:10:18 GMT (envelope-from gnats) Date: Wed, 19 Jan 2005 11:10:18 GMT Message-Id: <200501191110.j0JBAIgU099025@freefall.freebsd.org> To: freebsd-doc@FreeBSD.org From: Giorgos Keramidas Subject: Re: docs/76399: [PATCH] sendto(2) is missing possible error EISCONN X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Giorgos Keramidas List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Jan 2005 11:10:18 -0000 The following reply was made to PR docs/76399; it has been noted by GNATS. From: Giorgos Keramidas To: Rudolf Cejka Cc: bug-followup@freebsd.org Subject: Re: docs/76399: [PATCH] sendto(2) is missing possible error EISCONN Date: Wed, 19 Jan 2005 13:06:54 +0200 On 2005-01-18 10:52, Rudolf Cejka wrote: > SUSv3 says for sendto(): > > [EISCONN] A destination address was specified and the socket is > already connected. This error may or may not be returned for > connection mode sockets. > > FreeBSD does it in the first way (whereas Linux in the second) and > the error in case of non-NULL destination address is reported. Hi Rudolf, I tried reproducing the EISCONN error with the program at: http://people.freebsd.org/~keramida/files/conn.c A connection is made to localhost:22 (sshd must be running for this to succeed), and then sendto() is used to send a packet to a different host over the same socket. EISCONN was never returned in 6.0-CURRENT. The packet is AFAICT silently dropped. Am I doing something wrong? - Giorgos