Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
e-dant opened this issue May 24, 2024 · 2 comments
Open

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

e-dant opened this issue May 24, 2024 · 2 comments
Labels
C-bug Category: bug. Something is wrong. This is bad!

Comments

@e-dant
Copy link

e-dant commented May 24, 2024

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.

@e-dant e-dant added the C-bug Category: bug. Something is wrong. This is bad! label May 24, 2024
@e-dant
Copy link
Author

e-dant commented May 24, 2024

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.)

@e-dant
Copy link
Author

e-dant commented Jun 3, 2024

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
Labels
C-bug Category: bug. Something is wrong. This is bad!
Projects
None yet
Development

No branches or pull requests

1 participant