diff options
author | tuexen <tuexen@FreeBSD.org> | 2014-08-02 17:35:13 +0000 |
---|---|---|
committer | tuexen <tuexen@FreeBSD.org> | 2014-08-02 17:35:13 +0000 |
commit | 9ad96316d8c114fb52afdf4415dcd8b21fa6d1ea (patch) | |
tree | 5f805b61c9d1b039713d80decf3452dc1a99aeaf /lib | |
parent | 6b8ad16e067050aff7ba39d17b927ca699c346a5 (diff) | |
download | FreeBSD-src-9ad96316d8c114fb52afdf4415dcd8b21fa6d1ea.zip FreeBSD-src-9ad96316d8c114fb52afdf4415dcd8b21fa6d1ea.tar.gz |
Cleanup the ECN configuration handling and provide an SCTP socket
option for controlling ECN on future associations and get the
status on current associations.
A simialar pattern will be used for controlling SCTP extensions in
upcoming commits.
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 a7da95c..b2451d7 100644 --- a/lib/libc/net/sctp_sys_calls.c +++ b/lib/libc/net/sctp_sys_calls.c @@ -350,6 +350,9 @@ sctp_opt_info(int sd, sctp_assoc_t id, int opt, void *arg, socklen_t * size) case SCTP_REMOTE_UDP_ENCAPS_PORT: ((struct sctp_udpencaps *)arg)->sue_assoc_id = id; break; + case SCTP_ECN_SUPPORTED: + ((struct sctp_assoc_value *)arg)->assoc_id = id; + break; case SCTP_MAX_BURST: ((struct sctp_assoc_value *)arg)->assoc_id = id; break; |