We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c80884 commit a45e9ecCopy full SHA for a45e9ec
src/sys/socket/mod.rs
@@ -213,6 +213,8 @@ pub enum SockProtocol {
213
Icmp = libc::IPPROTO_ICMP,
214
/// ICMPv6 protocol (ICMP over IPv6)
215
IcmpV6 = libc::IPPROTO_ICMPV6,
216
+ /// SCTP ([sctp(7)](https://man7.org/linux/man-pages/man7/sctp.7.html))
217
+ Sctp = libc::IPPROTO_SCTP,
218
}
219
220
impl SockProtocol {
@@ -356,6 +358,9 @@ libc_bitflags! {
356
358
target_os = "fuchsia",
357
359
target_os = "freebsd"))]
360
MSG_WAITFORONE;
361
+ /// Indicates that this message is not a user message but an SCTP notification.
362
+ #[cfg(linux_android)]
363
+ MSG_NOTIFICATION;
364
365
366
0 commit comments