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

Add support for the ip6zone protocol #5608

Open
Zollerboy1 opened this issue Sep 23, 2024 · 0 comments
Open

Add support for the ip6zone protocol #5608

Zollerboy1 opened this issue Sep 23, 2024 · 0 comments

Comments

@Zollerboy1
Copy link

Description

libp2p should support Multiaddrs with the ip6zone protocol. For example, a Multiaddr like this should be supported:

/ip6/fe80::9700:803e:ca65:66e8:c21/ip6zone/wlan0/udp/12345/quic-v1

Motivation

This would enable usage of libp2p on local networks without any IP address assignment by utilizing the link-local addresses of the peers. Currently, this isn't possible, because the unix socket API requires the scope_id of a socket_addr to be set to the index of the network interface which should be used to talk to link-local IP addresses, but no libp2p transport supports this.

Requirements

Each transport that connects to unix sockets using an IPv6 address that it got from a Multiaddr (this includes at least the quic, tcp, and webrtc transports), should additionally check, if this Multiaddr also defines a zone name using the ip6zone protocol, and – if it does – should use this zone name to populate the scope_id of the socket_addr before connecting.

Open questions

No response

Are you planning to do it yourself in a pull request ?

Yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant