diff options
author | tuexen <tuexen@FreeBSD.org> | 2014-08-02 21:36:40 +0000 |
---|---|---|
committer | tuexen <tuexen@FreeBSD.org> | 2014-08-02 21:36:40 +0000 |
commit | 31e0173d95a4f399a9954eb9bb37a12f9ffb10de (patch) | |
tree | 481139e74865cffa3a14227629256d5471af2dbc /lib | |
parent | 6dd06cb98166a7e138b7febaec0a24d653c3c8d0 (diff) | |
download | FreeBSD-src-31e0173d95a4f399a9954eb9bb37a12f9ffb10de.zip FreeBSD-src-31e0173d95a4f399a9954eb9bb37a12f9ffb10de.tar.gz |
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.
MFC after: 1 week
Diffstat (limited to 'lib')
-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; |