summaryrefslogtreecommitdiffstats
path: root/sys/netinet/sctputil.c
diff options
context:
space:
mode:
authorrrs <rrs@FreeBSD.org>2007-06-06 00:40:41 +0000
committerrrs <rrs@FreeBSD.org>2007-06-06 00:40:41 +0000
commitf084c2f975a688f375554cf7ad176ceae2c5b8ba (patch)
tree7c7d9fa384c35a7415eb416b7a53f9ed02eec2d0 /sys/netinet/sctputil.c
parent433397be886ce98eba6f388b318f8d6ede3d47a6 (diff)
downloadFreeBSD-src-f084c2f975a688f375554cf7ad176ceae2c5b8ba.zip
FreeBSD-src-f084c2f975a688f375554cf7ad176ceae2c5b8ba.tar.gz
- Fixes a case where doing a sysctl would leave locks held
when coping out association data. - Fixes a small bug that prevented the SCTP_UNORDERED indication from going up to the app on a recv in the sinfo_flags field.
Diffstat (limited to 'sys/netinet/sctputil.c')
-rw-r--r--sys/netinet/sctputil.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/netinet/sctputil.c b/sys/netinet/sctputil.c
index ab4e8aa..ee39de5 100644
--- a/sys/netinet/sctputil.c
+++ b/sys/netinet/sctputil.c
@@ -5027,6 +5027,9 @@ found_one:
* there.
*/
sinfo->sinfo_flags &= 0x00ff;
+ if ((control->sinfo_flags >> 8) & SCTP_DATA_UNORDERED) {
+ sinfo->sinfo_flags |= SCTP_UNORDERED;
+ }
}
if (fromlen && from) {
struct sockaddr *to;
OpenPOWER on IntegriCloud