summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authortuexen <tuexen@FreeBSD.org>2014-08-03 14:10:10 +0000
committertuexen <tuexen@FreeBSD.org>2014-08-03 14:10:10 +0000
commitfb7bbef5e1d2d7ae6d808c959da7532f744dcce3 (patch)
treedb358aa9b1cff59646bf957bd465a9bb73c39941 /lib
parentdbbb1f8a839e9c75bd3b00b6d130726a1e66326b (diff)
downloadFreeBSD-src-fb7bbef5e1d2d7ae6d808c959da7532f744dcce3.zip
FreeBSD-src-fb7bbef5e1d2d7ae6d808c959da7532f744dcce3.tar.gz
Add SCTP socket option SCTP_NRSACK_SUPPORTED to control the
NRSACK extension. The default will still be off, since it it not an RFC (yet). Changing the sysctl name will be in a separate commit. MFC after: 1 week
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/net/sctp_sys_calls.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libc/net/sctp_sys_calls.c b/lib/libc/net/sctp_sys_calls.c
index 5d29111..1d6e191 100644
--- a/lib/libc/net/sctp_sys_calls.c
+++ b/lib/libc/net/sctp_sys_calls.c
@@ -356,6 +356,9 @@ sctp_opt_info(int sd, sctp_assoc_t id, int opt, void *arg, socklen_t * size)
case SCTP_PR_SUPPORTED:
((struct sctp_assoc_value *)arg)->assoc_id = id;
break;
+ case SCTP_NRSACK_SUPPORTED:
+ ((struct sctp_assoc_value *)arg)->assoc_id = id;
+ break;
case SCTP_MAX_BURST:
((struct sctp_assoc_value *)arg)->assoc_id = id;
break;
OpenPOWER on IntegriCloud