Support SCTP_EOF also for 1-to-1 style sockets.

MFC after: 3 days
This commit is contained in:
Michael Tuexen 2012-05-17 17:02:47 +00:00
parent f9125c3ec9
commit 8b42cfa708
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=235554

View File

@ -13610,8 +13610,7 @@ sctp_lower_sosend(struct socket *so,
dataless_eof:
/* EOF thing ? */
if ((srcv->sinfo_flags & SCTP_EOF) &&
(got_all_of_the_send == 1) &&
(stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_UDPTYPE)) {
(got_all_of_the_send == 1)) {
int cnt;
SCTP_STAT_INCR(sctps_sends_with_eof);