Date: Wed, 15 Oct 1997 12:42:42 -0400 From: "Gregory D Moncreaff"<Gregory_D_Moncreaff@res.raytheon.com> To: FreeBSD-Hackers@FreeBSD.org Subject: kern/uipc_socket.c:soreceive() can't get control data from a disconnected socket? Message-ID: <85256531.005BCD2C.00@notes.res.ray.com>
next in thread | raw e-mail | index | archive | help
Is this by accident or design? PR_CONNREQUIRED is only supposed to gate
send according to sys/protosw.h...
if (m == 0 || (( .....
.....
if ((so->so_state & (SS_ISCONNECTED|SS_ISCONNECTING)) == 0 &&
(so->so_proto->pr_flags & PR_CONNREQUIRED)) {
error = ENOTCONN;
goto release;
.....
while (m && m->m_type == MT_CONTROL && error == 0) {
if (flags & MSG_PEEK) {
if (controlp)
*controlp = m_copy(m, 0, m->m_len);
m = m->m_next;
.....
release:
sbunlock(&so->so_rcv);
splx(s);
return (error);
=====================================================================
Gregory D. Moncreaff Phone 1-508-490-2048
Raytheon Electronic Systems Fax 1-508-490-2086
Gregory_D_Moncreaff@res.raytheon.com Home moncrg@ma.ultranet.com
---------------------------------------------------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?85256531.005BCD2C.00>
