A complete user message is signalled with the MSG_EOR flag, not the MSG_EOF

flag.
Thanks to Valentin Nechayev for reporting the issue.

MFC after: 1 week
This commit is contained in:
Michael Tuexen 2015-04-23 13:10:03 +00:00
parent fe8a824ca6
commit 446734c25e

View File

@ -27,7 +27,7 @@
.\" .\"
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd August 13, 2007 .Dd April 23, 2015
.Dt SCTP_RECVMSG 3 .Dt SCTP_RECVMSG 3
.Os .Os
.Sh NAME .Sh NAME
@ -98,13 +98,13 @@ receive buffer, then the
argument will argument will
.Em not .Em not
have the have the
.Dv MSG_EOF .Dv MSG_EOR
flag applied. flag applied.
If the message is a complete message then If the message is a complete message then
the the
.Fa flags .Fa flags
argument will have argument will have
.Dv MSG_EOF .Dv MSG_EOR
set. set.
Locally detected errors are Locally detected errors are
indicated by a return value of -1 with indicated by a return value of -1 with