Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Jan 2005 11:10:18 GMT
From:      Giorgos Keramidas <keramida@freebsd.org>
To:        freebsd-doc@FreeBSD.org
Subject:   Re: docs/76399: [PATCH] sendto(2) is missing possible error EISCONN
Message-ID:  <200501191110.j0JBAIgU099025@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR docs/76399; it has been noted by GNATS.

From: Giorgos Keramidas <keramida@freebsd.org>
To: Rudolf Cejka <cejkar@fit.vutbr.cz>
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 <cejkar@fit.vutbr.cz> 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
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200501191110.j0JBAIgU099025>