From owner-freebsd-doc@FreeBSD.ORG Wed Jan 19 12:00:55 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 C3E2116A4CE for ; Wed, 19 Jan 2005 12:00:55 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A6EDB43D48 for ; Wed, 19 Jan 2005 12:00:55 +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 j0JC0tuV001749 for ; Wed, 19 Jan 2005 12:00:55 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j0JC0tnA001748; Wed, 19 Jan 2005 12:00:55 GMT (envelope-from gnats) Date: Wed, 19 Jan 2005 12:00:55 GMT Message-Id: <200501191200.j0JC0tnA001748@freefall.freebsd.org> To: freebsd-doc@FreeBSD.org From: Rudolf Cejka 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: Rudolf Cejka List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Jan 2005 12:00:56 -0000 The following reply was made to PR docs/76399; it has been noted by GNATS. From: Rudolf Cejka To: bug-followup@freebsd.org Cc: Subject: Re: docs/76399: [PATCH] sendto(2) is missing possible error EISCONN Date: Wed, 19 Jan 2005 13:00:03 +0100 Giorgos Keramidas wrote (2005/01/19): > 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? Oops, I'm sorry that you had to create some testing example - it was possible that I could send one... Just change SOCK_STREAM to SOCK_DGRAM. However, I do not understand, why there is a difference between SOCK_STREAM and SOCK_DGRAM, because I thought from ipc_usrreq.c in /usr/src/sys, that the behavioour should be the same. Thank you very much. -- Rudolf Cejka http://www.fit.vutbr.cz/~cejkar Brno University of Technology, Faculty of Information Technology Bozetechova 2, 612 66 Brno, Czech Republic