diff options
author | tuexen <tuexen@FreeBSD.org> | 2014-08-22 20:01:35 +0000 |
---|---|---|
committer | tuexen <tuexen@FreeBSD.org> | 2014-08-22 20:01:35 +0000 |
commit | b33760ea4b44ba1f0bb5c5f8e190f82322d0f604 (patch) | |
tree | ce6e07d19750b7f6ccc2250bd0227b7c8fa7309e /lib/libc/net | |
parent | a4786844b5aed176a639f1a041df00e694738983 (diff) | |
download | FreeBSD-src-b33760ea4b44ba1f0bb5c5f8e190f82322d0f604.zip FreeBSD-src-b33760ea4b44ba1f0bb5c5f8e190f82322d0f604.tar.gz |
MFC r269448:
Add support for the SCTP_PR_SUPPORTED socket option as specified in
http://tools.ietf.org/html/draft-ietf-tsvwg-sctp-prpolicies
Add also a sysctl controlling the default of the end-points.
Diffstat (limited to 'lib/libc/net')
-rw-r--r-- | lib/libc/net/sctp_sys_calls.c | 3 |
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 b2451d7..5d29111 100644 --- a/lib/libc/net/sctp_sys_calls.c +++ b/lib/libc/net/sctp_sys_calls.c @@ -353,6 +353,9 @@ sctp_opt_info(int sd, sctp_assoc_t id, int opt, void *arg, socklen_t * size) case SCTP_ECN_SUPPORTED: ((struct sctp_assoc_value *)arg)->assoc_id = id; break; + case SCTP_PR_SUPPORTED: + ((struct sctp_assoc_value *)arg)->assoc_id = id; + break; case SCTP_MAX_BURST: ((struct sctp_assoc_value *)arg)->assoc_id = id; break; |