diff options
author | tuexen <tuexen@FreeBSD.org> | 2014-08-22 20:26:20 +0000 |
---|---|---|
committer | tuexen <tuexen@FreeBSD.org> | 2014-08-22 20:26:20 +0000 |
commit | 9db28b75f0aec8ddfe352de0c5b8e13dd51c5cb1 (patch) | |
tree | 64ab7500bf3f6439dd3918dce4d107163abc3e86 /lib/libc | |
parent | fcd4ba9eaabfa53f01ae9c54fc6bdbfd9a91ffa1 (diff) | |
download | FreeBSD-src-9db28b75f0aec8ddfe352de0c5b8e13dd51c5cb1.zip FreeBSD-src-9db28b75f0aec8ddfe352de0c5b8e13dd51c5cb1.tar.gz |
MFC r269945:
Add support for the SCTP_PR_STREAM_STATUS and SCTP_PR_ASSOC_STATUS
socket options. This includes managing the correspoing stat counters.
Add the SCTP_DETAILED_STR_STATS kernel option to control per policy
counters on every stream. The default is off and only an aggregated
counter is available. This is sufficient for the RTCWeb usecase.
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/net/sctp_sys_calls.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libc/net/sctp_sys_calls.c b/lib/libc/net/sctp_sys_calls.c index 6a57061..91527c3 100644 --- a/lib/libc/net/sctp_sys_calls.c +++ b/lib/libc/net/sctp_sys_calls.c @@ -377,6 +377,12 @@ sctp_opt_info(int sd, sctp_assoc_t id, int opt, void *arg, socklen_t * size) case SCTP_ENABLE_STREAM_RESET: ((struct sctp_assoc_value *)arg)->assoc_id = id; break; + case SCTP_PR_STREAM_STATUS: + ((struct sctp_prstatus *)arg)->sprstat_assoc_id = id; + break; + case SCTP_PR_ASSOC_STATUS: + ((struct sctp_prstatus *)arg)->sprstat_assoc_id = id; + break; default: break; } |