Date: Wed, 19 Jan 2005 12:00:55 GMT From: Rudolf Cejka <cejkar@fit.vutbr.cz> To: freebsd-doc@FreeBSD.org Subject: Re: docs/76399: [PATCH] sendto(2) is missing possible error EISCONN Message-ID: <200501191200.j0JC0tnA001748@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: Rudolf Cejka <cejkar@fit.vutbr.cz> 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 <cejkar at fit.vutbr.cz> http://www.fit.vutbr.cz/~cejkar Brno University of Technology, Faculty of Information Technology Bozetechova 2, 612 66 Brno, Czech Republic
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200501191200.j0JC0tnA001748>