File tree 2 files changed +12
-0
lines changed
2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change
1
+ Add socket protocol ` Sctp ` , as well as ` MSG_NOTIFICATION ` for non-Android Linux targets.
Original file line number Diff line number Diff line change @@ -213,6 +213,14 @@ pub enum SockProtocol {
213
213
Icmp = libc:: IPPROTO_ICMP ,
214
214
/// ICMPv6 protocol (ICMP over IPv6)
215
215
IcmpV6 = libc:: IPPROTO_ICMPV6 ,
216
+ /// SCTP ([sctp(7)](https://man7.org/linux/man-pages/man7/sctp.7.html))
217
+ #[ cfg( any(
218
+ apple_targets,
219
+ linux_android,
220
+ target_os = "freebsd" ,
221
+ target_os = "netbsd"
222
+ ) ) ]
223
+ Sctp = libc:: IPPROTO_SCTP ,
216
224
}
217
225
218
226
impl SockProtocol {
@@ -356,6 +364,9 @@ libc_bitflags! {
356
364
target_os = "fuchsia" ,
357
365
target_os = "freebsd" ) ) ]
358
366
MSG_WAITFORONE ;
367
+ /// Indicates that this message is not a user message but an SCTP notification.
368
+ #[ cfg( target_os = "linux" ) ]
369
+ MSG_NOTIFICATION ;
359
370
}
360
371
}
361
372
You can’t perform that action at this time.
0 commit comments