File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-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,16 @@ pub enum SockProtocol {
213213 Icmp = libc:: IPPROTO_ICMP ,
214214 /// ICMPv6 protocol (ICMP over IPv6)
215215 IcmpV6 = libc:: IPPROTO_ICMPV6 ,
216+ /// SCTP ([sctp(7)](https://man7.org/linux/man-pages/man7/sctp.7.html))
217+ #[ cfg( not( any(
218+ target_os = "haiku" ,
219+ target_os = "redox" ,
220+ target_os = "solaris" ,
221+ target_os = "openbsd" ,
222+ target_os = "illumos" ,
223+ target_os = "dragonfly" ,
224+ ) ) ) ]
225+ Sctp = libc:: IPPROTO_SCTP ,
216226}
217227
218228impl SockProtocol {
@@ -356,6 +366,9 @@ libc_bitflags! {
356366 target_os = "fuchsia" ,
357367 target_os = "freebsd" ) ) ]
358368 MSG_WAITFORONE ;
369+ /// Indicates that this message is not a user message but an SCTP notification.
370+ #[ cfg( linux) ]
371+ MSG_NOTIFICATION ;
359372 }
360373}
361374
You can’t perform that action at this time.
0 commit comments