Description
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:
#[cfg(all(
feature = "all",
any(
target_os = "ios",
target_os = "visionos",
target_os = "macos",
target_os = "tvos",
target_os = "watchos",
)
))]
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.
Metadata
Metadata
Assignees
Labels
No labels