diff options
author | tuexen <tuexen@FreeBSD.org> | 2014-08-12 11:30:16 +0000 |
---|---|---|
committer | tuexen <tuexen@FreeBSD.org> | 2014-08-12 11:30:16 +0000 |
commit | b57b7cb252a8bddd9637ed70561f04f0de62bd5c (patch) | |
tree | 7ef739646c46ae494ecad5800859e26e929df435 /lib | |
parent | 74e6245779ff397e4676fb90edf7f1f4ef280f69 (diff) | |
download | FreeBSD-src-b57b7cb252a8bddd9637ed70561f04f0de62bd5c.zip FreeBSD-src-b57b7cb252a8bddd9637ed70561f04f0de62bd5c.tar.gz |
Add support for the SCTP_AUTH_SUPPORTED and SCTP_ASCONF_SUPPORTED
socket options. Add also a sysctl to control the support of ASCONF.
MFC after: 1 week
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/net/sctp_sys_calls.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/libc/net/sctp_sys_calls.c b/lib/libc/net/sctp_sys_calls.c index 8e7d709..6a57061 100644 --- a/lib/libc/net/sctp_sys_calls.c +++ b/lib/libc/net/sctp_sys_calls.c @@ -356,6 +356,12 @@ sctp_opt_info(int sd, sctp_assoc_t id, int opt, void *arg, socklen_t * size) case SCTP_PR_SUPPORTED: ((struct sctp_assoc_value *)arg)->assoc_id = id; break; + case SCTP_AUTH_SUPPORTED: + ((struct sctp_assoc_value *)arg)->assoc_id = id; + break; + case SCTP_ASCONF_SUPPORTED: + ((struct sctp_assoc_value *)arg)->assoc_id = id; + break; case SCTP_RECONFIG_SUPPORTED: ((struct sctp_assoc_value *)arg)->assoc_id = id; break; @@ -590,6 +596,7 @@ sctp_sendmsg(int s, cmsg->cmsg_type = SCTP_SNDRCV; cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); sinfo = (struct sctp_sndrcvinfo *)CMSG_DATA(cmsg); + memset(sinfo, 0, sizeof(struct sctp_sndrcvinfo)); sinfo->sinfo_stream = stream_no; sinfo->sinfo_ssn = 0; sinfo->sinfo_flags = flags; |