diff options
author | tuexen <tuexen@FreeBSD.org> | 2014-08-22 20:22:12 +0000 |
---|---|---|
committer | tuexen <tuexen@FreeBSD.org> | 2014-08-22 20:22:12 +0000 |
commit | fcd4ba9eaabfa53f01ae9c54fc6bdbfd9a91ffa1 (patch) | |
tree | 904bcfbcd27fe0a0fe4516de4a6f7a06efa7effb /lib/libc/net | |
parent | 85630ed213a4dd53b8bb3a51a3824204c1eb417d (diff) | |
download | FreeBSD-src-fcd4ba9eaabfa53f01ae9c54fc6bdbfd9a91ffa1.zip FreeBSD-src-fcd4ba9eaabfa53f01ae9c54fc6bdbfd9a91ffa1.tar.gz |
MFC r269858:
Add support for the SCTP_AUTH_SUPPORTED and SCTP_ASCONF_SUPPORTED
socket options. Add also a sysctl to control the support of ASCONF.
Diffstat (limited to 'lib/libc/net')
-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; |