summaryrefslogtreecommitdiffstats
path: root/sys/netinet/sctp_output.c
diff options
context:
space:
mode:
authorrrs <rrs@FreeBSD.org>2007-04-22 11:06:27 +0000
committerrrs <rrs@FreeBSD.org>2007-04-22 11:06:27 +0000
commit44fd758bd50a08f1cfd0618700424dd54a93571a (patch)
treecdfe74b46c1b17927d990e112c62556cf444c46e /sys/netinet/sctp_output.c
parentc494d6613ee7a2abda270930371858e0da4262f7 (diff)
downloadFreeBSD-src-44fd758bd50a08f1cfd0618700424dd54a93571a.zip
FreeBSD-src-44fd758bd50a08f1cfd0618700424dd54a93571a.tar.gz
- Somehow the disable fragment option got lost. We could
set/clear it but would not do it. Now we will. - Moved to latest socket api for extended sndrcv info struct. - Moved to support all new levels of fragment interleave.
Diffstat (limited to 'sys/netinet/sctp_output.c')
-rw-r--r--sys/netinet/sctp_output.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/netinet/sctp_output.c b/sys/netinet/sctp_output.c
index 304d299..71ef568 100644
--- a/sys/netinet/sctp_output.c
+++ b/sys/netinet/sctp_output.c
@@ -10879,6 +10879,13 @@ sctp_lower_sosend(struct socket *so,
non_blocking = 1;
}
asoc = &stcb->asoc;
+
+ if (sctp_is_feature_on(inp, SCTP_PCB_FLAGS_NO_FRAGMENT)) {
+ if (sndlen > asoc->smallest_mtu) {
+ error = EMSGSIZE;
+ goto out_unlocked;
+ }
+ }
/* would we block? */
if (non_blocking) {
if ((SCTP_SB_LIMIT_SND(so) <
OpenPOWER on IntegriCloud