docs/76399: [PATCH] sendto(2) is missing possible error EISCONN

Giorgos Keramidas keramida at freebsd.org
Wed Jan 19 11:10:18 UTC 2005


The following reply was made to PR docs/76399; it has been noted by GNATS.

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



More information about the freebsd-doc mailing list