Skip to content

Socket::bind_device_by_index_{v4,v6} should be available on illumos/Solaris #560

Closed
@hawkw

Description

@hawkw

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions