You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Socket::bind_device_by_index_v4 and Socket::bind_device_by_index_v6 functions wrap the socket option IP_BOUND_IF. Presently, these functions have the following cfg attribute:
This means that these methods are only available on macOS-like systems. However, the IP_BOUND_IF socket option also exists on SunOS-derived systems (e.g. illumos and Solaris); see for instance the Solaris man page for ip(7p). We should change the list of systems that these methods are available on so that they also exist on these systems.
The text was updated successfully, but these errors were encountered:
hawkw
added a commit
to hawkw/socket2-rs
that referenced
this issue
Feb 26, 2025
The `IP_BOUND_IF` socket option, which is wrapped by the
`Socket::bind_device_by_index_{v4,v6}` and
`Socket::device_index_{v4,v6}` is available on SunOS-like systems, such
as illumos and Solaris, as well as macOS-like systems. However, these
APIs are currently cfg-flagged to only be available on macOS-like
systems.
This commit changes the cfg attributes to also enable these APIs on
illumos and Solaris.
Fixesrust-lang#560
The `IP_BOUND_IF` socket option, which is wrapped by the
`Socket::bind_device_by_index_{v4,v6}` and
`Socket::device_index_{v4,v6}` is available on SunOS-like systems, such
as illumos and Solaris, as well as macOS-like systems. However, these
APIs are currently cfg-flagged to only be available on macOS-like
systems.
This commit changes the cfg attributes to also enable these APIs on
illumos and Solaris.
Fixesrust-lang#560
The
Socket::bind_device_by_index_v4
andSocket::bind_device_by_index_v6
functions wrap the socket optionIP_BOUND_IF
. Presently, these functions have the followingcfg
attribute:This means that these methods are only available on macOS-like systems. However, the
IP_BOUND_IF
socket option also exists on SunOS-derived systems (e.g. illumos and Solaris); see for instance the Solarisman
page forip(7p)
. We should change the list of systems that these methods are available on so that they also exist on these systems.The text was updated successfully, but these errors were encountered: