Skip to content

Commit db7e3d5

Browse files
committed
freebsd further sctp support.
1 parent e401a59 commit db7e3d5

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
@@ -1096,6 +1096,7 @@ SCTP_ADDR_MADE_PRIM
10961096
SCTP_ADDR_REMOVED
10971097
SCTP_ADDR_UNREACHABLE
10981098
SCTP_ADDR_OVER
1099+
SCTP_ASCONF_SUPPORTED
10991100
SCTP_ASSOCINFO
11001101
SCTP_ASSOC_RESET_DENIED
11011102
SCTP_ASSOC_RESET_FAILED
@@ -1116,6 +1117,7 @@ SCTP_AUTH_KEY
11161117
SCTP_AUTH_NEWKEY
11171118
SCTP_AUTH_NEW_KEY
11181119
SCTP_AUTH_NO_AUTH
1120+
SCTP_AUTH_SUPPORTED
11191121
SCTP_AUTOCLOSE
11201122
SCTP_AUTO_ASCONF
11211123
SCTP_CANT_STR_ASSOC
@@ -1126,25 +1128,34 @@ SCTP_CONTEXT
11261128
SCTP_CURRENT_ASSOC
11271129
SCTP_DATA_SENT
11281130
SCTP_DATA_UNSENT
1131+
SCTP_DEFAULT_PRINFO
11291132
SCTP_DEFAULT_SEND_PARAM
1133+
SCTP_DEFAULT_SNDINFO
11301134
SCTP_DELAYED_SACK
11311135
SCTP_DISABLE_FRAGMENTS
11321136
SCTP_DSTADDRV4
11331137
SCTP_DSTADDRV6
1138+
SCTP_ECN_SUPPORTED
11341139
SCTP_EOF
11351140
SCTP_EOR
1141+
SCTP_EVENT
11361142
SCTP_EVENTS
11371143
SCTP_EXPLICIT_EOR
11381144
SCTP_EXTRCV
11391145
SCTP_FRAGMENT_INTERLEAVE
11401146
SCTP_FUTURE_ASSOC
1147+
SCTP_GET_ASSOC_ID_LIST
1148+
SCTP_GET_ASSOC_NUMBER
1149+
SCTP_GET_PEER_ADDR_INFO
11411150
SCTP_HMAC_IDENT
11421151
SCTP_INACTIVE
11431152
SCTP_INIT
11441153
SCTP_INITMSG
11451154
SCTP_I_WANT_MAPPED_V4_ADDR
1155+
SCTP_LOCAL_AUTH_CHUNKS
11461156
SCTP_MAXBURST
11471157
SCTP_MAX_BURST
1158+
SCTP_MAX_CWND
11481159
SCTP_MAXSEG
11491160
SCTP_NEXT_MSG_AVAIL
11501161
SCTP_NEXT_MSG_ISCOMPLETE
@@ -1153,21 +1164,31 @@ SCTP_NEXT_MSG_IS_UNORDERED
11531164
SCTP_NODELAY
11541165
SCTP_NOTIFICATION
11551166
SCTP_NO_NEXT_MSG
1167+
SCTP_NRSACK_SUPPORTED
11561168
SCTP_NXTINFO
11571169
SCTP_PARTIAL_DELIVERY_ABORTED
11581170
SCTP_PARTIAL_DELIVERY_POINT
11591171
SCTP_PEER_ADDR_PARAMS
1172+
SCTP_PEER_ADDR_THLDS
1173+
SCTP_PEER_AUTH_CHUNKS
1174+
SCTP_PKTDROP_SUPPORTED
11601175
SCTP_PRIMARY_ADDR
1176+
SCTP_PR_ASSOC_STATUS
11611177
SCTP_PR_SCTP_ALL
11621178
SCTP_PR_SCTP_BUF
11631179
SCTP_PR_SCTP_MAX
11641180
SCTP_PR_SCTP_NONE
11651181
SCTP_PR_SCTP_PRIO
11661182
SCTP_PR_SCTP_RTX
11671183
SCTP_PR_SCTP_TTL
1184+
SCTP_PR_STREAM_STATUS
1185+
SCTP_REMOTE_UDP_ENCAPS_PORT
11681186
SCTP_RESTART
11691187
SCTP_REUSE_PORT
11701188
SCTP_PRINFO
1189+
SCTP_RECONFIG_SUPPORTED
1190+
SCTP_RECVNXTINFO
1191+
SCTP_RECVRCVINFO
11711192
SCTP_RECVV_NOINFO
11721193
SCTP_RECVV_NXTINFO
11731194
SCTP_RECVV_RCVINFO
@@ -1187,12 +1208,14 @@ SCTP_SET_PEER_PRIMARY_ADDR
11871208
SCTP_SHUTDOWN_COMP
11881209
SCTP_SNDINFO
11891210
SCTP_SNDRCV
1211+
SCTP_STATUS
11901212
SCTP_STREAM_CHANGE_DENIED
11911213
SCTP_STREAM_CHANGE_FAILED
11921214
SCTP_STREAM_RESET_DENIED
11931215
SCTP_STREAM_RESET_FAILED
11941216
SCTP_STREAM_RESET_INCOMING_SSN
11951217
SCTP_STREAM_RESET_OUTGOING_SSN
1218+
SCTP_TIMEOUTS
11961219
SCTP_UNCONFIRMED
11971220
SCTP_UNORDERED
11981221
SCTP_USE_EXT_RCVINFO
@@ -2038,10 +2061,12 @@ sctp_pdapi_event
20382061
sctp_peeloff
20392062
sctp_prinfo
20402063
sctp_rcvinfo
2064+
sctp_recvv
20412065
sctp_recvv_rn
20422066
sctp_remote_error
20432067
sctp_sender_dry_event
20442068
sctp_send_failed_event
2069+
sctp_sendv
20452070
sctp_sendv_spa
20462071
sctp_shutdown_event
20472072
sctp_sndinfo

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

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

45904614
pub const SCTP_COMM_UP: ::c_int = 0x0001;
45914615
pub const SCTP_COMM_LOST: ::c_int = 0x0002;
@@ -5311,6 +5335,28 @@ extern "C" {
53115335
arg: *mut ::c_void,
53125336
size: *mut ::socklen_t,
53135337
) -> ::c_int;
5338+
pub fn sctp_sendv(
5339+
sd: ::c_int,
5340+
iov: *const ::iovec,
5341+
iovcnt: ::c_int,
5342+
addrs: *mut ::sockaddr,
5343+
addrcnt: ::c_int,
5344+
info: *mut ::c_void,
5345+
infolen: ::socklen_t,
5346+
infotype: ::c_uint,
5347+
flags: ::c_int,
5348+
) -> ::ssize_t;
5349+
pub fn sctp_recvv(
5350+
sd: ::c_int,
5351+
iov: *const ::iovec,
5352+
iovcnt: ::c_int,
5353+
from: *mut ::sockaddr,
5354+
fromlen: *mut ::socklen_t,
5355+
info: *mut ::c_void,
5356+
infolen: *mut ::socklen_t,
5357+
infotype: *mut ::c_uint,
5358+
flags: *mut ::c_int,
5359+
) -> ::ssize_t;
53145360
}
53155361

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

0 commit comments

Comments
 (0)