File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 1+ Add socket protocol ` Sctp ` for all targets, as well as ` MSG_NOTIFICATION ` for non-Android Linux targets.
Original file line number Diff line number Diff line change @@ -213,6 +213,8 @@ 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+ Sctp = libc:: IPPROTO_SCTP ,
216218}
217219
218220impl SockProtocol {
@@ -356,6 +358,9 @@ libc_bitflags! {
356358 target_os = "fuchsia" ,
357359 target_os = "freebsd" ) ) ]
358360 MSG_WAITFORONE ;
361+ /// Indicates that this message is not a user message but an SCTP notification.
362+ #[ cfg( linux) ]
363+ MSG_NOTIFICATION ;
359364 }
360365}
361366
You can’t perform that action at this time.
0 commit comments