summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authortuexen <tuexen@FreeBSD.org>2014-08-13 15:50:16 +0000
committertuexen <tuexen@FreeBSD.org>2014-08-13 15:50:16 +0000
commit4feb6f37e37b7cf04c00e2f473133d2c84cbd98d (patch)
tree56ba1ab2cd151e00d9e583b0403a82e964e640c6 /lib/libc
parent4227b97b79226844909bda500b069a47161ac749 (diff)
downloadFreeBSD-src-4feb6f37e37b7cf04c00e2f473133d2c84cbd98d.zip
FreeBSD-src-4feb6f37e37b7cf04c00e2f473133d2c84cbd98d.tar.gz
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. MFC after: 1 week
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/net/sctp_sys_calls.c6
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;
}
OpenPOWER on IntegriCloud