@@ -51,7 +51,7 @@ new_flag!(
5151 #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
5252 PACKET = libc:: AF_PACKET ,
5353 /// Domain for low-level VSOCK interface.
54- #[ cfg( not( target_os = "freebsd" ) ) ]
54+ #[ cfg( not( any ( target_os = "freebsd" , target_os = "openbsd" ) ) ) ]
5555 VSOCK = libc:: AF_VSOCK ,
5656 }
5757
@@ -95,6 +95,7 @@ new_flag!(
9595 #[ cfg( any( target_os = "android" , target_os = "freebsd" , target_os = "linux" ) ) ]
9696 DCCP = libc:: IPPROTO_DCCP ,
9797 /// Stream Control Transport Protocol.
98+ #[ cfg( not( target_os = "openbsd" ) ) ]
9899 SCTP = libc:: IPPROTO_SCTP ,
99100 /// UDP-Lite.
100101 #[ cfg( any( target_os = "android" , target_os = "freebsd" , target_os = "linux" ) ) ]
@@ -628,17 +629,20 @@ new_flag!(
628629 ADD_MEMBERSHIP = libc:: IP_ADD_MEMBERSHIP ,
629630 /// Join a multicast group and allow receiving data only from a
630631 /// specified source.
632+ #[ cfg( not( target_os = "openbsd" ) ) ]
631633 ADD_SOURCE_MEMBERSHIP = libc:: IP_ADD_SOURCE_MEMBERSHIP ,
632634 /// Do not reserve an ephemeral port when using `bind(2)` with a port
633635 /// number of 0.
634636 #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
635637 BIND_ADDRESS_NO_PORT = libc:: IP_BIND_ADDRESS_NO_PORT ,
636638 /// Stop receiving multicast data from a specific source in a given
637639 /// group.
640+ #[ cfg( not( target_os = "openbsd" ) ) ]
638641 BLOCK_SOURCE = libc:: IP_BLOCK_SOURCE ,
639642 /// Leave a multicast group.
640643 DROP_MEMBERSHIP = libc:: IP_DROP_MEMBERSHIP ,
641644 /// Leave a source-specific group.
645+ #[ cfg( not( target_os = "openbsd" ) ) ]
642646 DROP_SOURCE_MEMBERSHIP = libc:: IP_DROP_SOURCE_MEMBERSHIP ,
643647 /// Allow binding to an IP address that is nonlocal or does not (yet)
644648 /// exist.
@@ -679,7 +683,7 @@ new_flag!(
679683 #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
680684 PASS_SEC = libc:: IP_PASSSEC ,
681685 /// Collect information about this socket.
682- #[ cfg( not( target_os = "freebsd" ) ) ]
686+ #[ cfg( not( any ( target_os = "freebsd" , target_os = "openbsd" ) ) ) ]
683687 PKT_INFO = libc:: IP_PKTINFO ,
684688 /// Enable extended reliable error message passing.
685689 #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
@@ -693,9 +697,11 @@ new_flag!(
693697 RECV_ORIG_DST_ADDR = libc:: IP_RECVORIGDSTADDR ,
694698 /// Enable passing of `IP_TOS` in ancillary message with incoming
695699 /// packets.
700+ #[ cfg( not( target_os = "openbsd" ) ) ]
696701 RECV_TOS = libc:: IP_RECVTOS ,
697702 /// Enable passing of `IP_TTL` in ancillary message with incoming
698703 /// packets.
704+ #[ cfg( not( target_os = "openbsd" ) ) ]
699705 RECV_TTL = libc:: IP_RECVTTL ,
700706 /// Identical to [`IPv4Opt::RECV_OPTS`], but returns raw unprocessed
701707 /// options with timestamp and route record options not filled in for
@@ -716,6 +722,7 @@ new_flag!(
716722 /// this socket.
717723 TTL = libc:: IP_TTL ,
718724 /// Unblock previously blocked multicast source.
725+ #[ cfg( not( target_os = "openbsd" ) ) ]
719726 UNBLOCK_SOURCE = libc:: IP_UNBLOCK_SOURCE ,
720727 }
721728
@@ -765,6 +772,7 @@ new_flag!(
765772 #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
766773 FLOW_INFO = libc:: IPV6_FLOWINFO ,
767774 /// Set hop limit.
775+ #[ cfg( not( target_os = "openbsd" ) ) ]
768776 HOP_LIMIT = libc:: IPV6_HOPLIMIT ,
769777 /// Control receiving of asynchronous error options.
770778 #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
@@ -799,12 +807,14 @@ new_flag!(
799807 INFO = libc:: TCP_INFO ,
800808 /// The maximum number of keepalive probes TCP should send before
801809 /// dropping the connection.
810+ #[ cfg( not( target_os = "openbsd" ) ) ]
802811 KEEP_CNT = libc:: TCP_KEEPCNT ,
803812 /// The time (in seconds) the connection needs to remain idle before TCP
804813 /// starts sending keepalive probes.
805814 #[ cfg( any( target_os = "android" , target_os = "freebsd" , target_os = "linux" ) ) ]
806815 KEEP_IDLE = libc:: TCP_KEEPIDLE ,
807816 /// The time (in seconds) between individual keepalive probes.
817+ #[ cfg( not( target_os = "openbsd" ) ) ]
808818 KEEP_INTVL = libc:: TCP_KEEPINTVL ,
809819 /// The lifetime of orphaned FIN_WAIT2 state sockets.
810820 #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
@@ -829,6 +839,7 @@ new_flag!(
829839 #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
830840 WINDOW_CLAMP = libc:: TCP_WINDOW_CLAMP ,
831841 /// This option enables Fast Open on the listener socket.
842+ #[ cfg( not( target_os = "openbsd" ) ) ]
832843 FASTOPEN = libc:: TCP_FASTOPEN ,
833844 /// This option enables an alternative way to perform Fast Open on the
834845 /// client side.
0 commit comments