docs/76399: [PATCH] sendto(2) is missing possible error EISCONN
Rudolf Cejka
cejkar at fit.vutbr.cz
Wed Jan 19 12:00:56 UTC 2005
The following reply was made to PR docs/76399; it has been noted by GNATS.
From: Rudolf Cejka <cejkar at fit.vutbr.cz>
To: bug-followup at 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
More information about the freebsd-doc
mailing list