Skip to content

Link-local ipv6 addresses are unusable on non-Linux-like platforms #3672

Description

@e-dant

Version
All

Platform
All platforms except Linux-like ones; Android, Linux, and Fuschia.

Description
IPv6 requires scope ids. These are closely related to interfaces. Mostly synonymous.

The API for setting the interface for a connection, set_interface is unavailable on some platforms.

This makes link-local ipv6 addresses almost unusable on those platforms.

Activity

  1. added
    C-bugCategory: bug. Something is wrong. This is bad!
    on May 24, 2024
  2. e-dant commented on May 24, 2024

    @e-dant
    Author

    Apologies beforehand -- I haven't included a code sample because the top-level issue is a crate up in my dependency tree (so I didn't have one handy at the time or writing.)

    (That crate, reqwest, is bound to hyper's API here.)

  3. e-dant commented on Jun 3, 2024

    @e-dant
    Author

    FWIW One way to do this on non-Linux platforms is with the IP_BOUND_IF (and v6 variant) with whatever the index, from if_nametoindex, happens to be. (Scope ids seem to be practically the same thing as interface indices in this context.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bug. Something is wrong. This is bad!

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions