Skip to content

Commit 89fb7bf

Browse files
committed
Auto merge of #3121 - devnexen:fbsd_sctp4, r=JohnTitor
freebsd further sctp support.
2 parents 586883b + db7e3d5 commit 89fb7bf

File tree

2 files changed

+71
-0
lines changed

2 files changed

+71
-0
lines changed

libc-test/semver/freebsd.txt

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1097,6 +1097,7 @@ SCTP_ADDR_MADE_PRIM
10971097
SCTP_ADDR_REMOVED
10981098
SCTP_ADDR_UNREACHABLE
10991099
SCTP_ADDR_OVER
1100+
SCTP_ASCONF_SUPPORTED
11001101
SCTP_ASSOCINFO
11011102
SCTP_ASSOC_RESET_DENIED
11021103
SCTP_ASSOC_RESET_FAILED
@@ -1117,6 +1118,7 @@ SCTP_AUTH_KEY
11171118
SCTP_AUTH_NEWKEY
11181119
SCTP_AUTH_NEW_KEY
11191120
SCTP_AUTH_NO_AUTH
1121+
SCTP_AUTH_SUPPORTED
11201122
SCTP_AUTOCLOSE
11211123
SCTP_AUTO_ASCONF
11221124
SCTP_CANT_STR_ASSOC
@@ -1127,25 +1129,34 @@ SCTP_CONTEXT
11271129
SCTP_CURRENT_ASSOC
11281130
SCTP_DATA_SENT
11291131
SCTP_DATA_UNSENT
1132+
SCTP_DEFAULT_PRINFO
11301133
SCTP_DEFAULT_SEND_PARAM
1134+
SCTP_DEFAULT_SNDINFO
11311135
SCTP_DELAYED_SACK
11321136
SCTP_DISABLE_FRAGMENTS
11331137
SCTP_DSTADDRV4
11341138
SCTP_DSTADDRV6
1139+
SCTP_ECN_SUPPORTED
11351140
SCTP_EOF
11361141
SCTP_EOR
1142+
SCTP_EVENT
11371143
SCTP_EVENTS
11381144
SCTP_EXPLICIT_EOR
11391145
SCTP_EXTRCV
11401146
SCTP_FRAGMENT_INTERLEAVE
11411147
SCTP_FUTURE_ASSOC
1148+
SCTP_GET_ASSOC_ID_LIST
1149+
SCTP_GET_ASSOC_NUMBER
1150+
SCTP_GET_PEER_ADDR_INFO
11421151
SCTP_HMAC_IDENT
11431152
SCTP_INACTIVE
11441153
SCTP_INIT
11451154
SCTP_INITMSG
11461155
SCTP_I_WANT_MAPPED_V4_ADDR
1156+
SCTP_LOCAL_AUTH_CHUNKS
11471157
SCTP_MAXBURST
11481158
SCTP_MAX_BURST
1159+
SCTP_MAX_CWND
11491160
SCTP_MAXSEG
11501161
SCTP_NEXT_MSG_AVAIL
11511162
SCTP_NEXT_MSG_ISCOMPLETE
@@ -1154,21 +1165,31 @@ SCTP_NEXT_MSG_IS_UNORDERED
11541165
SCTP_NODELAY
11551166
SCTP_NOTIFICATION
11561167
SCTP_NO_NEXT_MSG
1168+
SCTP_NRSACK_SUPPORTED
11571169
SCTP_NXTINFO
11581170
SCTP_PARTIAL_DELIVERY_ABORTED
11591171
SCTP_PARTIAL_DELIVERY_POINT
11601172
SCTP_PEER_ADDR_PARAMS
1173+
SCTP_PEER_ADDR_THLDS
1174+
SCTP_PEER_AUTH_CHUNKS
1175+
SCTP_PKTDROP_SUPPORTED
11611176
SCTP_PRIMARY_ADDR
1177+
SCTP_PR_ASSOC_STATUS
11621178
SCTP_PR_SCTP_ALL
11631179
SCTP_PR_SCTP_BUF
11641180
SCTP_PR_SCTP_MAX
11651181
SCTP_PR_SCTP_NONE
11661182
SCTP_PR_SCTP_PRIO
11671183
SCTP_PR_SCTP_RTX
11681184
SCTP_PR_SCTP_TTL
1185+
SCTP_PR_STREAM_STATUS
1186+
SCTP_REMOTE_UDP_ENCAPS_PORT
11691187
SCTP_RESTART
11701188
SCTP_REUSE_PORT
11711189
SCTP_PRINFO
1190+
SCTP_RECONFIG_SUPPORTED
1191+
SCTP_RECVNXTINFO
1192+
SCTP_RECVRCVINFO
11721193
SCTP_RECVV_NOINFO
11731194
SCTP_RECVV_NXTINFO
11741195
SCTP_RECVV_RCVINFO
@@ -1188,12 +1209,14 @@ SCTP_SET_PEER_PRIMARY_ADDR
11881209
SCTP_SHUTDOWN_COMP
11891210
SCTP_SNDINFO
11901211
SCTP_SNDRCV
1212+
SCTP_STATUS
11911213
SCTP_STREAM_CHANGE_DENIED
11921214
SCTP_STREAM_CHANGE_FAILED
11931215
SCTP_STREAM_RESET_DENIED
11941216
SCTP_STREAM_RESET_FAILED
11951217
SCTP_STREAM_RESET_INCOMING_SSN
11961218
SCTP_STREAM_RESET_OUTGOING_SSN
1219+
SCTP_TIMEOUTS
11971220
SCTP_UNCONFIRMED
11981221
SCTP_UNORDERED
11991222
SCTP_USE_EXT_RCVINFO
@@ -2039,10 +2062,12 @@ sctp_pdapi_event
20392062
sctp_peeloff
20402063
sctp_prinfo
20412064
sctp_rcvinfo
2065+
sctp_recvv
20422066
sctp_recvv_rn
20432067
sctp_remote_error
20442068
sctp_sender_dry_event
20452069
sctp_send_failed_event
2070+
sctp_sendv
20462071
sctp_sendv_spa
20472072
sctp_shutdown_event
20482073
sctp_sndinfo

src/unix/bsd/freebsdlike/freebsd/mod.rs

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4587,6 +4587,30 @@ pub const SCTP_CONTEXT: ::c_int = 0x0000001a;
45874587
pub const SCTP_EXPLICIT_EOR: ::c_int = 0x00000001b;
45884588
pub const SCTP_REUSE_PORT: ::c_int = 0x00000001c;
45894589
pub const SCTP_AUTH_DEACTIVATE_KEY: ::c_int = 0x00000001d;
4590+
pub const SCTP_EVENT: ::c_int = 0x0000001e;
4591+
pub const SCTP_RECVRCVINFO: ::c_int = 0x0000001f;
4592+
pub const SCTP_RECVNXTINFO: ::c_int = 0x00000020;
4593+
pub const SCTP_DEFAULT_SNDINFO: ::c_int = 0x00000021;
4594+
pub const SCTP_DEFAULT_PRINFO: ::c_int = 0x00000022;
4595+
pub const SCTP_PEER_ADDR_THLDS: ::c_int = 0x00000023;
4596+
pub const SCTP_REMOTE_UDP_ENCAPS_PORT: ::c_int = 0x00000024;
4597+
pub const SCTP_ECN_SUPPORTED: ::c_int = 0x00000025;
4598+
pub const SCTP_AUTH_SUPPORTED: ::c_int = 0x00000027;
4599+
pub const SCTP_ASCONF_SUPPORTED: ::c_int = 0x00000028;
4600+
pub const SCTP_RECONFIG_SUPPORTED: ::c_int = 0x00000029;
4601+
pub const SCTP_NRSACK_SUPPORTED: ::c_int = 0x00000030;
4602+
pub const SCTP_PKTDROP_SUPPORTED: ::c_int = 0x00000031;
4603+
pub const SCTP_MAX_CWND: ::c_int = 0x00000032;
4604+
4605+
pub const SCTP_STATUS: ::c_int = 0x00000100;
4606+
pub const SCTP_GET_PEER_ADDR_INFO: ::c_int = 0x00000101;
4607+
pub const SCTP_PEER_AUTH_CHUNKS: ::c_int = 0x00000102;
4608+
pub const SCTP_LOCAL_AUTH_CHUNKS: ::c_int = 0x00000103;
4609+
pub const SCTP_GET_ASSOC_NUMBER: ::c_int = 0x00000104;
4610+
pub const SCTP_GET_ASSOC_ID_LIST: ::c_int = 0x00000105;
4611+
pub const SCTP_TIMEOUTS: ::c_int = 0x00000106;
4612+
pub const SCTP_PR_STREAM_STATUS: ::c_int = 0x00000107;
4613+
pub const SCTP_PR_ASSOC_STATUS: ::c_int = 0x00000108;
45904614

45914615
pub const SCTP_COMM_UP: ::c_int = 0x0001;
45924616
pub const SCTP_COMM_LOST: ::c_int = 0x0002;
@@ -5314,6 +5338,28 @@ extern "C" {
53145338
arg: *mut ::c_void,
53155339
size: *mut ::socklen_t,
53165340
) -> ::c_int;
5341+
pub fn sctp_sendv(
5342+
sd: ::c_int,
5343+
iov: *const ::iovec,
5344+
iovcnt: ::c_int,
5345+
addrs: *mut ::sockaddr,
5346+
addrcnt: ::c_int,
5347+
info: *mut ::c_void,
5348+
infolen: ::socklen_t,
5349+
infotype: ::c_uint,
5350+
flags: ::c_int,
5351+
) -> ::ssize_t;
5352+
pub fn sctp_recvv(
5353+
sd: ::c_int,
5354+
iov: *const ::iovec,
5355+
iovcnt: ::c_int,
5356+
from: *mut ::sockaddr,
5357+
fromlen: *mut ::socklen_t,
5358+
info: *mut ::c_void,
5359+
infolen: *mut ::socklen_t,
5360+
infotype: *mut ::c_uint,
5361+
flags: *mut ::c_int,
5362+
) -> ::ssize_t;
53175363
}
53185364

53195365
#[link(name = "memstat")]

0 commit comments

Comments
 (0)