diff options
author | bors <bors@rust-lang.org> | 2023-02-19 04:24:17 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2023-02-19 04:24:17 +0000 |
commit | 89fb7bf0e6f0c3f7ea4ff7fe5a14a3909f9b9298 (patch) | |
tree | ba986b68d4535ff86079224019af2e07b36a2b1b /src/unix/bsd | |
parent | 586883b42ccbd17b362b7091e4f2c7a5def8e313 (diff) | |
parent | db7e3d51af08aef6e98b1bcbb567eca0f8869097 (diff) | |
download | rust-libc-89fb7bf0e6f0c3f7ea4ff7fe5a14a3909f9b9298.tar.gz |
Auto merge of #3121 - devnexen:fbsd_sctp4, r=JohnTitor
freebsd further sctp support.
Diffstat (limited to 'src/unix/bsd')
-rw-r--r-- | src/unix/bsd/freebsdlike/freebsd/mod.rs | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/src/unix/bsd/freebsdlike/freebsd/mod.rs b/src/unix/bsd/freebsdlike/freebsd/mod.rs index b9ae561764..e69c32ad9e 100644 --- a/src/unix/bsd/freebsdlike/freebsd/mod.rs +++ b/src/unix/bsd/freebsdlike/freebsd/mod.rs @@ -4587,6 +4587,30 @@ pub const SCTP_CONTEXT: ::c_int = 0x0000001a; pub const SCTP_EXPLICIT_EOR: ::c_int = 0x00000001b; pub const SCTP_REUSE_PORT: ::c_int = 0x00000001c; pub const SCTP_AUTH_DEACTIVATE_KEY: ::c_int = 0x00000001d; +pub const SCTP_EVENT: ::c_int = 0x0000001e; +pub const SCTP_RECVRCVINFO: ::c_int = 0x0000001f; +pub const SCTP_RECVNXTINFO: ::c_int = 0x00000020; +pub const SCTP_DEFAULT_SNDINFO: ::c_int = 0x00000021; +pub const SCTP_DEFAULT_PRINFO: ::c_int = 0x00000022; +pub const SCTP_PEER_ADDR_THLDS: ::c_int = 0x00000023; +pub const SCTP_REMOTE_UDP_ENCAPS_PORT: ::c_int = 0x00000024; +pub const SCTP_ECN_SUPPORTED: ::c_int = 0x00000025; +pub const SCTP_AUTH_SUPPORTED: ::c_int = 0x00000027; +pub const SCTP_ASCONF_SUPPORTED: ::c_int = 0x00000028; +pub const SCTP_RECONFIG_SUPPORTED: ::c_int = 0x00000029; +pub const SCTP_NRSACK_SUPPORTED: ::c_int = 0x00000030; +pub const SCTP_PKTDROP_SUPPORTED: ::c_int = 0x00000031; +pub const SCTP_MAX_CWND: ::c_int = 0x00000032; + +pub const SCTP_STATUS: ::c_int = 0x00000100; +pub const SCTP_GET_PEER_ADDR_INFO: ::c_int = 0x00000101; +pub const SCTP_PEER_AUTH_CHUNKS: ::c_int = 0x00000102; +pub const SCTP_LOCAL_AUTH_CHUNKS: ::c_int = 0x00000103; +pub const SCTP_GET_ASSOC_NUMBER: ::c_int = 0x00000104; +pub const SCTP_GET_ASSOC_ID_LIST: ::c_int = 0x00000105; +pub const SCTP_TIMEOUTS: ::c_int = 0x00000106; +pub const SCTP_PR_STREAM_STATUS: ::c_int = 0x00000107; +pub const SCTP_PR_ASSOC_STATUS: ::c_int = 0x00000108; pub const SCTP_COMM_UP: ::c_int = 0x0001; pub const SCTP_COMM_LOST: ::c_int = 0x0002; @@ -5314,6 +5338,28 @@ extern "C" { arg: *mut ::c_void, size: *mut ::socklen_t, ) -> ::c_int; + pub fn sctp_sendv( + sd: ::c_int, + iov: *const ::iovec, + iovcnt: ::c_int, + addrs: *mut ::sockaddr, + addrcnt: ::c_int, + info: *mut ::c_void, + infolen: ::socklen_t, + infotype: ::c_uint, + flags: ::c_int, + ) -> ::ssize_t; + pub fn sctp_recvv( + sd: ::c_int, + iov: *const ::iovec, + iovcnt: ::c_int, + from: *mut ::sockaddr, + fromlen: *mut ::socklen_t, + info: *mut ::c_void, + infolen: *mut ::socklen_t, + infotype: *mut ::c_uint, + flags: *mut ::c_int, + ) -> ::ssize_t; } #[link(name = "memstat")] |